-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
59 lines (59 loc) · 2.03 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
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"globals": {
"inView": true,
"jQuery": true,
"$": true,
"app": true,
"Vue": true,
"VueRouter": true
},
"rules": {
"strict": ["error", "global"],
"semi": "error",
"quotes": ["warn", "single"],
"eqeqeq": ["warn"],
"no-alert": "error",
"curly": ["error", "all"],
"array-callback-return": "error",
"no-extend-native": "error",
"no-unused-vars": ["warn", {"args": "none"}],
"no-implicit-globals": "warn",
"no-loop-func": "warn",
"no-return-assign": "warn",
"no-unmodified-loop-condition": "warn",
"no-nested-ternary": ["error"],
"no-eval": ["error"],
"no-caller": ["error"],
"no-else-return": ["warn"],
"no-console": ["warn"],
"default-case": ["error"],
"no-with": ["error"],
"no-array-constructor": ["error"],
"no-warning-comments": ["warn"],
"no-unused-expressions": ["warn", { "allowShortCircuit": true, "allowTernary": true }],
"no-unneeded-ternary": ["error"],
"no-undefined": ["error"],
"no-multi-str": ["error"],
"no-tabs": ["error"],
"no-new-wrappers": ["error"],
"no-use-before-define": ["error", {"functions": false}],
"max-nested-callbacks": ["error", 4],
"complexity": ["error", 10],
"max-statements-per-line": ["warn"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"max-params": ["warn", { "maximum": 4}],
"new-cap": ["warn", { "newIsCap": true, "capIsNew": false }],
"comma-spacing": ["warn"],
"comma-dangle": ["warn", "never"],
"max-statements": ["warn", 80, {"ignoreTopLevelFunctions": true}],
"no-multiple-empty-lines": ["error", {"max": 1}]
}
}