-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc
72 lines (72 loc) · 2.55 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": false
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"FF": true,
"FamousFramework": true,
"QUERY": true
},
"parser": "babel-eslint",
"rules": {
// Possible Errors
"comma-dangle": 1,
"valid-jsdoc": 0, //Moved to a separate script check-jsdoc
// Better Practices
"block-scoped-var": 0,
"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
}
}