-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
76 lines (76 loc) · 2.48 KB
/
.eslintrc
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
{
"root":true,
"env": {
"browser":true,
"node":true
},
"extends": [
// "@nuxtjs/eslint-config-typescript",
"@antfu"
],
"plugins": [],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"camelcase": "off",
"import/named": "off",
"no-useless-constructor": "off",
"no-control-regex": "off",
"no-console": "warn",
"@typescript-eslint/brace-style": "off",
"brace-style": [
"error",
"1tbs"
],
"curly": [
"error",
"all"
],
"@typescript-eslint/space-before-function-paren": "off",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"vue/max-attributes-per-line": ["error", {
"singleline": {
"max": 3
},
"multiline": {
"max": 1
}
}],
"vue/component-tags-order": ["error", {
"order": [ "template", "script", "style" ]
}],
"vue/custom-event-name-casing": ["error", "kebab-case"],
"vue/no-deprecated-v-on-native-modifier": "off",
"vue/no-deprecated-dollar-listeners-api": "off",
"vue/no-deprecated-v-bind-sync": "off",
"vue/no-deprecated-dollar-scopedslots-api": "off",
"vue/no-deprecated-filter": "off",
"vue/require-explicit-emits": "off",
"vue/no-deprecated-destroyed-lifecycle": "off",
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/multiline-html-element-content-newline": ["error", {
"ignores": ["pre", "textarea", "nuxt-link", "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", "a-link"]
}],
"vue/singleline-html-element-content-newline": ["error", {
"ignores": ["pre", "textarea", "nuxt-link", "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", "a-link"]
}]
}
}