-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
35 lines (35 loc) · 1.04 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
{
"parser": "babel-eslint",
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"extends": "airbnb",
"rules": {
"no-undef": 2,
"semi": [2, "always"],
"comma-dangle": [2, "never"],
"strict": 0,
"indent": [2, 2],
"quotes": [2, "single", "avoid-escape"],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"react/prop-types": [2, { ignore: ["classes", "style"] }], // Ignoring classes and style in favor of the "...stylePropType" syntax TODO: create custom eslint rule to handle this.
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 1,
"id-length": 0,
"react/jsx-closing-bracket-location": 0,
"max-len": [1, 120, 4],
"react/jsx-no-bind": [0], // It is a best practice, but we don't believe in warnings and sometimes we want to generate nice closures as props.
"prefer-template": 0, //TODO: evalute this new rule
"arrow-body-style": 0 //TODO: evaluate this new rule
}
}