-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
81 lines (81 loc) · 2.52 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"html"
],
"extends": "eslint:recommended",
"rules": {
"array-bracket-spacing": ["warn", "never", { "arraysInArrays": true }],
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"callback-return": ["error", ["callback", "cb", "next", "done"]],
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"complexity": "error",
"computed-property-spacing": "error",
"curly": ["error", "multi"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"global-require": "warn",
"handle-callback-err": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"init-declarations": "error",
"key-spacing": "error",
"keyword-spacing": "error",
"lines-around-comment": "error",
"linebreak-style": ["error", "unix"],
"max-depth": "warn",
"max-len": ["warn", 120],
"max-nested-callbacks": ["warn", 5],
"new-cap": ["error", { "properties": false }],
"new-parens": "error",
"no-array-constructor": "error",
"no-console": "warn",
"no-else-return": "error",
"no-empty-function": "warn",
"no-eq-null": "error",
"no-loop-func": "error",
"no-nested-ternary": "error",
"no-param-reassign": "error",
"no-spaced-func": "error",
"no-sequences": "error",
"no-undef-init": "error",
"no-unmodified-loop-condition": "warn",
"no-unneeded-ternary": "error",
"no-use-before-define": "error",
"no-useless-escape": "error",
"no-useless-concat": "error",
"no-useless-constructor": "warn",
"object-shorthand": "error",
"operator-assignment": "error",
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"spaced-comment": "error",
"semi": ["error", "never"],
"vars-on-top": "error",
"yoda": ["error","never"]
}
}