-
Notifications
You must be signed in to change notification settings - Fork 47
/
.eslintrc
89 lines (88 loc) · 2.43 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "airbnb",
"globals": {
"APP_CONFIG": true
},
"rules": {
"react/sort-comp": [2, {
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"mixinsConfig",
"validatorConstraints",
"defaultProps",
"constructor",
"getDefaultProps",
"getInitialState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
],
"syncano": [
"/^get.+$/",
"/^on.+$/",
"/^is.+$/",
"/^has.+$/",
"/^handle.+$/"
],
"rendering": [
"/^render.+$/",
"render"
]
},
"order": [
"lifecycle",
"syncano",
"everything-else",
"rendering"
]
}],
"newline-after-var": [2, "always"],
"camelcase": 1,
"comma-dangle": [2, "never"],
"global-require": 0,
"max-len": [2, 120],
"import/no-unresolved": [2, { ignore: ['\.assets$'] }],
"no-param-reassign": [2, { "props": false }],
"no-unused-expressions": [2, { "allowShortCircuit": true }],
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-boolean-value": [2, "always"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"arrow-parens": ["error", "always", {
"requireForBlockBody": true
}],
"jsx-a11y/no-static-element-interactions": "off",
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"import/first": ["error", null],
// to be fixed
"react/forbid-prop-types": "off",
"no-prototype-builtins": [0],
"react/no-find-dom-node": [0],
"no-mixed-operators": [0],
"react/jsx-no-target-blank": [0],
"import/imports-first": [0],
"react/no-string-refs": [0],
"array-callback-return": [0],
"prefer-rest-params": [0],
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
"no-underscore-dangle": 0, // to be removed after formMixin is deleted
"react/prefer-es6-class": [0],
"react/prop-types": [0],
}
}