-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
33 lines (31 loc) · 890 Bytes
/
.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
{
"env": {
"browser": true,
"node": true,
"jquery": true,
"mocha": true
},
"rules": {
// Possible Errors
"no-console": 1,
// "valid-jsdoc": 1, // We want to generate good documentation, see JSDoc API for more info
// Best Practices
"consistent-return": 0,
"default-case": 2, // We want to have a default case always, and it can't be empty
"eqeqeq": 0,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-script-url": 0,
"no-self-compare": 2,
// Stylistic Issues
"camelcase": 1,
"comma-style": [2, "last"],
"no-lonely-if": 1,
"no-multiple-empty-lines": [1, {"max": 2}],
"no-nested-ternary": 2,
"quotes": 0,
"no-undef": 0,
"no-use-before-define": 0,
"space-before-blocks": 2
}
}