forked from recharts/recharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
42 lines (38 loc) · 1.03 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
{
"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
},
"plugins": [
"react"
]
}