-
Notifications
You must be signed in to change notification settings - Fork 4
/
eslint.config.js
51 lines (47 loc) · 1.46 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import antfu from "@antfu/eslint-config"
import withNuxt from "./.nuxt/eslint.config.mjs"
export default withNuxt(
antfu({
ignores: ["**/*.json", "**/*.config.ts"],
stylistic: false,
test: { overrides: { "test/no-import-node-test": "off" } },
vue: {
overrides: {
"vue/block-order": "off",
"vue/html-self-closing": "off",
"vue/singleline-html-element-content-newline": "off",
},
},
typescript: {
tsconfigPath: "./tsconfig.json",
overrides: {
"no-console": "off",
"ts/no-use-before-define": "off",
"ts/consistent-type-definitions": "off",
"ts/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
"ts/no-unsafe-argument": "off",
"ts/no-unsafe-assignment": "off",
"node/prefer-global/process": "off",
"antfu/no-top-level-await": "off",
"perfectionist/sort-imports": [
"error",
{
type: "natural",
internalPattern: ["^@/.+?", "^~/.+?", "^#[a-z]+/.+?"],
newlinesBetween: "always",
groups: [
["builtin", "builtin-type"],
["external", "external-type"],
["internal", "internal-type"],
["parent", "parent-type"],
["sibling", "sibling-type"],
["index", "index-type"],
"object",
"unknown",
],
},
],
},
},
}),
)