-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc
71 lines (69 loc) · 1.77 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",
"extends": "airbnb",
"env": {
"browser": true,
"es6": true,
"jest": true
},
"rules": {
"eqeqeq": [2, "allow-null"],
"id-length": 0,
"no-console": 0, // use it for warnings
"no-nested-ternary": 0,
"prefer-const": 0,
"no-multiple-empty-lines": 0,
"no-useless-escape": 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"
]
}
],
"max-len": 0,
"no-mixed-operators": 0,
"no-continue": 0,
"no-restricted-syntax": 0,
"no-plusplus": 0,
"no-confusing-arrow": 0,
"arrow-parens": 0,
"arrow-body-style": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/jsx-closing-bracket-location": 0,
"react/prefer-es6-class": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"object-curly-spacing": 0,
"import/imports-first": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"react/no-array-index-key": 0,
"react/require-default-props": 0
}
}