forked from recharts/recharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (59 loc) · 1.71 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
{
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"valid-jsdoc": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
// Disable until Flow supports let and const
"no-var": 0,
"vars-on-top": 0,
// Temporarily disabled for test/* until babel/babel-eslint#33 is resolved
"padded-blocks": 0,
"react/jsx-no-bind": 0,
"strict": 0,
"no-unused-vars": 1,
"one-var": ["error", { "uninitialized": "always" }],
"one-var-declaration-per-line": ["error", "initializations"],
"no-mixed-operators": 0,
"no-plusplus": 0,
"import/prefer-default-export": 0,
"react/forbid-prop-types": 0,
"no-bitwise": 0,
"object-property-newline": 0,
"react/no-unused-prop-types": 0,
"class-methods-use-this": 1,
"import/no-named-as-default": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["demo/**", "test/**", "*.config.js", "scripts/**", "**/Spec.js"]
}
],
// Errors introduced while upgrading eslint & plugins
"no-restricted-properties": 1,
"prefer-destructuring": 1,
"object-curly-newline": 0,
"function-paren-newline": 0,
"react/require-default-props": 0,
"indent": 1,
"no-restricted-globals": 1,
"comma-dangle": 0,
"react/default-props-match-prop-types": 0,
"react/no-array-index-key": 1,
"no-multi-assign": 1,
"react/jsx-closing-tag-location": 1,
"react/no-unused-state": 1,
"react/prefer-stateless-function": 1
},
"plugins": [
"react"
]
}