|
4 | 4 | },
|
5 | 5 | "extends": [
|
6 | 6 | "eslint:recommended",
|
7 |
| - "plugin:@typescript-eslint/recommended", |
8 |
| - "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 7 | + "plugin:@typescript-eslint/strict-type-checked", |
| 8 | + "plugin:@typescript-eslint/stylistic-type-checked", |
9 | 9 | "plugin:import/recommended",
|
10 | 10 | "plugin:import/typescript",
|
11 | 11 | "prettier"
|
|
212 | 212 | }
|
213 | 213 | }
|
214 | 214 | ],
|
| 215 | + "@typescript-eslint/class-literal-property-style": "off", |
215 | 216 | "@typescript-eslint/consistent-type-assertions": [
|
216 | 217 | "error",
|
217 | 218 | {
|
218 | 219 | "assertionStyle": "as",
|
219 | 220 | "objectLiteralTypeAssertions": "allow-as-parameter"
|
220 | 221 | }
|
221 | 222 | ],
|
| 223 | + "@typescript-eslint/consistent-type-definitions": "off", |
222 | 224 | "@typescript-eslint/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }],
|
223 |
| - "@typescript-eslint/explicit-function-return-type": "off", |
224 |
| - "@typescript-eslint/explicit-member-accessibility": "off", |
225 |
| - "@typescript-eslint/explicit-module-boundary-types": "off", // TODO@eamodio revisit |
| 225 | + "@typescript-eslint/dot-notation": "off", |
226 | 226 | "@typescript-eslint/naming-convention": [
|
227 | 227 | "error",
|
228 | 228 | {
|
|
269 | 269 | }
|
270 | 270 | }
|
271 | 271 | ],
|
272 |
| - "@typescript-eslint/no-dynamic-delete": "error", |
| 272 | + "@typescript-eslint/no-confusing-void-expression": [ |
| 273 | + "error", |
| 274 | + { "ignoreArrowShorthand": true, "ignoreVoidOperator": true } |
| 275 | + ], |
273 | 276 | "@typescript-eslint/no-empty-function": "off",
|
274 |
| - "@typescript-eslint/no-empty-interface": "error", |
275 | 277 | "@typescript-eslint/no-explicit-any": "off",
|
276 |
| - "@typescript-eslint/no-extraneous-class": "error", |
277 |
| - "@typescript-eslint/no-floating-promises": "error", |
278 | 278 | "@typescript-eslint/no-inferrable-types": ["warn", { "ignoreParameters": true, "ignoreProperties": true }],
|
279 | 279 | "@typescript-eslint/no-invalid-void-type": "off", // Seems to error on `void` return types
|
280 |
| - "@typescript-eslint/no-meaningless-void-operator": "error", |
281 | 280 | "@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }],
|
282 |
| - "@typescript-eslint/no-namespace": "error", |
283 | 281 | "@typescript-eslint/no-non-null-assertion": "off",
|
284 |
| - "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error", |
285 |
| - "@typescript-eslint/no-throw-literal": "error", |
286 |
| - // "@typescript-eslint/no-unnecessary-condition": ["error", { "allowConstantLoopConditions": true }], |
| 282 | + "@typescript-eslint/no-redundant-type-constituents": "off", |
287 | 283 | "@typescript-eslint/no-unnecessary-condition": "off",
|
288 | 284 | "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
289 |
| - "@typescript-eslint/no-unnecessary-type-arguments": "error", |
290 | 285 | "@typescript-eslint/no-unsafe-argument": "off",
|
291 | 286 | "@typescript-eslint/no-unsafe-assignment": "off",
|
292 | 287 | "@typescript-eslint/no-unsafe-call": "off",
|
293 | 288 | "@typescript-eslint/no-unsafe-member-access": "off",
|
294 |
| - "@typescript-eslint/no-unsafe-return": "error", |
295 | 289 | "@typescript-eslint/no-unused-expressions": ["warn", { "allowShortCircuit": true }],
|
296 | 290 | "@typescript-eslint/no-unused-vars": [
|
297 | 291 | "warn",
|
|
302 | 296 | "varsIgnorePattern": "^_$"
|
303 | 297 | }
|
304 | 298 | ],
|
| 299 | + "@typescript-eslint/no-unsafe-enum-comparison": "off", |
305 | 300 | "@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": false }],
|
306 |
| - "@typescript-eslint/no-useless-constructor": "error", |
307 |
| - "@typescript-eslint/non-nullable-type-assertion-style": "error", |
308 | 301 | "@typescript-eslint/prefer-for-of": "warn",
|
309 | 302 | "@typescript-eslint/prefer-includes": "warn",
|
310 | 303 | "@typescript-eslint/prefer-literal-enum-member": ["warn", { "allowBitwiseExpressions": true }],
|
|
0 commit comments