-
Notifications
You must be signed in to change notification settings - Fork 90
/
.eslintrc.json
45 lines (45 loc) · 1.13 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "react-hooks", "jsx-a11y", "jest"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended",
"plugin:jsx-a11y/strict"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"eqeqeq": ["error", "smart"],
"complexity": ["error", 40],
"no-magic-numbers": ["error", { "ignore": [-1, 0, 1, 2, 3, 4, 10, 100, 200, 1000] }],
"sort-imports": [
"error",
{
"allowSeparatedGroups": true
}
],
"spaced-comment": "error",
"react/jsx-sort-props": "error",
"react/self-closing-comp": "error",
"jsx-a11y/no-autofocus": "off"
},
"overrides": [
{
"files": ["*.test.ts", "*.test.tsx"],
"rules": {
"no-magic-numbers": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off"
}
}
]
}