|
1 | 1 | { |
2 | 2 | "plugins": ["jest", "@typescript-eslint"], |
3 | | - "extends": ["plugin:github/es6"], |
| 3 | + "extends": ["plugin:github/typescript"], |
4 | 4 | "parser": "@typescript-eslint/parser", |
5 | 5 | "parserOptions": { |
6 | 6 | "ecmaVersion": 9, |
|
16 | 16 | "@typescript-eslint/no-require-imports": "error", |
17 | 17 | "@typescript-eslint/array-type": "error", |
18 | 18 | "@typescript-eslint/await-thenable": "error", |
19 | | - "@typescript-eslint/ban-ts-ignore": "error", |
| 19 | + "@typescript-eslint/ban-ts-comment": ["error", { |
| 20 | + "ts-ignore": true, |
| 21 | + "ts-check": "allow-with-description", |
| 22 | + "ts-expect-error": "allow-with-description", |
| 23 | + "ts-nocheck": "allow-with-description" |
| 24 | + }], |
20 | 25 | "camelcase": "off", |
21 | | - "@typescript-eslint/camelcase": "warn", |
22 | | - "@typescript-eslint/class-name-casing": "error", |
| 26 | + "@typescript-eslint/naming-convention": [ |
| 27 | + "warn", |
| 28 | + { |
| 29 | + "selector": ["variable", "function", "parameter", "class"], |
| 30 | + "format": ["camelCase"] |
| 31 | + }, |
| 32 | + { |
| 33 | + "selector": "typeParameter", |
| 34 | + "format": ["PascalCase"], |
| 35 | + "custom": { |
| 36 | + "regex": "^[A-Z][A-Za-z]*$", |
| 37 | + "match": true |
| 38 | + } |
| 39 | + } |
| 40 | + ], |
23 | 41 | "@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}], |
24 | 42 | "@typescript-eslint/func-call-spacing": ["error", "never"], |
25 | | - "@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"], |
26 | 43 | "@typescript-eslint/no-array-constructor": "error", |
27 | 44 | "@typescript-eslint/no-empty-interface": "error", |
28 | 45 | "@typescript-eslint/no-explicit-any": "error", |
|
32 | 49 | "@typescript-eslint/no-misused-new": "error", |
33 | 50 | "@typescript-eslint/no-namespace": "error", |
34 | 51 | "@typescript-eslint/no-non-null-assertion": "warn", |
35 | | - "@typescript-eslint/no-object-literal-type-assertion": "error", |
| 52 | + "@typescript-eslint/consistent-type-assertions": "error", |
36 | 53 | "@typescript-eslint/no-unnecessary-qualifier": "error", |
37 | 54 | "@typescript-eslint/no-unnecessary-type-assertion": "error", |
38 | 55 | "@typescript-eslint/no-useless-constructor": "error", |
39 | 56 | "@typescript-eslint/no-var-requires": "error", |
40 | 57 | "@typescript-eslint/prefer-for-of": "warn", |
41 | 58 | "@typescript-eslint/prefer-function-type": "warn", |
42 | 59 | "@typescript-eslint/prefer-includes": "error", |
43 | | - "@typescript-eslint/prefer-interface": "error", |
| 60 | + "@typescript-eslint/consistent-type-definitions": ["error", "interface"], |
44 | 61 | "@typescript-eslint/prefer-string-starts-ends-with": "error", |
45 | 62 | "@typescript-eslint/promise-function-async": "error", |
46 | 63 | "@typescript-eslint/require-array-sort-compare": "error", |
|
0 commit comments