|
45 | 45 | } |
46 | 46 | }, |
47 | 47 | { |
48 | | - "files": [".eslintrc.json", ".prettierrc.json", "tsconfig.json", "tsconfig.*.json"], |
| 48 | + "files": [ |
| 49 | + ".eslintrc.json", |
| 50 | + ".prettierrc.json", |
| 51 | + "tsconfig.json", |
| 52 | + "tsconfig.*.json", |
| 53 | + ".vscode/*.json" |
| 54 | + ], |
49 | 55 | "rules": { |
50 | 56 | /* OK for `rc` files */ |
51 | 57 | "jsonc/no-comments": "off" |
|
175 | 181 | } |
176 | 182 | ], |
177 | 183 | "@typescript-eslint/no-for-in-array": "error", |
178 | | - "@typescript-eslint/no-implicit-any-catch": [ |
179 | | - "error", |
180 | | - { |
181 | | - "allowExplicitAny": false |
182 | | - } |
183 | | - ], |
184 | 184 | "@typescript-eslint/no-inferrable-types": "error", |
185 | 185 | "@typescript-eslint/no-misused-new": "error", |
186 | 186 | "@typescript-eslint/no-non-null-asserted-optional-chain": "error", |
|
196 | 196 | "@typescript-eslint/sort-type-constituents": "error", |
197 | 197 | "@typescript-eslint/type-annotation-spacing": "error", |
198 | 198 | "etc/no-assign-mutated-array": "error", |
199 | | - "etc/no-deprecated": "warn", |
200 | 199 | "etc/no-implicit-any-catch": [ |
201 | 200 | "error", |
202 | 201 | { |
|
229 | 228 | "env": { |
230 | 229 | "jest": true |
231 | 230 | }, |
232 | | - "extends": ["plugin:jest/recommended", "plugin:jest/style", "plugin:jest-extended/all"], |
| 231 | + "extends": ["plugin:jest/recommended", "plugin:jest/style"], |
233 | 232 | "files": ["*.spec.ts", "*.spec.js"], |
234 | 233 | "plugins": ["jest"], |
235 | 234 | "rules": { |
|
285 | 284 | } |
286 | 285 | ], |
287 | 286 | "plugins": [ |
288 | | - "@cspell", |
289 | 287 | "@shopify", |
290 | 288 | "eslint-plugin-import", |
291 | 289 | "etc", |
292 | | - "jest-extended", |
293 | 290 | "prettier", |
294 | 291 | "sonarjs", |
295 | 292 | "sort-destructure-keys", |
| 293 | + "sort-keys-plus", |
296 | 294 | "typescript-sort-keys", |
297 | 295 | "unicorn", |
298 | 296 | "unused-imports" |
299 | 297 | ], |
300 | 298 | "root": true, |
301 | 299 | "rules": { |
302 | | - "@cspell/spellchecker": [ |
303 | | - "warn", |
304 | | - { |
305 | | - "autoFix": true, |
306 | | - "customWordListFile": "./tools/cspell/words.txt" |
307 | | - } |
308 | | - ], |
309 | 300 | "@shopify/no-useless-computed-properties": "error", |
310 | 301 | "@shopify/prefer-early-return": "error", |
311 | 302 | "arrow-parens": "off", |
312 | | - "comma-dangle": "error", |
313 | 303 | "curly": ["error", "all"], |
314 | 304 | "eol-last": "error", |
315 | 305 | "eqeqeq": "error", |
|
413 | 403 | "allowLineSeparatedGroups": true |
414 | 404 | } |
415 | 405 | ], |
| 406 | + "sort-keys-plus/sort-keys": [ |
| 407 | + "error", |
| 408 | + "asc", |
| 409 | + { |
| 410 | + "allowLineSeparatedGroups": true |
| 411 | + } |
| 412 | + ], |
416 | 413 | "sort-vars": "error", |
417 | 414 | "space-before-blocks": "error", |
418 | 415 | "space-before-function-paren": [ |
|
0 commit comments