-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
87 lines (87 loc) · 1.85 KB
/
.eslintrc.json
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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint",
"vue"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"project": "./tsconfig.json",
"extraFileExtensions": [".vue"],
"ecmaVersion": 2020,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": false
}
},
"rules": {
"vue/singleline-html-element-content-newline": [
"error",
{
"ignoreWhenNoAttributes": true,
"ignoreWhenEmpty": true,
"ignores": ["pre", "textarea", "strong", "span", "slot"]
}
],
"strict": [2, "function"],
"semi": 2,
"eqeqeq": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-infix-ops": 2,
"keyword-spacing": 2,
"import/no-unresolved": 0,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [2, "unix"],
"quotes": [2, "single"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"curly": 2,
"camelcase": 2,
"brace-style": 2,
"no-trailing-spaces": 2,
"no-multiple-empty-lines": 2,
"no-nested-ternary": 2,
"no-var": 2,
"no-console": 0
},
"globals": {
"module": "readonly",
"defineProps": true,
"defineEmits": true,
"withDefaults": true
},
"env": {
"es6": true,
"commonjs": true,
"node": true,
"jest": true,
"browser": true
}
}