-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
43 lines (42 loc) · 986 Bytes
/
.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
{
"extends": ["eslint:recommended", "next/core-web-vitals", "prettier"],
"rules": {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_",
"args": "none",
"caughtErrors": "none"
}
],
"react/no-unescaped-entities": "off",
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
"react/jsx-key": "warn",
"react/prop-types": "off",
"no-constant-condition": ["warn", { "checkLoops": false }],
"react/display-name": "off",
"import/no-unresolved": "off",
"no-console": "off"
},
"overrides": [
{
"files": ["**/components/ui/*.tsx"],
"rules": {
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"react/prop-types": "off"
}
},
{
"files": ["**/*.test.tsx", "**/*.spec.tsx"],
"env": {
"jest": true
},
"rules": {
"no-unused-expressions": "off" // Ignore chai-style unused expressions in tests
}
}
]
}