-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
42 lines (42 loc) · 1.54 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": {
"browser": true,
"node": true
},
"rules": {
// Possible Errors
"comma-dangle": 1,
"valid-jsdoc": 0, //Moved to a separate script check-jsdoc
// Best Practices
"block-scoped-var": 1,
"curly": [0, "multi"],
"dot-location": [0, "object"], //Too much noise for now, might consider to enable it as a warning later
"eqeqeq": [2, "allow-null"],
"no-loop-func": 0,
"no-multi-spaces": 0,
"no-self-compare": 1,
// Strict Mode
"strict": 1,
// Variables
"no-shadow": 0, //Too much noise from tests, might consider to enable it as a warning later
"no-undefined": 0,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": [0, "nofunc"],
"no-new": 0,
// Stylistic Issues
"brace-style": [1, "stroustrup"],
"camelcase": 0, //Too much noise from tests, might consider to enable it as a warning later
"comma-spacing": [0, {"before": false, "after": true}], //Noise
"consistent-this": [0, "_this"],
"eol-last": 1,
"key-spacing": 0,
"new-cap": 0,
"no-trailing-spaces": 0,
"no-mixed-spaces-and-tabs": 0, //Too much noise for now, might consider to enable it as a warning later
"no-underscore-dangle": 0,
"quotes": [0, "single"], //Too much noise for now, might consider to enable it as a warning later
"semi-spacing": 0, //Too much noise for now, might consider to enable it as a warning later
"space-infix-ops": 0,
"space-unary-ops": 0 //Too much noise for now, might consider to enable it as a warning later
}
}