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