-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy path.eslintrc.js
77 lines (63 loc) · 1.6 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"node": true,
"commonjs": false,
"es6": true
},
"extends": [
"plugin:vue/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
// This is bugged
"require-atomic-updates": "off",
"no-unused-vars": ["error", { "args": "none", "ignoreRestSiblings": true }],
"comma-dangle": ["error", "always-multiline"],
"arrow-parens": ["error", "as-needed"],
"indent": ["error", "tab", { SwitchCase: 1 }],
"object-curly-spacing": ["error", "always"],
"space-infix-ops": ["error"],
"max-len": ["error", {
code: 120,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true
}],
"eqeqeq": ["error", "always"],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"indent": "off",
"vue/script-indent": [
"error",
"tab",
{"baseIndent": 1}
],
"vue/html-indent": [
"error",
"tab",
],
"vue/max-attributes-per-line": [2, {
"singleline": 4,
"multiline": {
"max": 4,
"allowFirstLine": true,
}
}],
"vue/order-in-components": "off"
}
};