-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
85 lines (83 loc) · 1.97 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"env": {
"browser": true,
"jest": true
},
"parser": "babel-eslint",
"plugins": ["react", "jsx-a11y", "jest", "prettier"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"prettier"
],
"rules": {
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"comma-dangle": [1, "always-multiline"],
"computed-property-spacing": ["error", "never"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-alert": ["error"],
"max-len": [
"error",
{
"code": 80,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true
}
],
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-filename-extension": ["off"],
"react/no-render-return-value": 0,
"react/no-array-index-key": 1,
"import/prefer-default-export": 0,
"import/extensions": [
"error",
"always",
{
"js": "never",
"jsx": "never",
"mjs": "never"
}
],
"no-confusing-arrow": ["warn", { "allowParens": true }],
"arrow-parens": ["error", "as-needed"],
"react/prefer-stateless-function": [
"error",
{ "ignorePureComponents": true }
],
"jsx-a11y/no-static-element-interactions": [
"warn",
{
"handlers": ["onClick"]
}
],
"no-use-before-define": ["error", "nofunc"],
"jsx-a11y/click-events-have-key-events": ["warn"],
"jsx-a11y/anchor-is-valid": [
"warn",
{
"components": ["Link"],
"specialLink": ["route"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"jsx-a11y/label-has-for": [
2,
{
"components": ["Label"],
"required": {
"every": ["nesting", "id"]
},
"allowChildren": true
}
]
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}