-
Notifications
You must be signed in to change notification settings - Fork 590
/
.eslintrc
100 lines (100 loc) · 1.87 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"extends": [
"apostrophe",
"plugin:vue/vue3-recommended"
],
"env": {
"mocha": true
},
"globals": {
"apos": true
},
"rules": {
"max-len": "off",
"no-var": "error",
"no-console": 0,
"vue/no-deprecated-v-on-native-modifier": 0,
"multiline-ternary": "off",
"no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_.", "args": "none" }
],
"vue/no-deprecated-destroyed-lifecycle": 0,
"vue/v-on-event-hyphenation": 1,
"vue/custom-event-name-casing": ["warn", "kebab-case"],
"vue/component-tags-order": [
"warn",
{
"order": [
"template",
"script",
"style"
]
}
],
"vue/max-attributes-per-line": [
"warn",
{
"singleline": 2
}
],
"vue/singleline-html-element-content-newline": [
"warn",
{
"ignoreWhenNoAttributes": true,
"ignoreWhenEmpty": true,
"ignores": [
"h1",
"h2",
"h3",
"pre",
"textarea"
]
}
]
},
"overrides": [
{
"files": "*.vue",
"globals": {
"defineProps": "readonly",
"defineEmits": "readonly",
"defineExpose": "readonly",
"defineOptions": "readonly",
"defineModel": "readonly",
"defineSlots": "readonly"
}
},
{
"files": [
"**/ui/**/*.js"
],
"globals": {
"apos": true
},
"env": {
"browser": true
}
},
{
"files": [
"**/ui/public/*.js"
],
"globals": {
"apos": true
},
"env": {
"browser": true
},
"rules": {
"no-var": 0
}
}
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser",
"sourceType": "module",
"requireConfigFile": false
}
}