forked from relax/relax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
65 lines (65 loc) · 1.75 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"object-curly-spacing": [2, "never"],
"space-before-function-paren": [2, "always"],
"comma-dangle": [2, "never"],
'max-len': [1, 115, 2, {
'ignoreUrls': true,
'ignoreComments': false
}],
"no-unused-expressions": [2, { allowShortCircuit: true }],
"no-use-before-define": [2, { "functions": false, "classes": true }],
"no-param-reassign": [2, {"props": false}],
'react/prefer-stateless-function': 0,
"consistent-return": 0,
new-cap: [2, {"capIsNewExceptions": ["ObjectId"]}],
"jsx-quotes": 0,
'react/jsx-no-bind': [2, {
'ignoreRefs': true,
'allowArrowFunctions': false,
'allowBind': false,
}],
"react/sort-comp": [2, { // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md
"order": [
'lifecycle',
'everything-else',
'renderstuff'
],
"groups": {
lifecycle: [
"displayName",
"fragments",
"panelSettings",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"defaultChildren",
"propsSchema",
"settings",
"style",
"constructor",
"getDefaultProps",
"getInitState",
"init",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
],
renderstuff: [
"render",
"/^render.+$/"
]
}
}]
}
}