-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.1 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
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"mocha": true
},
"rules": {
"import/no-extraneous-dependencies": "off",
"no-underscore-dangle": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"react/no-unused-state": "off",
"react/jsx-no-bind": "off",
"react/no-unused-prop-types": "off",
"react/forbid-prop-types": "off",
"react/no-did-mount-set-state": "off",
"react/prefer-stateless-function": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/no-array-index-key": "off",
// ignore salt-xxx error in demo
"import/no-unresolved": [2, { ignore: ['salt\-'] }],
"import/extensions": "off"
},
// TODO how to resolve salt-xxx properly in demo? may be some config in import/resolver
// "settings": {
// "import/resolver": {
// "webpack": {
// "config": "webpack.dev.js"
// }
// }
// },
};