-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
79 lines (78 loc) · 2.26 KB
/
eslint.config.mjs
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// @ts-check
import antfu from "@antfu/eslint-config";
import withNuxt from "./.nuxt/eslint.config.mjs";
export default withNuxt(
antfu(
{
stylistic: false,
typescript: true,
vue: true,
jsonc: true,
ignores: [
"components/Ui/**",
".coderabbit.yaml",
".github/**",
"public/assets/scripts/**"
]
},
{
files: ["**/*.vue"],
rules: {
"vue/html-indent": ["error", 4],
"vue/object-curly-spacing": ["error", "never"],
"vue/html-closing-bracket-newline": [
"error",
{
singleline: "never",
multiline: "never"
}
],
"vue/html-self-closing": "off",
// Does not work with Prettier.
// See: https://prettier.io/blog/2018/11/07/1.15.0#whitespace-sensitive-formatting.
"vue/singleline-html-element-content-newline": "off",
"vue/multiline-html-element-content-newline": "off"
}
},
{
rules: {
"arrow-parens": ["error", "always"]
}
},
{
files: ["**/*.json"],
rules: {
"jsonc/indent": ["error", 4]
}
},
{
rules: {
"node/prefer-global/process": ["error", "always"]
}
},
{
rules: {
"style/ts-consistent-type-definitions": "off", // Fixed rule name
"ts/no-explicit-any": "error"
}
},
{
rules: {
"unicorn/filename-case": [
"error",
{
case: "kebabCase",
ignore: ["^README\\.md$"]
}
]
}
},
{
// TODO: Re-enable theses rules when they are fixed.
rules: {
"ts/consistent-type-definitions": "off", // Fixed rule name
"perfectionist/sort-imports": "off"
}
}
)
);