|
5 | 5 | "extends": [ |
6 | 6 | "eslint:recommended", |
7 | 7 | "plugin:@typescript-eslint/strict-type-checked", |
8 | | - "plugin:@typescript-eslint/stylistic-type-checked", |
9 | 8 | "plugin:import/recommended", |
10 | 9 | "plugin:import/typescript", |
11 | 10 | "prettier" |
|
24 | 23 | "root": true, |
25 | 24 | "rules": { |
26 | 25 | "anti-trojan-source/no-bidi": "error", |
27 | | - "arrow-parens": ["off"], |
28 | | - "brace-style": ["off", "stroustrup"], |
29 | | - "consistent-return": "off", |
30 | | - "curly": ["error", "multi-line", "consistent"], |
31 | | - "eol-last": "error", |
32 | | - "linebreak-style": ["error", "unix"], |
33 | | - "new-parens": "error", |
34 | | - "no-console": "off", |
35 | 26 | "no-constant-condition": ["warn", { "checkLoops": false }], |
36 | 27 | "no-constant-binary-expression": "error", |
37 | 28 | "no-caller": "error", |
38 | 29 | "no-debugger": "off", |
39 | | - "no-dupe-class-members": "off", |
40 | 30 | "no-else-return": "warn", |
41 | 31 | "no-empty": ["warn", { "allowEmptyCatch": true }], |
42 | 32 | "no-eval": "error", |
43 | 33 | "no-ex-assign": "warn", |
44 | 34 | "no-extend-native": "error", |
45 | 35 | "no-extra-bind": "error", |
| 36 | + "no-extra-semi": "off", |
46 | 37 | "no-floating-decimal": "error", |
47 | 38 | "no-implicit-coercion": "error", |
48 | 39 | "no-implied-eval": "error", |
49 | 40 | "no-inner-declarations": "off", |
50 | 41 | "no-lone-blocks": "error", |
51 | 42 | "no-lonely-if": "error", |
52 | 43 | "no-loop-func": "error", |
53 | | - "no-multi-spaces": "error", |
| 44 | + "no-mixed-spaces-and-tabs": "off", |
54 | 45 | "no-restricted-globals": ["error", "process"], |
55 | 46 | "no-restricted-imports": [ |
56 | 47 | "error", |
|
98 | 89 | "message": "Use @env/ instead" |
99 | 90 | }, |
100 | 91 | { |
101 | | - "group": ["src/**/*"], |
| 92 | + "group": ["src/*"], |
102 | 93 | "message": "Use relative paths instead" |
| 94 | + }, |
| 95 | + { |
| 96 | + "group": ["react-dom"], |
| 97 | + "importNames": ["Container"], |
| 98 | + "message": "Use our Container instead" |
103 | 99 | } |
104 | 100 | ] |
105 | 101 | } |
|
138 | 134 | "prefer-rest-params": "error", |
139 | 135 | "prefer-spread": "error", |
140 | 136 | "prefer-template": "error", |
141 | | - "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], |
142 | 137 | "require-atomic-updates": "off", |
143 | | - "semi": ["error", "always"], |
144 | | - "semi-style": ["error", "last"], |
145 | 138 | "sort-imports": [ |
146 | 139 | "error", |
147 | 140 | { |
|
153 | 146 | ], |
154 | 147 | "yoda": "error", |
155 | 148 | "import/consistent-type-specifier-style": ["error", "prefer-top-level"], |
156 | | - "import/extensions": ["error", "never"], |
| 149 | + "import/extensions": "off", |
157 | 150 | "import/newline-after-import": "warn", |
158 | 151 | "import/no-absolute-path": "error", |
159 | 152 | "import/no-cycle": "off", |
|
326 | 319 | { |
327 | 320 | "files": ["src/env/node/**/*"], |
328 | 321 | "rules": { |
329 | | - "no-restricted-imports": "off" |
| 322 | + "no-restricted-imports": [ |
| 323 | + "error", |
| 324 | + { |
| 325 | + "patterns": [ |
| 326 | + { |
| 327 | + "group": ["src/*"], |
| 328 | + "message": "Use relative paths instead" |
| 329 | + }, |
| 330 | + { |
| 331 | + "group": ["react-dom"], |
| 332 | + "importNames": ["Container"], |
| 333 | + "message": "Use our Container instead" |
| 334 | + } |
| 335 | + ] |
| 336 | + } |
| 337 | + ] |
330 | 338 | } |
331 | 339 | } |
332 | 340 | ] |
|
0 commit comments