forked from lelandrichardson/redux-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.13 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
{
"root": true,
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"node": true
},
"plugins": [
"prefer-object-spread"
],
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"experimentalObjectRestSpread": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true
},
"rules": {
"new-cap": 0,
"no-use-before-define": 0,
"arrow-body-style": 0,
// triple equals is required except for when comparing with null
"eqeqeq": [2, "allow-null"],
// Allow console methods, which get removed during build process
"no-console": 0,
// Disable `arrow-parens` because it conflicts with Flow.
"arrow-parens": 0,
"prefer-object-spread/prefer-object-spread": 2
},
"globals": {
"__DEV__": true
}
}