-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
43 lines (43 loc) · 970 Bytes
/
.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
{
"parser": "vue-eslint-parser",
"env": {
"node": true
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"ecmaVersion": 2022
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:vue/vue3-recommended"],
"globals": {
"defineProps": "readonly",
"defineEmits": "readonly",
"withDefaults": "readonly"
},
"rules": {
// "vue/no-unused-components":"no",
"no-debugger": "error",
"no-var": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"vue/first-attribute-linebreak": [
"error",
{
"singleline": "beside",
"multiline": "beside"
}
],
"vue/max-attributes-per-line": [
"error",
{
"singleline": {
"max": 5
},
"multiline": {
"max": 5
}
}
],
"vue/singleline-html-element-content-newline": "off",
"no-undef": "off"
}
}