-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.73 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
{
"root": true,
"env": {
"node": true,
"jquery": true
},
"extends": [
"plugin:vue/strongly-recommended",
"eslint:recommended"
],
"globals": {
"_": "readonly"
},
"ignorePatterns": ["public/theme/**"],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {
"curly": ["error"],
"eol-last": ["error", "always"],
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"max-len": ["warn", {
"code": 120,
"ignoreUrls": true,
"ignoreRegExpLiterals": true
}],
"new-parens": "error",
"no-console": "warn",
"no-debugger": "warn",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-unused-vars": ["warn"],
"no-var": ["error"],
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"prefer-const": ["warn"],
"quotes": ["error", "single"],
"require-await": ["warn"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"vue/html-closing-bracket-newline": "off",
"vue/html-indent": ["error", 4, { "baseIndent": 1 }],
"vue/max-attributes-per-line": ["error", {
"singleline": 99,
"multiline": { "max": 1, "allowFirstLine": true }
}],
"vue/script-indent": ["error", 4, { "baseIndent": 1 }],
"vue/singleline-html-element-content-newline": "off"
},
"overrides": [
{
"files": ["*.vue", "*.js"],
"rules": {
"indent": "off"
}
}
]
}