-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (50 loc) · 1.65 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
{
"rules": {
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/jsx-indent-props": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/no-did-mount-set-state": [2, 'allow-in-func'],
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
//"react/no-multi-comp": 1, // doesn't work correctly
"react/no-unknown-property": 2,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/sort-comp": [1, {order: ['mixins', 'render', 'lifecycle', 'everything-else'], groups: {render: ['/^render.*?$/']}}],
"react/require-extension": 2,
// Someday it would be nice to declare all props and then enforce that non-declared props not be used
// This will become especially useful if IDE intellisense supports prop declarations
//"react/prop-types": 1,
"no-mixed-spaces-and-tabs": 2,
"no-param-reassign": 2,
"no-trailing-spaces": 2,
"no-spaced-func": 2,
"no-array-constructor": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"comma-dangle": [ 2, "always-multiline" ],
"strict": [ 2, "global" ],
"no-warning-comments": 1,
"eol-last": 2,
"no-shadow": 2,
"global-require": 2,
"no-mixed-requires": 2,
"no-path-concat": 2,
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": [
"eslint:recommended"
],
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"plugins": [
"react"
]
}