forked from ElemeFE/element-react
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
49 lines (49 loc) · 1.61 KB
/
.eslintrc.json
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
{
"root": true,
"parser": "babel-eslint",
"extends": [ "airbnb", "eslint:recommended", "plugin:flowtype/recommended" ],
"plugins": [ "react", "jsx-a11y", "flowtype" ],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"rules": {
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/mouse-events-have-key-events": 0,
"react/self-closing-comp": 0,
"react/jsx-no-bind": 0,
"react/jsx-curly-spacing": 0,
"react/no-string-refs": 0,
"react/jsx-closing-bracket-location": 0,
"react/jsx-boolean-value": 0,
"react/no-did-mount-set-state": 1,
"react/jsx-first-prop-new-line": 0,
"react/jsx-max-props-per-line": 0,
"react/require-default-props": 0,
"jsx-a11y/img-has-alt": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"import/no-named-as-default-member": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [1, {"devDependencies": ["**/__test__/**/*.js", "**/__test__/**/*.jsx", "**/*_test.jsx", "**/*_test.js"]}],
"no-empty": 1,
"no-console": 1,
"react/sort-comp": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": [1, { "ignore": ["children", "key"] }],
"react/no-find-dom-node": 0,
"react/no-unused-prop-types": 1,
"react/forbid-prop-types": [1, { "forbid": ["array"] }],
"react/no-array-index-key": 0,
"import/no-cycle": 0
}
}