/
.eslintrc
65 lines (65 loc) · 1.34 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
64
65
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jasmine": true,
"jest": true
},
"rules": {
"semi": "off",
"curly": "off",
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"no-tabs": "off",
"comma-dangle": "off",
"linebreak-style": "off",
"no-nested-ternary": "off",
"prefer-template": "off",
"react/jsx-indent": [
"error",
"tab"
],
"no-mixed-operators": "off",
"no-restricted-globals": "off",
"react/jsx-indent-props": [
"error",
"tab"
],
"react/jsx-filename-extension": "off",
"react/jsx-first-prop-new-line": "off",
"react/no-unused-prop-types": "warn",
"object-curly-newline": [
"warn",
{
"ObjectExpression": {
"multiline": true,
"minProperties": 3
},
"ObjectPattern": {
"multiline": true,
"minProperties": 5
}
}
],
"no-unneeded-ternary": "off",
"no-unused-vars": "warn",
"camelcase": "warn",
"consistent-return": "warn",
"react/require-default-props": 1,
"padded-blocks": "off",
"react/forbid-prop-types": "off",
"no-useless-return": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn"
}
}