|
4 | 4 | "jsx": true, |
5 | 5 | "sourceType": "module", |
6 | 6 | "ecmaFeatures": { |
7 | | - "jsx": true, |
8 | | - "experimentalObjectRestSpread": true |
| 7 | + "jsx": true |
9 | 8 | } |
10 | 9 | }, |
11 | | - "plugins": ["prettier"], |
| 10 | + "plugins": ["prettier", "@typescript-eslint"], |
12 | 11 | "settings": { |
13 | | - "react": { |
14 | | - "version": "15.2" |
15 | | - }, |
16 | 12 | "import/resolver": { |
17 | 13 | "node": { |
18 | 14 | "extensions": [".js", ".ts", ".tsx"] |
|
21 | 17 | }, |
22 | 18 | "env": { |
23 | 19 | "node": true, |
24 | | - "amd": true, |
25 | 20 | "es6": true, |
26 | 21 | "jest": true |
27 | 22 | }, |
28 | | - "globals": { |
29 | | - "window": true, |
30 | | - "document": true, |
31 | | - "console": true, |
32 | | - "navigator": true, |
33 | | - "alert": true, |
34 | | - "Blob": true, |
35 | | - "fetch": true, |
36 | | - "FileReader": true, |
37 | | - "Element": true, |
38 | | - "AudioNode": true, |
39 | | - "MutationObserver": true, |
40 | | - "Image": true, |
41 | | - "location": true |
42 | | - }, |
43 | 23 | "rules": { |
44 | 24 | "prettier/prettier": "error", |
45 | | - "no-constant-binary-expression": "error" |
| 25 | + "no-constant-binary-expression": "error", |
| 26 | + "block-scoped-var": "warn", |
| 27 | + "camelcase": "error", |
| 28 | + "constructor-super": "error", |
| 29 | + "dot-notation": "error", |
| 30 | + "eqeqeq": ["error", "smart"], |
| 31 | + "guard-for-in": "error", |
| 32 | + "max-depth": ["warn", 4], |
| 33 | + "max-params": ["warn", 5], |
| 34 | + "new-cap": "error", |
| 35 | + "no-caller": "error", |
| 36 | + "no-const-assign": "error", |
| 37 | + "no-debugger": "error", |
| 38 | + "no-delete-var": "error", |
| 39 | + "no-div-regex": "warn", |
| 40 | + "no-dupe-args": "error", |
| 41 | + "no-dupe-class-members": "error", |
| 42 | + "no-dupe-keys": "error", |
| 43 | + "no-duplicate-case": "error", |
| 44 | + "no-duplicate-imports": "error", |
| 45 | + "no-else-return": "error", |
| 46 | + "no-empty-character-class": "error", |
| 47 | + "no-eval": "error", |
| 48 | + "no-ex-assign": "error", |
| 49 | + "no-extend-native": "warn", |
| 50 | + "no-extra-boolean-cast": "error", |
| 51 | + "no-extra-semi": "error", |
| 52 | + "no-fallthrough": "error", |
| 53 | + "no-func-assign": "error", |
| 54 | + "no-implied-eval": "error", |
| 55 | + "no-inner-declarations": "error", |
| 56 | + "no-irregular-whitespace": "error", |
| 57 | + "no-label-var": "error", |
| 58 | + "no-labels": "error", |
| 59 | + "no-lone-blocks": "error", |
| 60 | + "no-lonely-if": "error", |
| 61 | + "no-multi-str": "error", |
| 62 | + "no-nested-ternary": "warn", |
| 63 | + "no-new-object": "error", |
| 64 | + "no-new-symbol": "error", |
| 65 | + "no-new-wrappers": "error", |
| 66 | + "no-obj-calls": "error", |
| 67 | + "no-octal": "error", |
| 68 | + "no-octal-escape": "error", |
| 69 | + "no-proto": "error", |
| 70 | + "no-redeclare": "error", |
| 71 | + "no-shadow": "warn", |
| 72 | + "no-this-before-super": "error", |
| 73 | + "no-throw-literal": "error", |
| 74 | + "no-undef-init": "error", |
| 75 | + "no-unneeded-ternary": "error", |
| 76 | + "no-unreachable": "error", |
| 77 | + "no-unused-expressions": "error", |
| 78 | + "no-useless-rename": "error", |
| 79 | + "no-var": "error", |
| 80 | + "no-with": "error", |
| 81 | + "prefer-arrow-callback": "warn", |
| 82 | + "prefer-const": "error", |
| 83 | + "prefer-spread": "error", |
| 84 | + "prefer-template": "warn", |
| 85 | + "radix": "error", |
| 86 | + "no-return-await": "error", |
| 87 | + "use-isnan": "error", |
| 88 | + "valid-typeof": "error", |
| 89 | + "@typescript-eslint/no-unused-vars": [ |
| 90 | + "warn", |
| 91 | + { |
| 92 | + "argsIgnorePattern": "^_", |
| 93 | + "varsIgnorePattern": "^_", |
| 94 | + "caughtErrorsIgnorePattern": "^_" |
| 95 | + } |
| 96 | + ] |
46 | 97 | } |
47 | 98 | } |
0 commit comments