-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
40 lines (40 loc) · 1018 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
{
"ignorePatterns": ["scripts/**"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals",
"prettier"
],
"plugins": ["testing-library"],
"overrides": [
{
"files": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
],
"extends": ["plugin:testing-library/react"],
"rules": {
"@typescript-eslint/no-empty-function": "off"
}
}
],
"rules": {
"no-console": ["error", {"allow": ["info", "warn", "error"]}],
"no-constant-condition": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@mui/icons-material",
"message": "Forbidden top-level import. Use path imports for MUI icons: import MyIcon from '@mui/icons-material/MyIcon'"
}
]
}
],
"react-hooks/exhaustive-deps": "error",
"require-await": "error",
"@typescript-eslint/no-var-requires": "off"
}
}