|
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 | 20 | "camelcase": "off",
|
21 |
| - "@typescript-eslint/camelcase": "error", |
22 |
| - "@typescript-eslint/class-name-casing": "error", |
| 21 | + "@typescript-eslint/naming-convention": "error", |
23 | 22 | "@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
|
24 | 23 | "@typescript-eslint/func-call-spacing": ["error", "never"],
|
25 |
| - "@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"], |
26 | 24 | "@typescript-eslint/no-array-constructor": "error",
|
27 | 25 | "@typescript-eslint/no-empty-interface": "error",
|
28 | 26 | "@typescript-eslint/no-explicit-any": "off",
|
|
32 | 30 | "@typescript-eslint/no-misused-new": "error",
|
33 | 31 | "@typescript-eslint/no-namespace": "error",
|
34 | 32 | "@typescript-eslint/no-non-null-assertion": "warn",
|
35 |
| - "@typescript-eslint/no-object-literal-type-assertion": "error", |
36 | 33 | "@typescript-eslint/no-unnecessary-qualifier": "error",
|
37 | 34 | "@typescript-eslint/no-unnecessary-type-assertion": "error",
|
38 | 35 | "@typescript-eslint/no-useless-constructor": "error",
|
39 | 36 | "@typescript-eslint/no-var-requires": "error",
|
40 | 37 | "@typescript-eslint/prefer-for-of": "warn",
|
41 | 38 | "@typescript-eslint/prefer-function-type": "warn",
|
42 | 39 | "@typescript-eslint/prefer-includes": "error",
|
43 |
| - "@typescript-eslint/prefer-interface": "error", |
| 40 | + "@typescript-eslint/consistent-type-definitions": ["error", "interface"], |
44 | 41 | "@typescript-eslint/prefer-string-starts-ends-with": "error",
|
45 | 42 | "@typescript-eslint/promise-function-async": "error",
|
46 | 43 | "@typescript-eslint/require-array-sort-compare": "error",
|
|
0 commit comments