-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (45 loc) · 1.28 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"sourceType": "module"
},
"plugins": ["prettier", "@typescript-eslint"],
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"rules": {
"prettier/prettier": 1,
"@typescript-eslint/array-type": "off",
"@next/next/no-img-element": "off",
"react/no-unescaped-entities": "warn",
"@typescript-eslint/consistent-type-definitions": "off",
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"import/no-duplicates": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true
}
],
"react/destructuring-assignment": [
"error",
"always",
{ "ignoreClassFields": true }
],
"import/no-extraneous-dependencies": ["error"],
"@typescript-eslint/consistent-type-imports": [
"warn",
{
"prefer": "type-imports",
"fixStyle": "inline-type-imports"
}
]
}
}