generated from philip82148/next-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
36 lines (36 loc) · 1.1 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
{
"extends": ["next/core-web-vitals", "standard-with-typescript", "prettier"],
"plugins": ["import", "unused-imports", "simple-import-sort", "sort-exports"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": {
"order": "asc"
}
}
],
"unused-imports/no-unused-imports": "error",
"import/newline-after-import": "error",
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }],
"sort-exports/sort-exports": ["error", { "sortDir": "asc", "sortExportKindFirst": "type" }],
"no-unused-vars": [
"error",
{
"args": "all",
"caughtErrors": "all",
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/strict-boolean-expressions": "off",
"@next/next/no-img-element": "off"
}
}