-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
94 lines (94 loc) · 2.35 KB
/
.eslintrc.js
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier", "import", "unused-imports"],
env: {
node: true,
},
extends: [
"next",
"prettier",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
],
rules: {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off",
"import/order": [
1,
{
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: false,
},
},
],
"import/newline-after-import": [1],
"import/no-useless-path-segments": [
"error",
{
noUselessIndex: true,
},
],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "warn",
"unused-imports/no-unused-imports": "error",
"import/no-unresolved": ["error", { ignore: ["^@", "^glob:"] }],
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-console": [
1,
{
allow: ["warn", "error"],
},
],
"no-empty-pattern": "off",
"padding-line-between-statements": [
"error",
{
blankLine: "always",
prev: "*",
next: ["export"],
},
{
blankLine: "any",
prev: ["export"],
next: ["export"],
},
],
},
overrides: [
{
files: ["**/*.ts"],
extends: ["plugin:@typescript-eslint/recommended"],
},
],
};