-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
98 lines (98 loc) · 2.68 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
90
91
92
93
94
95
96
97
98
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true
},
"rules": {
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"react/require-default-props": 0,
"arrow-parens": 0,
"react/forbid-prop-types": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/no-static-element-interactions": 0,
"react/no-find-dom-node": 0,
"import/extensions": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
"react/no-array-index-key": 0,
"function-paren-newline": 0,
"no-mixed-operators": 0,
"prefer-destructuring": 0,
"no-bitwise": 0,
"object-curly-newline": 0,
"import/no-unresolved": [
2,
{
"ignore": ["^hana-ui", "^demo", "^!raw", "README"]
}
],
"object-curly-spacing": [2, "never"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "ignore"}],
"comma-dangle": [2, "never"],
"max-len": [
1,
115,
2,
{
"ignoreUrls": true,
"ignoreComments": true
}
],
"no-script-url": 0,
"no-unused-expressions": [2, {"allowShortCircuit": true}],
"no-use-before-define": [2, {"functions": false, "classes": true}],
"no-underscore-dangle": [2, {"allowAfterThis": 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": true,
"allowBind": false
}
],
"react/sort-comp": [
2,
{
"order": ["lifecycle", "everything-else", "renderstuff"],
"groups": {
"lifecycle": [
"displayName",
"fragments",
"panelSettings",
"mixins",
"statics",
"propTypes",
"contextTypes",
"childContextTypes",
"defaultProps",
"defaultChildren",
"propsSchema",
"settings",
"style",
"state",
"constructor",
"getDefaultProps",
"getInitState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
],
"renderstuff": ["render", "/^render.+$/"]
}
}
]
}
}