-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (46 loc) · 1.3 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parserOptions: {
ecmascript: 6,
sourceType: 'module',
},
settings: {
'import/resolver': {
webpack: {
config: path.join(__dirname, './webpack.config.js'),
},
},
},
env: {
browser: true,
node: true
},
extends: [
'kuaizhan'
],
rules: {
'react/prefer-stateless-function': 'off',
'react/jsx-indent-props': [1, 4],
'jsx-a11y/label-has-for': 'off',
"jsx-a11y/href-no-hash": "off",
'jsx-a11y/no-static-element-interactions': 'off',
'react/no-array-index-key': 'off',
'import/no-extraneous-dependencies': 'off',
'class-methods-use-this': ['error', {
exceptMethods: [
'render',
'getInitialState',
'getDefaultProps',
'getChildContext',
'componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'componentDidUpdate',
'componentWillUnmount',
'initStateFromProps',
],
}],
},
};