|
2 | 2 | "env": { |
3 | 3 | "browser": true, |
4 | 4 | "commonjs": true, |
5 | | - "es6": true, |
| 5 | + "es2021": true, |
6 | 6 | "node": true, |
7 | 7 | "jest": true |
8 | 8 | }, |
|
11 | 11 | "eslint:recommended", |
12 | 12 | "plugin:@typescript-eslint/recommended", |
13 | 13 | "plugin:prettier/recommended", |
14 | | - "prettier", |
15 | | - "prettier/@typescript-eslint" |
| 14 | + "prettier" |
16 | 15 | ], |
17 | 16 | "parserOptions": { |
18 | | - "sourceType": "module", |
19 | | - "ecmaVersion": 2020 |
| 17 | + "project": "tsconfig.json", |
| 18 | + "sourceType": "module" |
20 | 19 | }, |
21 | 20 | "rules": { |
22 | 21 | "linebreak-style": ["error", "unix"], |
23 | 22 | "no-empty": 1, |
24 | | - "no-undef": 1, |
25 | 23 | "no-useless-catch": 1, |
26 | 24 | "no-prototype-builtins": 1, |
27 | 25 | "no-constant-condition": 0, |
28 | 26 | "no-useless-escape": 0, |
29 | 27 | "no-console": "error", |
30 | 28 | "eqeqeq": ["error", "smart"], |
| 29 | + "spaced-comment": [ |
| 30 | + "warn", |
| 31 | + "always", |
| 32 | + { |
| 33 | + "line": { |
| 34 | + "exceptions": ["-"] |
| 35 | + }, |
| 36 | + "block": { |
| 37 | + "exceptions": ["*"] |
| 38 | + } |
| 39 | + } |
| 40 | + ], |
31 | 41 | "capitalized-comments": [ |
32 | 42 | "warn", |
33 | 43 | "always", |
|
48 | 58 | ], |
49 | 59 | "@typescript-eslint/no-inferrable-types": 0, |
50 | 60 | "@typescript-eslint/no-non-null-assertion": 0, |
| 61 | + "@typescript-eslint/no-this-alias": 0, |
51 | 62 | "@typescript-eslint/no-var-requires": 0, |
| 63 | + "@typescript-eslint/no-empty-function": 0, |
| 64 | + "@typescript-eslint/no-empty-interface": 0, |
| 65 | + "@typescript-eslint/consistent-type-imports": ["error"], |
| 66 | + "@typescript-eslint/consistent-type-exports": ["error"], |
| 67 | + "no-throw-literal": "off", |
| 68 | + "@typescript-eslint/no-throw-literal": ["error"], |
| 69 | + "@typescript-eslint/no-floating-promises": ["error", { |
| 70 | + "ignoreVoid": true, |
| 71 | + "ignoreIIFE": true |
| 72 | + }], |
| 73 | + "@typescript-eslint/no-misused-promises": ["error", { |
| 74 | + "checksVoidReturn": false |
| 75 | + }], |
| 76 | + "@typescript-eslint/await-thenable": ["error"], |
52 | 77 | "@typescript-eslint/naming-convention": [ |
53 | 78 | "error", |
54 | 79 | { |
|
59 | 84 | }, |
60 | 85 | { |
61 | 86 | "selector": "variable", |
62 | | - "format": ["camelCase", "UPPER_CASE"], |
| 87 | + "format": ["camelCase", "UPPER_CASE", "PascalCase"], |
63 | 88 | "leadingUnderscore": "allow", |
64 | 89 | "trailingUnderscore": "allowSingleOrDouble" |
65 | 90 | }, |
66 | 91 | { |
67 | 92 | "selector": "parameter", |
68 | 93 | "format": ["camelCase"], |
| 94 | + "leadingUnderscore": "allow", |
69 | 95 | "trailingUnderscore": "allowSingleOrDouble" |
70 | 96 | }, |
71 | 97 | { |
|
0 commit comments