forked from joshburgess/redux-most
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
53 lines (46 loc) · 1.09 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"plugins": [
"react",
"better",
"fp",
"import",
"promise",
"standard"
],
"extends": ["standard-pure-fp", "standard-react"],
"rules": {
// Allow dangling commas for better clarity in diffs
"comma-dangle": [2, "always-multiline"],
// ES6 Rules
"arrow-parens": [2, "as-needed"],
"prefer-arrow-callback": 2,
// Relax fp rules for library internals & more common react code in example
"better/explicit-return": 0,
"better/no-ifs": 0,
"fp/no-rest-parameters": 0,
"better/no-new": 0,
"fp/no-throw": 0,
"fp/no-this": 0,
"fp/no-class": 0,
"fp/no-mutation": 0,
"fp/no-nil": 0,
"fp/no-unused-expression": 0,
"fp/no-mutating-methods": 0,
// Extra React rules not provided by standard-react
"react/react-in-jsx-scope": 2,
"jsx-quotes": [2, "prefer-single"],
// Disable propTypes validation
"react/prop-types": 0
}
}