-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patheslint.config.mjs
70 lines (68 loc) · 1.04 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
// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";
const INLINE_ELEMENTS = [
"AnchorLink",
"pre",
"textarea",
"router-link",
"RouterLink",
"nuxt-link",
"NuxtLink",
"u-link",
"ULink",
"a",
"abbr",
"audio",
"b",
"bdi",
"bdo",
"canvas",
"cite",
"code",
"data",
"del",
"dfn",
"em",
"i",
"iframe",
"ins",
"kbd",
"label",
"map",
"mark",
"noscript",
"object",
"output",
"picture",
"q",
"ruby",
"s",
"samp",
"small",
"span",
"strong",
"sub",
"sup",
"svg",
"time",
"u",
"var",
"video",
];
export default withNuxt({
rules: {
"curly": "error",
"vue/multiline-html-element-content-newline": ["error", {
ignoreWhenEmpty: true,
ignores: INLINE_ELEMENTS,
allowEmptyLines: false,
}],
"vue/singleline-html-element-content-newline": ["warn", {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: INLINE_ELEMENTS,
externalIgnores: [],
}],
"@typescript-eslint/no-non-null-assertion": "error",
},
});