-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
70 lines (70 loc) · 2.01 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
66
67
68
69
70
{
"parser": "babel-eslint",
"extends": ["airbnb", "react-app"],
"root": true,
"rules": {
"camelcase": ["off"],
"eol-last": ["error", "always"],
"import/no-unresolved": "error",
"import/prefer-default-export": "off",
"import/no-named-as-default": "off",
"indent": [
"error",
2,
{
"FunctionDeclaration": { "body": 1, "parameters": 1 },
"FunctionExpression": { "body": 1, "parameters": 1 },
"SwitchCase": 1
}
],
"max-len": ["error", 120],
"no-console": "warn",
"no-magic-numbers": ["error", { "ignore": [0, 1] }],
"no-mixed-operators": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 1
}
],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-shadow": "warn",
"operator-linebreak": ["error", "before"],
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"react-app/jsx-a11y/href-no-hash": "off",
"react/prefer-es6-class": ["error", "always"],
"react/jsx-closing-bracket-location": [
"warn",
{
"nonEmpty": "line-aligned",
"selfClosing": "line-aligned"
}
],
"react/jsx-closing-tag-location": "warn",
"react/jsx-first-prop-new-line": [
"error",
"multiline-multiprop"
],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/jsx-pascal-case": "error",
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/no-unused-prop-types": "error",
"react/no-array-index-key": "error",
"react/no-string-refs": "error",
"react/jsx-wrap-multilines": "error",
"react/self-closing-comp": "warn",
"react/jsx-no-bind": "error",
"jsx-a11y/alt-text": "error",
"jsx-a11y/aria-role": ["error", {
"ignoreNonDOM": true
}],
"jsx-a11y/label-has-associated-control": "off"
},
"settings": {
"import/resolver": { "node": { "paths": ["src"] } }
}
}