Skip to content

Commit 4b8fdc6

Browse files
NONE: Update eslint (#2545)
* NONE: Update eslint
1 parent e1b3e5b commit 4b8fdc6

File tree

7 files changed

+389
-210
lines changed

7 files changed

+389
-210
lines changed

.eslintrc.json

+26-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"eslint:recommended",
1919
"plugin:import/recommended",
2020
"plugin:import/typescript",
21-
"plugin:@typescript-eslint/eslint-recommended",
22-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
21+
"plugin:@typescript-eslint/strict-type-checked"
2322
],
2423
"settings": {
2524
"import/parsers": {
@@ -134,5 +133,29 @@
134133
"@typescript-eslint/no-unsafe-return": "off",
135134
"@typescript-eslint/no-unsafe-call": "off"
136135
}
137-
}]
136+
},
137+
{
138+
"files": ["src/**/*.ts", "test/**/*.ts"],
139+
"rules": {
140+
// TODO: Re-enable gradually
141+
"@typescript-eslint/no-confusing-void-expression": "off",
142+
"@typescript-eslint/no-throw-literal": "off",
143+
"@typescript-eslint/no-dynamic-delete": "off",
144+
"@typescript-eslint/no-base-to-string": "off",
145+
"@typescript-eslint/no-unnecessary-condition": "off",
146+
"@typescript-eslint/no-explicit-any": "off",
147+
"@typescript-eslint/prefer-ts-expect-error": "off",
148+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
149+
"@typescript-eslint/no-non-null-assertion": "off",
150+
"@typescript-eslint/restrict-plus-operands": "off",
151+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
152+
"@typescript-eslint/no-redundant-type-constituents": "off",
153+
"@typescript-eslint/no-invalid-void-type": "off",
154+
"@typescript-eslint/no-useless-constructor": "off",
155+
"@typescript-eslint/prefer-includes": "off",
156+
"@typescript-eslint/no-unsafe-enum-comparison": "off",
157+
"@typescript-eslint/no-extraneous-class": "off"
158+
}
159+
}
160+
]
138161
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@
149149
"@types/rate-limit-redis": "^1.7.1",
150150
"@types/supertest": "^2.0.11",
151151
"@types/uuid": "^8.3.4",
152-
"@typescript-eslint/eslint-plugin": "~5.62.0",
153-
"@typescript-eslint/parser": "~5.62.0",
152+
"@typescript-eslint/eslint-plugin": "~6.10.0",
153+
"@typescript-eslint/parser": "~6.10.0",
154154
"chai": "^4.3.6",
155155
"dotenv-cli": "^6.0.0",
156156
"eslint": "^8.49.0",
157-
"eslint-config-prettier": "~8.3.0",
158-
"eslint-import-resolver-typescript": "^2.5.0",
157+
"eslint-config-prettier": "~9.0.0",
158+
"eslint-import-resolver-typescript": "^3.6.1",
159159
"eslint-plugin-import": "^2.25.4",
160160
"eslint-plugin-jest": "^27.4.0",
161161
"eslint-plugin-jsdoc": "^46.8.2",
162-
"eslint-plugin-no-only-tests": "^2.6.0",
162+
"eslint-plugin-no-only-tests": "^3.1.0",
163163
"eslint-plugin-node": "^11.1.0",
164164
"eslint-plugin-promise": "^6.0.0",
165165
"husky": "^6.0.0",

spa/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
"@types/react": "^18.2.14",
5656
"@types/react-dom": "^18.2.6",
5757
"@types/react-router-dom": "^5.3.3",
58-
"@typescript-eslint/eslint-plugin": "^5.59.0",
59-
"@typescript-eslint/parser": "^5.59.0",
60-
"eslint": "^8.38.0",
58+
"@typescript-eslint/eslint-plugin": "^6.10.0",
59+
"@typescript-eslint/parser": "^6.10.0",
60+
"eslint": "^8.53.0",
6161
"eslint-plugin-react-hooks": "^4.6.0",
62-
"eslint-plugin-react-refresh": "^0.3.4",
62+
"eslint-plugin-react-refresh": "^0.4.4",
6363
"jest": "^29.5.0",
6464
"jest-environment-jsdom": "^29.5.0",
6565
"nock": "^13.3.2",

spa/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"module": "ESNext",
77
"skipLibCheck": true,
88
"moduleResolution": "node",
9-
"allowImportingTsExtensions": true,
109
"resolveJsonModule": true,
1110
"isolatedModules": true,
1211
"noEmit": true,

0 commit comments

Comments
 (0)