-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
72 lines (63 loc) · 1.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"plugins": [
"react",
"better",
"fp",
"import",
"lodash-fp",
"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,
// fp rule changes: allow lodash & Ramda
"fp/no-mutating-methods": [2, { "allowedObjects": ["_", "fp", "R"] }],
// lodash/fp rules
"lodash-fp/consistent-compose": 0,
"lodash-fp/consistent-name": [2, "fp"],
"lodash-fp/no-argumentless-calls": 2,
"lodash-fp/no-chain": 2,
"lodash-fp/no-extraneous-args": 2,
"lodash-fp/no-extraneous-function-wrapping": 2,
"lodash-fp/no-extraneous-iteratee-args": 2,
"lodash-fp/no-for-each": 2,
"lodash-fp/no-partial-of-curried": 2,
"lodash-fp/no-single-composition": 2,
"lodash-fp/no-submodule-destructuring": 2,
"lodash-fp/no-unused-result": 2,
"lodash-fp/prefer-compact": 2,
"lodash-fp/prefer-composition-grouping": 2,
"lodash-fp/prefer-constant": [2, { "arrowFunctions": false }],
"lodash-fp/prefer-flat-map": 2,
"lodash-fp/prefer-get": 2,
"lodash-fp/prefer-identity": [2, { "arrowFunctions": false }],
"lodash-fp/preferred-alias": 0,
"lodash-fp/use-fp": 2,
// 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
},
"settings": {
"react": {
"pragma": "Inferno"
}
}
}