-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
29 lines (29 loc) · 1.11 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
{
"env": {
"node": true
},
"rules": {
"semi": "error",
"no-alert": "error",
"no-dupe-keys": "error",
"curly": ["error", "multi-line"],
"no-extra-semi": "error",
"no-inner-declarations": "error",
"no-unreachable": "error",
"valid-typeof": "error",
"array-callback-return": "error",
"no-else-return": "warn",
"no-extend-native": "error",
"no-implicit-globals": "error",
"no-loop-func": "warn",
"no-return-assign": "warn",
"no-unmodified-loop-condition": "warn",
"no-unused-expressions": ["warn", { "allowShortCircuit": true, "allowTernary": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", {"properties": "never"}],
"lines-around-comment": ["warn", { "beforeLineComment": true, "beforeBlockComment": true, "allowBlockStart": true }],
"max-params": ["warn", { "maximum": 4}],
"new-cap": ["warn", { "newIsCap": true, "capIsNew": false }],
"no-multiple-empty-lines": ["error", {"max": 1}]
}
}