-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.json
49 lines (49 loc) · 1.22 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
{
"extends": [
"plugin:@typescript-eslint/recommended",
"next",
"next/core-web-vitals"
],
"rules": {
"no-console": "error",
"no-debugger": "error",
"react/button-has-type": "error",
"react/jsx-no-useless-fragment": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": false,
"ts-nocheck": false,
"ts-check": false,
"minimumDescriptionLength": 10
}
],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": [
"error",
{
"ignoreRestArgs": true
}
],
"@typescript-eslint/consistent-type-imports": "off",
"@next/next/no-img-element": "off"
},
"plugins": [
"@typescript-eslint",
"unused-imports"
]
}