-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·47 lines (47 loc) · 1.1 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
{
"extends": "airbnb",
"env": {
"es6": true,
"jasmine": true
},
"rules": {
"eqeqeq": [2, "allow-null"],
"id-length": 0,
"no-console": 0, // use it for warnings
"no-nested-ternary": 0,
"prefer-const": 0,
"no-param-reassign": 0,
"func-names": 0,
"react/no-did-mount-set-state": 2,
"react/no-multi-comp": 0,
"react/jsx-boolean-value": [2, "always"],
"react/sort-comp": [
2, {
"order": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"getDefaultProps",
"getInitialState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount",
"/^on.+$/",
"/^get.+$/",
"/^render.+$/",
"/^.+$/", // All other methods go here
"render"
]
}
]
}
}