-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
46 lines (42 loc) · 1.16 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
43
44
45
46
{
"extends": "eslint:recommended",
"env": {
"node": true,
"mocha": true
},
"rules": {
// overrides from 'recommended'
"comma-dangle": 0,
"no-console": 0,
// strict
"strict": [2, "global"],
// formatting, spaces, operators
"indent": [2, 2, {"SwitchCase": 1}],
"quotes": [2, "single"],
"semi": [2, "always"],
"keyword-spacing": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "always"],
"dot-location": [2, "property"],
"space-infix-ops": 2,
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"operator-linebreak": [2, "after"],
"no-spaced-func": 2,
"comma-spacing": [1, {"before": false, "after": true}],
"no-multiple-empty-lines": [2, {"max": 2}],
"camelcase": [1, {"properties": "always"}],
// coding style
"curly": 2,
"wrap-iife": [2, "inside"],
"eqeqeq": 2,
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": 2,
"no-unexpected-multiline": 2,
"no-multi-str": 2,
"no-irregular-whitespace": 2,
// os/git options
"no-trailing-spaces": 2,
"linebreak-style": [2, "unix"],
"eol-last": 2
}
}