|
1 | 1 | {
|
2 | 2 | "plugins": ["jest", "@typescript-eslint"],
|
3 |
| - "extends": ["plugin:github/es6"], |
| 3 | + "extends": ["plugin:github/recommended"], |
4 | 4 | "parser": "@typescript-eslint/parser",
|
5 | 5 | "parserOptions": {
|
6 | 6 | "ecmaVersion": 9,
|
|
9 | 9 | },
|
10 | 10 | "rules": {
|
11 | 11 | "eslint-comments/no-use": "off",
|
| 12 | + "github/no-then": "off", |
12 | 13 | "import/no-namespace": "off",
|
| 14 | + "no-shadow": "off", |
13 | 15 | "no-unused-vars": "off",
|
| 16 | + "no-undef": "off", |
14 | 17 | "@typescript-eslint/no-unused-vars": "error",
|
15 | 18 | "@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
|
16 | 19 | "@typescript-eslint/no-require-imports": "error",
|
17 | 20 | "@typescript-eslint/array-type": "error",
|
18 | 21 | "@typescript-eslint/await-thenable": "error",
|
19 |
| - "@typescript-eslint/ban-ts-ignore": "error", |
| 22 | + "@typescript-eslint/ban-ts-comment": "error", |
20 | 23 | "camelcase": "off",
|
21 | 24 | "@typescript-eslint/camelcase": "off",
|
22 |
| - "@typescript-eslint/class-name-casing": "error", |
| 25 | + "@typescript-eslint/consistent-type-assertions": "off", |
23 | 26 | "@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
|
24 | 27 | "@typescript-eslint/func-call-spacing": ["error", "never"],
|
25 |
| - "@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"], |
| 28 | + "@typescript-eslint/naming-convention": [ |
| 29 | + "error", |
| 30 | + { |
| 31 | + "format": null, |
| 32 | + "filter": { |
| 33 | + // you can expand this regex as you find more cases that require quoting that you want to allow |
| 34 | + "regex": "^[A-Z][A-Za-z]*$", |
| 35 | + "match": true |
| 36 | + }, |
| 37 | + "selector": "memberLike" |
| 38 | + } |
| 39 | + ], |
26 | 40 | "@typescript-eslint/no-array-constructor": "error",
|
27 | 41 | "@typescript-eslint/no-empty-interface": "error",
|
28 | 42 | "@typescript-eslint/no-explicit-any": "error",
|
|
32 | 46 | "@typescript-eslint/no-misused-new": "error",
|
33 | 47 | "@typescript-eslint/no-namespace": "error",
|
34 | 48 | "@typescript-eslint/no-non-null-assertion": "warn",
|
35 |
| - "@typescript-eslint/no-object-literal-type-assertion": "error", |
36 | 49 | "@typescript-eslint/no-unnecessary-qualifier": "error",
|
37 | 50 | "@typescript-eslint/no-unnecessary-type-assertion": "error",
|
38 | 51 | "@typescript-eslint/no-useless-constructor": "error",
|
39 | 52 | "@typescript-eslint/no-var-requires": "error",
|
40 | 53 | "@typescript-eslint/prefer-for-of": "warn",
|
41 | 54 | "@typescript-eslint/prefer-function-type": "warn",
|
42 | 55 | "@typescript-eslint/prefer-includes": "error",
|
43 |
| - "@typescript-eslint/prefer-interface": "error", |
44 | 56 | "@typescript-eslint/prefer-string-starts-ends-with": "error",
|
45 | 57 | "@typescript-eslint/promise-function-async": "error",
|
46 | 58 | "@typescript-eslint/require-array-sort-compare": "error",
|
|
0 commit comments