|
4 | 4 | "rules": { |
5 | 5 | "@typescript-eslint/ban-ts-comment": "off", |
6 | 6 | "@typescript-eslint/ban-ts-ignore": "off", |
| 7 | + "@typescript-eslint/no-shadow": "error", |
| 8 | + "@typescript-eslint/no-unused-vars": ["error"], |
| 9 | + "brace-style": ["error", "stroustrup"], |
| 10 | + "comma-spacing": 2, |
7 | 11 | "consistent-return": 0, |
8 | 12 | "curly": 2, |
9 | 13 | "dot-notation": 2, |
10 | 14 | "eqeqeq": 2, |
11 | 15 | "func-names": ["error", "always"], |
12 | 16 | "guard-for-in": 2, |
13 | 17 | "indent": [2, 2, {"SwitchCase": 1}], |
| 18 | + "key-spacing": ["error", { "afterColon": true }], |
| 19 | + "keyword-spacing": ["error", { "before": true, "after": true }], |
14 | 20 | "linebreak-style": [2, "unix"], |
15 | 21 | "new-cap": 1, |
16 | 22 | "no-caller": 2, |
17 | 23 | "no-catch-shadow": 2, |
18 | 24 | "no-console": 2, |
19 | 25 | "no-else-return": 2, |
| 26 | + "no-empty": ["error", { "allowEmptyCatch": true }], |
| 27 | + "no-eval": 2, |
20 | 28 | "no-extend-native": 2, |
21 | 29 | "no-extra-bind": 2, |
22 | | - "no-eval": 2, |
23 | 30 | "no-implicit-coercion": 2, |
24 | 31 | "no-implied-eval": 2, |
25 | 32 | "no-invalid-this": 2, |
|
39 | 46 | "no-return-assign": 2, |
40 | 47 | "no-self-compare": 2, |
41 | 48 | "no-sequences": 2, |
42 | | - "no-shadow": 2, |
| 49 | + "no-shadow": "off", |
43 | 50 | "no-shadow-restricted-names": 2, |
44 | 51 | "no-throw-literal": 2, |
45 | 52 | "no-undef": 2, |
46 | 53 | "no-undef-init": 1, |
47 | 54 | "no-unreachable": 2, |
48 | 55 | "no-unused-expressions": [2, {"allowShortCircuit": true}], |
| 56 | + "no-unused-vars": "off", |
49 | 57 | "no-useless-call": 2, |
50 | 58 | "no-with": 2, |
| 59 | + "object-curly-spacing": ["error", "always"], |
| 60 | + "object-shorthand": ["error", "always"], |
51 | 61 | "quotes": [2, "single"], |
52 | 62 | "require-atomic-updates": 0, |
53 | 63 | "semi": [2, "always"], |
54 | | - "space-before-blocks": 2, |
55 | | - "strict": [2, "global"], |
56 | | - "vars-on-top": 2, |
57 | | - "yoda": [2, "never"], |
58 | 64 | "sort-keys": ["error", "asc"], |
59 | | - "keyword-spacing": ["error", { "before": true, "after": true }], |
60 | | - "object-curly-spacing": ["error", "always"], |
| 65 | + "space-before-blocks": 2, |
61 | 66 | "space-before-function-paren": ["error", "always"], |
62 | | - "comma-spacing": 2, |
63 | | - "brace-style": ["error", "stroustrup"], |
64 | 67 | "space-infix-ops": 2, |
65 | 68 | "space-unary-ops": [2, { "words": true, "nonwords": false, "overrides": { "!": true } }], |
66 | | - "key-spacing": ["error", { "afterColon": true }] |
| 69 | + "strict": [2, "global"], |
| 70 | + "vars-on-top": 2 |
67 | 71 | }, |
68 | 72 | "overrides": [ |
69 | 73 | { |
|
0 commit comments