forked from beefyfinance/beefy-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
54 lines (54 loc) · 1.29 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
"plugin:react-hooks/recommended"
],
"settings": {
"paths": ["src"],
"files": ["src/**/*.ts", "src/**/*.tsx"],
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"no-restricted-syntax": [
"error",
{
"selector": "ExportDefaultDeclaration",
"message": "Prefer named exports"
}
],
"no-mixed-operators": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"react/jsx-no-target-blank": [
"error",
{
"allowReferrer": true
}
],
"react/display-name": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/no-children-prop": "off",
"react-hooks/exhaustive-deps": "warn"
}
}