-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
59 lines (50 loc) · 1.51 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": true // This will remove warnings related to $ being undefined. PR #97
},
"plugins": [
"react" // This will remove warnings related to React not being defined. PR #98
],
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"spread": true,
"templateStrings": true,
"jsx": true
},
"rules": {
"consistent-return": [0],
"key-spacing": [0],
"quotes": [0],
"new-cap": [0],
"no-multi-spaces": [0],
"no-shadow": [0],
// allow alert
"no-alert": [0],
// in ReactJS it is common to have components defined first and then used later. PR #88
"no-unused-vars": [0],
//allow function names starting with underscore statements like this._executeQuery is being flagged. PR #86
"no-underscore-dangle": [0],
//In ReactNavite code it is common to have styles.xxx at the top while styles is defined later. PR #85
"no-use-before-define": [0, "nofunc"],
// Allow dangling commas
"comma-dangle": [0],
// Force space after keywords like if, else and before code blocks. PR #91
"space-after-keywords": [2],
"space-before-blocks": [2],
// Don't warn if camelcase variable names are used. PR #96
"camelcase": [0],
// Prefer === over ==. PR #100
"eqeqeq": [2]
}
}