@xaliksss/eslint-config 4.0.2 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/import-x.js +3 -4
- package/dist/rules/typescript.js +10 -2
- package/package.json +1 -1
package/dist/rules/import-x.js
CHANGED
|
@@ -11,7 +11,7 @@ export const importRules = {
|
|
|
11
11
|
"import-x/max-dependencies": "off",
|
|
12
12
|
"import-x/named": "error",
|
|
13
13
|
"import-x/namespace": "error",
|
|
14
|
-
"import-x/newline-after-import": ["error", { count: 1
|
|
14
|
+
"import-x/newline-after-import": ["error", { count: 1 }],
|
|
15
15
|
"import-x/no-absolute-path": "error",
|
|
16
16
|
"import-x/no-amd": "error",
|
|
17
17
|
"import-x/no-anonymous-default-export": "error",
|
|
@@ -31,7 +31,7 @@ export const importRules = {
|
|
|
31
31
|
"import-x/no-internal-modules": "off",
|
|
32
32
|
"import-x/no-mutable-exports": "error",
|
|
33
33
|
"import-x/no-named-as-default-member": "error",
|
|
34
|
-
"import-x/no-named-as-default": "
|
|
34
|
+
"import-x/no-named-as-default": "off",
|
|
35
35
|
"import-x/no-named-default": "error",
|
|
36
36
|
"import-x/no-named-export": "off",
|
|
37
37
|
"import-x/no-namespace": "off",
|
|
@@ -43,7 +43,7 @@ export const importRules = {
|
|
|
43
43
|
"import-x/no-self-import": "error",
|
|
44
44
|
"import-x/no-unassigned-import": "off",
|
|
45
45
|
"import-x/no-unresolved": "off",
|
|
46
|
-
"import-x/no-unused-modules":
|
|
46
|
+
"import-x/no-unused-modules": "off", // с eslint v10 no-op, есть no-unused-vars
|
|
47
47
|
"import-x/no-useless-path-segments": "error",
|
|
48
48
|
"import-x/no-webpack-loader-syntax": "error",
|
|
49
49
|
"import-x/order": ["error",
|
|
@@ -52,7 +52,6 @@ export const importRules = {
|
|
|
52
52
|
"newlines-between": "always",
|
|
53
53
|
alphabetize: { order: "asc" },
|
|
54
54
|
named: true,
|
|
55
|
-
"newlines-between-types": "ignore",
|
|
56
55
|
},
|
|
57
56
|
],
|
|
58
57
|
"import-x/prefer-default-export": "off",
|
package/dist/rules/typescript.js
CHANGED
|
@@ -69,10 +69,17 @@ export const typescriptRules = {
|
|
|
69
69
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
70
70
|
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
71
71
|
"@typescript-eslint/no-unused-expressions": "off", // есть no-unused-expressions
|
|
72
|
+
// core еще не до конца нагнал
|
|
72
73
|
"no-unused-private-class-members": "off",
|
|
73
|
-
"@typescript-eslint/no-unused-private-class-members": "error",
|
|
74
|
+
"@typescript-eslint/no-unused-private-class-members": "error",
|
|
75
|
+
// core еще не до конца нагнал
|
|
74
76
|
"no-unused-vars": "off",
|
|
75
|
-
"@typescript-eslint/no-unused-vars": "
|
|
77
|
+
"@typescript-eslint/no-unused-vars": ["error", {
|
|
78
|
+
ignoreRestSiblings: true,
|
|
79
|
+
ignoreClassWithStaticInitBlock: true,
|
|
80
|
+
argsIgnorePattern: "^_",
|
|
81
|
+
enableAutofixRemoval: { imports: true },
|
|
82
|
+
}],
|
|
76
83
|
"@typescript-eslint/no-use-before-define": "off", // есть no-use-before-define
|
|
77
84
|
"@typescript-eslint/no-useless-constructor": "off", // есть no-useless-constructor
|
|
78
85
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
@@ -206,6 +213,7 @@ export const typescriptTypeAwareRules = {
|
|
|
206
213
|
allow: [
|
|
207
214
|
{ from: "lib", name: ["Error", "URL", "URLSearchParams"] },
|
|
208
215
|
{ from: "package", name: ["Big"], package: "big.js" },
|
|
216
|
+
{ from: "package", name: ["User", "GuildMember", "PartialGuildMember", "Channel", "GuildChannel", "Role"], package: "discord.js" },
|
|
209
217
|
],
|
|
210
218
|
}],
|
|
211
219
|
"@typescript-eslint/return-await": ["error", "in-try-catch"],
|