forked from recharts/recharts.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
40 lines (38 loc) · 836 Bytes
/
.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
{
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"strict": 0,
"valid-jsdoc": 2,
"no-unused-vars": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"prefer-destructuring": "warn",
"max-len": "warn",
"operator-linebreak": ["error", "after"],
"react/no-array-index-key": "warn",
"react/require-default-props": "warn",
"react/prop-types": "warn"
},
"plugins": [
"react"
],
"globals": {
"__DEV__": true,
"__DEVTOOLS__": true
},
"settings" : {
"import/resolver": {
"webpack": {
"config": "webpack.config.dev.js"
}
}
}
}