-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
71 lines (71 loc) · 1.71 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
60
61
62
63
64
65
66
67
68
69
70
71
{
"parser": "babel-eslint",
"plugins": ["babel"],
"extends": "airbnb",
"rules": {
"semi": [2, "never"],
"arrow-body-style": 0,
"max-len": 0,
"no-console": 0,
"no-multi-spaces": 2,
"no-nested-ternary": 0,
"no-else-return": 0,
"block-scoped-var": 0,
"prefer-arrow-callback": 2,
"prefer-template": 2,
"new-cap": 0,
"one-var": 0,
"no-dupe-keys": 2,
"spaced-comment": 0,
"id-length": 0,
"no-unused-expressions": 0,
"object-curly-spacing": 0,
"babel/object-curly-spacing": [2, "never"],
"babel/object-shorthand": 2,
"babel/arrow-parens": 2,
"jsx-quotes": [2, "prefer-single"],
"react/wrap-multilines": 0,
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-indent-props": [2, 2],
"react/jsx-max-props-per-line": [2, { "maximum": 4 }],
"react/sort-comp": [2, {
order: [
'lifecycle',
'render',
'/^_render.+$/',
'/^_handle.+$/',
'everything-else'
],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"defaultProps",
"contextTypes",
"childContextTypes",
"getChildContext",
"fromStores",
"constructor",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
]
}
}]
},
"globals": {
"__DEV__": false,
"it": false,
"afterEach": false,
"beforeEach": false,
"before": false,
"after": false,
"describe": false,
"expect": false,
"assert": false
}
}