-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
62 lines (60 loc) · 1.87 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
52
53
54
55
56
57
58
59
60
61
62
import antfu from "@antfu/eslint-config";
// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";
export default withNuxt(
antfu({
formatters: true,
vue: true,
unocss: {
strict: true,
},
stylistic: {
indent: 4,
semi: true,
quotes: "double",
},
rules: {
"style/array-bracket-newline": ["error", { multiline: true, minItems: 3 }],
"style/function-call-argument-newline": ["error", "consistent"],
"style/brace-style": [
"error",
"1tbs",
{ allowSingleLine: true },
],
"style/max-statements-per-line": ["error", { max: 2 }],
"antfu/if-newline": "off",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
["external"],
[
"parent",
"internal",
"builtin",
"sibling",
"index",
],
"object",
"type",
],
"alphabetize": { order: "asc", caseInsensitive: true },
},
],
"import/newline-after-import": ["error", { count: 1 }],
"unocss/enforce-class-compile": "warn",
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-debugger": "warn",
"vue/max-attributes-per-line": [
"error",
{
singleline: 3,
multiline: {
max: 1,
},
},
],
},
}),
);