-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
46 lines (46 loc) · 1.41 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
{
"extends": "airbnb",
"globals": {
"window": true,
"document": true,
"localStorage": true,
"expect": true,
"fetch": true,
"describe": true,
"test": true,
"jest": true,
"beforeEach": true,
"sessionStorage": true
},
"parser": "babel-eslint",
"rules": {
"indent": ["error", 2, {"SwitchCase": 1}],
"camelcase": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-template-curly-in-string": "off",
"react/require-default-props": "off",
"no-multi-assign": "off",
"react/prefer-stateless-function": "off",
"react/no-find-dom-node": "off",
"react/no-array-index-key": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-for": [ "error", {"required": {"some": [ "nesting", "id" ]}}],
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-autofocus": "off",
"max-len": "off",
"no-unused-expressions": ["error", {"allowTernary": true, "allowShortCircuit": true}],
"react/sort-comp": "off",
"no-plusplus": "off",
"no-mixed-operators": ["error", {"allowSamePrecedence": true}]
}
}