-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.json
73 lines (71 loc) · 1.58 KB
/
.eslintrc.json
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
65
66
67
68
69
70
71
72
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": ["react"],
"globals": {
"expect": true,
"it": true,
"jest": true
},
"env": {
"es6": true,
"mocha": true,
"node": true,
"browser": true
},
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.2"
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"sourceType": "module",
"ecmaVersion": 8
},
"rules": {
"comma-dangle": 0,
"quotes": [2, "single", "avoid-escape"],
"no-multiple-empty-lines": [
"error",
{ "max": 1, "maxEOF": 1, "maxBOF": 0 }
],
"padded-blocks": "warn",
"no-unused-vars": "warn",
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"react/jsx-uses-react": "error",
"react/jsx-wrap-multilines": "warn",
"react/jsx-uses-vars": "error",
"react/require-default-props": "warn",
"react/no-array-index-key": "warn",
"no-constant-condition": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-underscore-dangle": [
"error",
{ "allow": ["__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"] }
],
"prefer-const": "warn",
"jsx-a11y/label-has-for": [
1,
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-a11y/href-no-hash": [0],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"]
}
]
}
}