-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
45 lines (45 loc) · 1.17 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
{
"extends": ["react-app"],
"plugins": ["prettier"],
"env": {
"jest": true
},
"rules": {
"prettier/prettier": "error",
"no-console": "error",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"react-hooks/exhaustive-deps": "warn",
"import/no-default-export": "off",
"import/order": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/camelcase": "off",
"jsx-a11y/anchor-is-valid": "off"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"moduleDirectory": ["node_modules", "src/"],
"extensions": [".ts", ".tsx"]
}
}
},
"overrides": [
{
"files": ["**/!(setupTests|test/utils|*.spec.*|*.test.*).ts?x"],
"rules": {
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
]
}
}
]
}