-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
89 lines (89 loc) · 1.9 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
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
86
87
88
89
{
"extends": ["react-app", "prettier"],
"plugins": ["react", "prettier"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"jest": true
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5",
"endOfLine": "auto",
"printWidth": 120,
"tabWidth": 2,
"semi": false,
"arrowParens": "avoid"
}
],
"no-console": [
"off",
{
"allow": [
"warn",
"error"
]
}
],
"no-unused-vars": [
"off",
{
"args": "none"
}
],
"max-depth": [
"warn",
4
],
"id-length": [
"warn",
{
"exceptions": [
"i",
"j",
"e",
"t"
],
"min": 2
}
],
"no-lonely-if": [
"error"
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"react/state-in-constructor": "off",
"jsx-a11y/href-no-hash": "off",
"react/prop-types": "off",
"jsx-a11y/aria-role": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/jsx-filename-extension": "off",
"react/no-danger": "off",
"react/jsx-props-no-spreading": "off",
"react/prefer-stateless-function": "off",
"react/no-did-update-set-state": "off",
"import/prefer-default-export": "off",
"spaced-comment": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"no-param-reassign": "off"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}