-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
55 lines (55 loc) · 1.44 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"globals": {
"window": true,
"document": true
},
"rules": {
"func-names": ["error", "never"],
"class-methods-use-this": "off",
"curly": ["error", "all"],
"no-shadow": [0],
"no-implicit-coercion": ["error", {
"boolean": true,
"number": true,
"string": true,
"allow": []
}],
"no-unused-vars": ["error", { "args": "none" }],
"comma-dangle": ["error", "never"],
"no-debugger": "warn",
"prefer-destructuring": ["warn", {
"array": true,
"object": true
}],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"eol-last": "off",
"max-len": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"one-var": "off",
"one-var-declaration-per-line": "off",
"operator-assignment": "off",
"semi-spacing": "off",
"jsx-a11y/no-static-element-interactions": "off",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "never"
}],
"indent": ["error", 2],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": [0],
"jsx-a11y/label-has-associated-control": [ "error", {
"required": {
"some": [ "nesting", "id" ]
}
}],
"jsx-a11y/label-has-for": [ "error", {
"required": {
"some": [ "nesting", "id" ]
}
}]
}
}