|
45 | 45 | "react-hooks/rules-of-hooks": "error", |
46 | 46 | "react-hooks/exhaustive-deps": "warn" |
47 | 47 | }, |
48 | | - "overrides": { |
49 | | - "files": ["**/*.ts", "**/*.tsx"], |
50 | | - "parser": "@typescript-eslint/parser", |
51 | | - "parserOptions": { |
52 | | - "ecmaVersion": 2018, |
53 | | - "sourceType": "module", |
54 | | - "ecmaFeatures": { "jsx": true }, |
55 | | - "warnOnUnsupportedTypeScriptVersion": true |
56 | | - }, |
57 | | - "plugins": ["@typescript-eslint"], |
58 | | - "rules": { |
59 | | - "default-case": "off", |
60 | | - "no-dupe-class-members": "off", |
61 | | - "@typescript-eslint/no-angle-bracket-type-assertion": "warn", |
62 | | - "no-array-constructor": "off", |
63 | | - "@typescript-eslint/no-array-constructor": "warn", |
64 | | - "@typescript-eslint/no-namespace": "error", |
65 | | - "no-use-before-define": "off", |
66 | | - "@typescript-eslint/no-use-before-define": [ |
67 | | - "warn", |
68 | | - { |
69 | | - "functions": false, |
70 | | - "classes": false, |
71 | | - "variables": false, |
72 | | - "typedefs": false |
73 | | - } |
74 | | - ], |
75 | | - "no-unused-vars": "off", |
76 | | - "@typescript-eslint/no-unused-vars": [ |
77 | | - "warn", |
78 | | - { "args": "none", "ignoreRestSiblings": true } |
79 | | - ], |
80 | | - "no-useless-constructor": "off", |
81 | | - "@typescript-eslint/no-useless-constructor": "warn" |
| 48 | + "overrides": [ |
| 49 | + { |
| 50 | + "files": ["**/*.ts", "**/*.tsx"], |
| 51 | + "parser": "@typescript-eslint/parser", |
| 52 | + "parserOptions": { |
| 53 | + "ecmaVersion": 2018, |
| 54 | + "sourceType": "module", |
| 55 | + "ecmaFeatures": { "jsx": true }, |
| 56 | + "warnOnUnsupportedTypeScriptVersion": true |
| 57 | + }, |
| 58 | + "plugins": ["@typescript-eslint"], |
| 59 | + "rules": { |
| 60 | + "default-case": "off", |
| 61 | + "no-dupe-class-members": "off", |
| 62 | + "@typescript-eslint/no-angle-bracket-type-assertion": "warn", |
| 63 | + "no-array-constructor": "off", |
| 64 | + "@typescript-eslint/no-array-constructor": "warn", |
| 65 | + "@typescript-eslint/no-namespace": "error", |
| 66 | + "no-use-before-define": "off", |
| 67 | + "@typescript-eslint/no-use-before-define": [ |
| 68 | + "warn", |
| 69 | + { |
| 70 | + "functions": false, |
| 71 | + "classes": false, |
| 72 | + "variables": false, |
| 73 | + "typedefs": false |
| 74 | + } |
| 75 | + ], |
| 76 | + "no-unused-vars": "off", |
| 77 | + "@typescript-eslint/no-unused-vars": [ |
| 78 | + "warn", |
| 79 | + { "args": "none", "ignoreRestSiblings": true } |
| 80 | + ], |
| 81 | + "no-useless-constructor": "off", |
| 82 | + "@typescript-eslint/no-useless-constructor": "warn" |
| 83 | + } |
82 | 84 | } |
83 | | - } |
| 85 | + ] |
84 | 86 | } |
0 commit comments