|
1 | 1 | import antfu from "@antfu/eslint-config" |
2 | | -import e18e from "@e18e/eslint-plugin" |
3 | 2 |
|
4 | | -export default antfu( |
5 | | - { |
6 | | - ignores: ["**/*.json"], |
7 | | - markdown: false, |
8 | | - stylistic: false, |
9 | | - jsonc: false, |
10 | | - jsx: false, |
11 | | - pnpm: false, |
12 | | - toml: false, |
13 | | - typescript: { |
14 | | - tsconfigPath: "tsconfig.json", |
| 3 | +export default antfu({ |
| 4 | + ignores: ["**/*.json"], |
| 5 | + markdown: false, |
| 6 | + stylistic: false, |
| 7 | + jsonc: false, |
| 8 | + jsx: false, |
| 9 | + pnpm: false, |
| 10 | + toml: false, |
| 11 | + typescript: { |
| 12 | + tsconfigPath: "tsconfig.json", |
15 | 13 |
|
16 | | - overrides: { |
17 | | - "no-console": "off", |
18 | | - "antfu/no-top-level-await": "off", |
19 | | - "import/consistent-type-specifier-style": ["error", "prefer-top-level"], |
20 | | - "node/prefer-global/process": "off", |
21 | | - "ts/consistent-type-definitions": "off", |
22 | | - "ts/consistent-type-imports": [ |
23 | | - "error", |
24 | | - { fixStyle: "inline-type-imports", disallowTypeAnnotations: false }, |
25 | | - ], |
26 | | - "ts/no-unsafe-argument": "off", |
27 | | - "ts/no-unsafe-assignment": "off", |
28 | | - "ts/no-use-before-define": "off", |
29 | | - "unicorn/number-literal-case": "off", |
30 | | - "unused-imports/no-unused-vars": "off", |
| 14 | + overrides: { |
| 15 | + "no-console": "off", |
| 16 | + "antfu/no-top-level-await": "off", |
| 17 | + "import/consistent-type-specifier-style": ["error", "prefer-top-level"], |
| 18 | + "node/prefer-global/process": "off", |
| 19 | + "ts/consistent-type-definitions": "off", |
| 20 | + "ts/consistent-type-imports": [ |
| 21 | + "error", |
| 22 | + { fixStyle: "inline-type-imports", disallowTypeAnnotations: false }, |
| 23 | + ], |
| 24 | + "ts/no-unsafe-argument": "off", |
| 25 | + "ts/no-unsafe-assignment": "off", |
| 26 | + "ts/no-use-before-define": "off", |
| 27 | + "unicorn/number-literal-case": "off", |
| 28 | + "unused-imports/no-unused-vars": "off", |
31 | 29 |
|
32 | | - "perfectionist/sort-imports": [ |
33 | | - "error", |
34 | | - { |
35 | | - type: "natural", |
36 | | - internalPattern: ["^@/", "^~/", "^#[a-zA-Z0-9-]+/"], |
37 | | - newlinesBetween: 1, |
38 | | - groups: ["builtin", "external", "internal", "parent", "sibling", "index", "unknown"], |
39 | | - }, |
40 | | - ], |
41 | | - }, |
| 30 | + "perfectionist/sort-imports": [ |
| 31 | + "error", |
| 32 | + { |
| 33 | + type: "natural", |
| 34 | + internalPattern: ["^@/", "^~/", "^#[a-zA-Z0-9-]+/"], |
| 35 | + newlinesBetween: 1, |
| 36 | + groups: ["builtin", "external", "internal", "parent", "sibling", "index", "unknown"], |
| 37 | + }, |
| 38 | + ], |
42 | 39 | }, |
43 | 40 | }, |
44 | | - e18e.configs!.recommended as never, |
45 | | -) |
| 41 | +}) |
0 commit comments