-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.eslintrc.json
112 lines (109 loc) · 3.06 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"plugins": ["prettier"],
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:node/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"ignorePatterns": ["node_modules", ".next", "out"],
"rules": {
"no-undef": "off",
"comma-dangle": [
"error",
{
"functions": "never",
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline"
}
],
"semi": ["error", "never"],
"import/order": [
"error",
{
"groups": [
"type",
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"unknown"
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": false
}
}
],
"import/no-unresolved": "off",
"import/newline-after-import": ["error", { "count": 1 }],
"import/no-anonymous-default-export": "off",
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["all", "multiple", "single", "none"],
"allowSeparatedGroups": false
}
],
"react/jsx-key": "error",
"no-use-before-define": "error",
"no-async-promise-executor": "error",
"no-debugger": "error",
"no-empty": "warn",
"no-process-exit": "off",
"no-unused-expressions": "error",
"no-useless-escape": "off",
"no-useless-catch": "error",
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"node/no-unsupported-features/node-builtins": "off",
"node/no-missing-import": [
"warn",
{
"resolvePaths": ["src"],
"tryExtensions": [".ts", ".js", ".jsx", ".tsx", ".d.ts"]
}
],
"node/no-missing-require": [
"warn",
{
"tryExtensions": [".ts", ".js", ".jsx", ".tsx", ".d.ts"]
}
],
"node/no-unpublished-import": "warn",
"node/no-unsupported-features/es-syntax": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/consistent-type-imports": "error"
}
}