|
| 1 | +import antfu from "@antfu/eslint-config" |
| 2 | + |
| 3 | +export default antfu({ |
| 4 | + ignores: ["**/*.json", "**/*.config.ts"], |
| 5 | + stylistic: false, |
| 6 | + test: { overrides: { "test/no-import-node-test": "off" } }, |
| 7 | + vue: false, |
| 8 | + typescript: { |
| 9 | + tsconfigPath: "./tsconfig.json", |
| 10 | + overrides: { |
| 11 | + "no-console": "off", |
| 12 | + |
| 13 | + "ts/no-use-before-define": "off", |
| 14 | + "ts/consistent-type-definitions": "off", |
| 15 | + "ts/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }], |
| 16 | + "ts/no-unsafe-argument": "off", |
| 17 | + "ts/no-unsafe-assignment": "off", |
| 18 | + |
| 19 | + "node/prefer-global/process": "off", |
| 20 | + "antfu/no-top-level-await": "off", |
| 21 | + |
| 22 | + "perfectionist/sort-imports": [ |
| 23 | + "error", |
| 24 | + { |
| 25 | + type: "natural", |
| 26 | + internalPattern: ["^@/.+?", "^~/.+?", "^#[a-z]+/.+?"], |
| 27 | + newlinesBetween: "always", |
| 28 | + groups: [ |
| 29 | + ["builtin", "builtin-type"], |
| 30 | + ["external", "external-type"], |
| 31 | + ["internal", "internal-type"], |
| 32 | + ["parent", "parent-type"], |
| 33 | + ["sibling", "sibling-type"], |
| 34 | + ["index", "index-type"], |
| 35 | + "object", |
| 36 | + "unknown", |
| 37 | + ], |
| 38 | + }, |
| 39 | + ], |
| 40 | + }, |
| 41 | + }, |
| 42 | +}) |
0 commit comments