-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy patheslint.config.ts
More file actions
45 lines (42 loc) · 1.15 KB
/
eslint.config.ts
File metadata and controls
45 lines (42 loc) · 1.15 KB
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
import antfu from "@antfu/eslint-config"
import e18e from "@e18e/eslint-plugin"
export default antfu(
{
ignores: ["**/*.json"],
markdown: false,
stylistic: false,
jsonc: false,
jsx: false,
pnpm: false,
toml: false,
typescript: {
tsconfigPath: "tsconfig.json",
overrides: {
"no-console": "off",
"antfu/no-top-level-await": "off",
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"node/prefer-global/process": "off",
"ts/consistent-type-definitions": "off",
"ts/consistent-type-imports": [
"error",
{ fixStyle: "inline-type-imports", disallowTypeAnnotations: false },
],
"ts/no-unsafe-argument": "off",
"ts/no-unsafe-assignment": "off",
"ts/no-use-before-define": "off",
"unicorn/number-literal-case": "off",
"unused-imports/no-unused-vars": "off",
"perfectionist/sort-imports": [
"error",
{
type: "natural",
internalPattern: ["^@/", "^~/", "^#[a-zA-Z0-9-]+/"],
newlinesBetween: 1,
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "unknown"],
},
],
},
},
},
e18e.configs!.recommended as never,
)