eslint-config-complete 1.6.3 → 1.6.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.
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This ESLint config only contains rules from `eslint-plugin-unicorn`:
|
|
3
3
|
* https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
4
|
-
*
|
|
5
|
-
* Rules are separated into categories:
|
|
6
|
-
* 1) Normal rules
|
|
7
|
-
* 2) Deprecated rules
|
|
8
4
|
*/
|
|
9
5
|
export const baseUnicorn: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
10
6
|
//# sourceMappingURL=base-unicorn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-unicorn.d.ts","sourceRoot":"","sources":["../../src/base/base-unicorn.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"base-unicorn.d.ts","sourceRoot":"","sources":["../../src/base/base-unicorn.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,8FA4OG"}
|
|
@@ -3,10 +3,6 @@ import tseslint from "typescript-eslint";
|
|
|
3
3
|
/**
|
|
4
4
|
* This ESLint config only contains rules from `eslint-plugin-unicorn`:
|
|
5
5
|
* https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
6
|
-
*
|
|
7
|
-
* Rules are separated into categories:
|
|
8
|
-
* 1) Normal rules
|
|
9
|
-
* 2) Deprecated rules
|
|
10
6
|
*/
|
|
11
7
|
export const baseUnicorn = tseslint.config({
|
|
12
8
|
plugins: {
|
|
@@ -15,8 +11,8 @@ export const baseUnicorn = tseslint.config({
|
|
|
15
11
|
rules: {
|
|
16
12
|
"unicorn/better-regex": "warn",
|
|
17
13
|
"unicorn/catch-error-name": "warn",
|
|
18
|
-
"unicorn/consistent-assert": "warn",
|
|
19
|
-
"unicorn/consistent-date-clone": "warn",
|
|
14
|
+
/// "unicorn/consistent-assert": "warn", // In v57
|
|
15
|
+
/// "unicorn/consistent-date-clone": "warn", // In v57
|
|
20
16
|
/** Disabled because it has too many false positives. */
|
|
21
17
|
"unicorn/consistent-destructuring": "off",
|
|
22
18
|
"unicorn/consistent-empty-array-spread": "warn",
|
|
@@ -37,7 +33,7 @@ export const baseUnicorn = tseslint.config({
|
|
|
37
33
|
* single "eslint-disable" comment to make things more concise.
|
|
38
34
|
*/
|
|
39
35
|
"unicorn/no-abusive-eslint-disable": "off",
|
|
40
|
-
"unicorn/no-accessor-recursion": "warn",
|
|
36
|
+
/// "unicorn/no-accessor-recursion": "warn", // In v57
|
|
41
37
|
"unicorn/no-anonymous-default-export": "warn",
|
|
42
38
|
/** Disabled since it is not helpful when using TypeScript. */
|
|
43
39
|
"unicorn/no-array-callback-reference": "off",
|
|
@@ -53,7 +49,7 @@ export const baseUnicorn = tseslint.config({
|
|
|
53
49
|
"unicorn/no-for-loop": "warn",
|
|
54
50
|
"unicorn/no-hex-escape": "warn",
|
|
55
51
|
"unicorn/no-instanceof-array": "warn",
|
|
56
|
-
"unicorn/no-instanceof-builtins": "warn",
|
|
52
|
+
/// "unicorn/no-instanceof-builtins": "warn", // In v57
|
|
57
53
|
"unicorn/no-invalid-fetch-options": "warn",
|
|
58
54
|
"unicorn/no-invalid-remove-event-listener": "warn",
|
|
59
55
|
/** Disabled because it is common to prefix variables with "new". */
|
|
@@ -66,7 +62,7 @@ export const baseUnicorn = tseslint.config({
|
|
|
66
62
|
"unicorn/no-nested-ternary": "off", // eslint-config-prettier
|
|
67
63
|
"unicorn/no-new-array": "warn",
|
|
68
64
|
"unicorn/no-new-buffer": "warn",
|
|
69
|
-
"unicorn/no-named-default": "warn",
|
|
65
|
+
/// "unicorn/no-named-default": "warn", // In v57
|
|
70
66
|
"unicorn/no-null": "warn",
|
|
71
67
|
"unicorn/no-object-as-default-parameter": "warn",
|
|
72
68
|
/**
|
|
@@ -162,5 +158,42 @@ export const baseUnicorn = tseslint.config({
|
|
|
162
158
|
"unicorn/template-indent": "warn",
|
|
163
159
|
"unicorn/text-encoding-identifier-case": "warn",
|
|
164
160
|
"unicorn/throw-new-error": "warn",
|
|
161
|
+
// --------------------------------
|
|
162
|
+
// Deprecated rules; remove in v57.
|
|
163
|
+
// --------------------------------
|
|
164
|
+
/** Disabled because this rule is deprecated. */
|
|
165
|
+
"unicorn/import-index": "off",
|
|
166
|
+
/** Disabled because this rule is deprecated. */
|
|
167
|
+
"unicorn/no-array-instanceof": "off",
|
|
168
|
+
/** Disabled because this rule is deprecated. */
|
|
169
|
+
"unicorn/no-fn-reference-in-iterator": "off",
|
|
170
|
+
/** Disabled because this rule is deprecated. */
|
|
171
|
+
"unicorn/no-reduce": "off",
|
|
172
|
+
/** Disabled because this rule is deprecated. */
|
|
173
|
+
"unicorn/no-unsafe-regex": "off",
|
|
174
|
+
/** Disabled because this rule is deprecated. */
|
|
175
|
+
"unicorn/prefer-dataset": "off",
|
|
176
|
+
/** Disabled because this rule is deprecated. */
|
|
177
|
+
"unicorn/prefer-event-key": "off",
|
|
178
|
+
/** Disabled because this rule is deprecated. */
|
|
179
|
+
"unicorn/prefer-exponentiation-operator": "off",
|
|
180
|
+
/** Disabled because this rule is deprecated. */
|
|
181
|
+
"unicorn/prefer-flat-map": "off",
|
|
182
|
+
/** Disabled because this rule is deprecated. */
|
|
183
|
+
"unicorn/prefer-node-append": "off",
|
|
184
|
+
/** Disabled because this rule is deprecated. */
|
|
185
|
+
"unicorn/prefer-node-remove": "off",
|
|
186
|
+
/** Disabled because this rule is deprecated. */
|
|
187
|
+
"unicorn/prefer-object-has-own": "off",
|
|
188
|
+
/** Disabled because this rule is deprecated. */
|
|
189
|
+
"unicorn/prefer-replace-all": "off",
|
|
190
|
+
/** Disabled because this rule is deprecated. */
|
|
191
|
+
"unicorn/prefer-starts-ends-with": "off",
|
|
192
|
+
/** Disabled because this rule is deprecated. */
|
|
193
|
+
"unicorn/prefer-text-content": "off",
|
|
194
|
+
/** Disabled because this rule is deprecated. */
|
|
195
|
+
"unicorn/prefer-trim-start-end": "off",
|
|
196
|
+
/** Disabled because this rule is deprecated. */
|
|
197
|
+
"unicorn/regex-shorthand": "off",
|
|
165
198
|
},
|
|
166
199
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-complete",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "A sharable ESLint config for TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"eslint-plugin-import-x": "4.6.1",
|
|
43
43
|
"eslint-plugin-jsdoc": "50.6.3",
|
|
44
44
|
"eslint-plugin-n": "17.15.1",
|
|
45
|
-
"eslint-plugin-unicorn": "
|
|
45
|
+
"eslint-plugin-unicorn": "56.0.1",
|
|
46
46
|
"typescript-eslint": "8.25.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@eslint/js": "9.21.0",
|
|
50
50
|
"@types/confusing-browser-globals": "1.0.3",
|
|
51
51
|
"@types/eslint-config-prettier": "6.11.3",
|
|
52
|
-
"@types/node": "22.13.
|
|
52
|
+
"@types/node": "22.13.8",
|
|
53
53
|
"complete-common": "1.3.0",
|
|
54
54
|
"complete-node": "3.1.8",
|
|
55
55
|
"eslint-config-prettier": "10.0.2",
|