|
1 | 1 | { |
2 | 2 | "root": true, |
3 | | - "extends": ["standard-with-typescript", "prettier"], |
4 | 3 | "plugins": ["simple-import-sort", "unused-imports"], |
5 | 4 | "parserOptions": { |
6 | | - "project": "./tsconfig.json" |
| 5 | + "sourceType": "module", |
| 6 | + "ecmaVersion": "latest" |
7 | 7 | }, |
8 | 8 | "rules": { |
9 | | - "no-console": "warn", |
10 | | - "@typescript-eslint/consistent-type-imports": [ |
11 | | - "error", |
12 | | - { |
13 | | - "fixStyle": "inline-type-imports" |
14 | | - } |
15 | | - ], |
16 | | - "@typescript-eslint/no-unused-vars": "off", |
| 9 | + "no-console": "error", |
17 | 10 | "unused-imports/no-unused-imports": "error", |
18 | 11 | "unused-imports/no-unused-vars": [ |
19 | 12 | "error", |
|
34 | 27 | ["^\\u0000"], |
35 | 28 | ["^node:"], |
36 | 29 | ["^@?\\w"], |
37 | | - ["index.js"], |
| 30 | + ["@seamapi/makenew-tsmodule"], |
38 | 31 | ["^lib/"], |
39 | 32 | ["^"], |
40 | 33 | ["^\\."] |
41 | 34 | ] |
42 | 35 | } |
43 | 36 | ], |
44 | 37 | "simple-import-sort/exports": "error" |
45 | | - } |
| 38 | + }, |
| 39 | + "overrides": [ |
| 40 | + { |
| 41 | + "files": ["*.js", "*.mjs", "*.cjs"], |
| 42 | + "extends": ["standard", "prettier"] |
| 43 | + }, |
| 44 | + { |
| 45 | + "files": ["*.ts", "*.tsx"], |
| 46 | + "extends": ["standard-with-typescript", "prettier"], |
| 47 | + "parserOptions": { |
| 48 | + "project": "./tsconfig.json" |
| 49 | + }, |
| 50 | + "rules": { |
| 51 | + "@typescript-eslint/no-import-type-side-effects": "error", |
| 52 | + "@typescript-eslint/consistent-type-imports": [ |
| 53 | + "error", |
| 54 | + { |
| 55 | + "fixStyle": "inline-type-imports" |
| 56 | + } |
| 57 | + ], |
| 58 | + "@typescript-eslint/no-unused-vars": "off" |
| 59 | + } |
| 60 | + } |
| 61 | + ] |
46 | 62 | } |
0 commit comments