-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc
42 lines (42 loc) · 1.15 KB
/
.eslintrc
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
{
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"consistent-return": "off",
"curly": "error",
"eqeqeq": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"max-len": ["error", 80, 4],
"newline-after-var": ["error", "always"],
"no-console": "off",
"no-multiple-empty-lines": "error",
"no-throw-literal": "error",
"no-underscore-dangle": "off",
"no-unused-vars": ["error", {
"vars": "all",
"args": "none"
}],
"no-use-before-define": ["error", "nofunc"],
"object-curly-spacing": ["error", "always"],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single"],
"radix": "error",
"keyword-spacing": "error",
"space-before-blocks": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-unary-ops": ["error", {
"words": true,
"nonwords": false
}],
"strict": ["error", "global"],
"wrap-iife": ["error", "inside"]
}
}