This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
61 lines (61 loc) · 1.67 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
50
51
52
53
54
55
56
57
58
59
60
61
{
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint-config-next",
"plugin:perfectionist/recommended-natural"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "simple-import-sort", "import"],
"rules": {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "separate-type-imports"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/padding-line-between-statements": [
"warn",
{
"blankLine": "always",
"next": "*",
"prev": ["const", "let", "var"]
},
{
"blankLine": "always",
"next": ["return", "function", "class"],
"prev": "*"
},
{
"blankLine": "always",
"next": "*",
"prev": ["function", "class"]
},
{
"blankLine": "always",
"next": "export",
"prev": "*"
},
{
"blankLine": "always",
"next": "*",
"prev": "multiline-const"
}
],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-unused-vars": "off",
"padding-line-between-statements": "off",
"perfectionist/sort-imports": "off",
"prefer-const": "error",
"require-await": "error",
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": "warn",
"typescript-eslint/explicit-function-return-type": "off",
"perfectionist/sort-named-imports": "off",
"@typescript-eslint/ban-ts-comment": "error"
}
}