eslint-config-complete 4.11.0 → 4.12.0
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/src/base/base-eslint.d.ts.map +1 -1
- package/dist/src/base/base-eslint.js +13 -11
- package/dist/src/base/base-regexp.d.ts.map +1 -1
- package/dist/src/base/base-regexp.js +4 -0
- package/dist/src/base/base-unicorn.d.ts.map +1 -1
- package/dist/src/base/base-unicorn.js +1 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-eslint.d.ts","sourceRoot":"","sources":["../../../src/base/base-eslint.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-eslint.d.ts","sourceRoot":"","sources":["../../../src/base/base-eslint.js"],"names":[],"mappings":"AAgqBA;;;;;;;;GAQG;AACH,0DAMG"}
|
|
@@ -28,7 +28,8 @@ const POSSIBLE_PROBLEMS = {
|
|
|
28
28
|
"no-constant-binary-expression": "error",
|
|
29
29
|
"no-constant-condition": "error",
|
|
30
30
|
"no-constructor-return": "error",
|
|
31
|
-
|
|
31
|
+
/** Superseded by the `regexp/no-control-characters` rule. */
|
|
32
|
+
"no-control-regex": "off",
|
|
32
33
|
"no-debugger": "error",
|
|
33
34
|
/** Disabled since this is already enforced by TypeScript (`ts(2300)`). */
|
|
34
35
|
"no-dupe-args": "off", // @typescript-eslint/eslint-recommended
|
|
@@ -40,7 +41,8 @@ const POSSIBLE_PROBLEMS = {
|
|
|
40
41
|
"no-duplicate-case": "error",
|
|
41
42
|
/** Superseded by the `import-x/no-duplicates` rule. */
|
|
42
43
|
"no-duplicate-imports": "off",
|
|
43
|
-
|
|
44
|
+
/** Superseded by the `regexp/no-empty-character-class` rule. */
|
|
45
|
+
"no-empty-character-class": "off",
|
|
44
46
|
"no-empty-pattern": "error",
|
|
45
47
|
"no-ex-assign": "error",
|
|
46
48
|
"no-fallthrough": "error",
|
|
@@ -49,11 +51,13 @@ const POSSIBLE_PROBLEMS = {
|
|
|
49
51
|
/** Disabled since this is already enforced by TypeScript (`ts(2632)` & `ts(2540)`). */
|
|
50
52
|
"no-import-assign": "off", // @typescript-eslint/eslint-recommended
|
|
51
53
|
"no-inner-declarations": "error",
|
|
52
|
-
|
|
54
|
+
/** Superseded by the `regexp/no-invalid-regexp` rule. */
|
|
55
|
+
"no-invalid-regexp": "off",
|
|
53
56
|
"no-irregular-whitespace": "error",
|
|
54
57
|
/** Superseded by the `@typescript-eslint/no-loss-of-precision` rule. */
|
|
55
58
|
"no-loss-of-precision": "off",
|
|
56
|
-
|
|
59
|
+
/** Superseded by the `regexp/no-misleading-unicode-character` rule. */
|
|
60
|
+
"no-misleading-character-class": "off",
|
|
57
61
|
/** Disabled since this is already enforced by TypeScript (`ts(7009)`). */
|
|
58
62
|
"no-new-native-nonconstructor": "off", // @typescript-eslint/eslint-recommended
|
|
59
63
|
/** Disabled since this is already enforced by TypeScript (`ts(2349)`). */
|
|
@@ -88,7 +92,8 @@ const POSSIBLE_PROBLEMS = {
|
|
|
88
92
|
"no-unused-vars": "off",
|
|
89
93
|
/** Superseded by the `@typescript-eslint/no-use-before-define` rule. */
|
|
90
94
|
"no-use-before-define": "off",
|
|
91
|
-
|
|
95
|
+
/** Superseded by the `regexp/no-useless-backreference` rule. */
|
|
96
|
+
"no-useless-backreference": "off",
|
|
92
97
|
/**
|
|
93
98
|
* Disabled since [Airbnb reports that the rule is "very
|
|
94
99
|
* buggy"](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/errors.js).
|
|
@@ -295,7 +300,8 @@ const SUGGESTIONS = {
|
|
|
295
300
|
"no-proto": "error",
|
|
296
301
|
/** Disabled since this is already enforced by TypeScript (`ts(2451)`). */
|
|
297
302
|
"no-redeclare": "off", // @typescript-eslint/eslint-recommended
|
|
298
|
-
|
|
303
|
+
/** Superseded by the `regexp/prefer-quantifier` rule. */
|
|
304
|
+
"no-regex-spaces": "off",
|
|
299
305
|
/**
|
|
300
306
|
* The options are [copied from
|
|
301
307
|
* Airbnb](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js).
|
|
@@ -492,11 +498,7 @@ const SUGGESTIONS = {
|
|
|
492
498
|
radix: "error",
|
|
493
499
|
/** Superseded by the `@typescript-eslint/require-await` rule. */
|
|
494
500
|
"require-await": "off",
|
|
495
|
-
/**
|
|
496
|
-
* Disabled because requiring the `u` or the `v` flag for ASCII text is verbose and cumbersome.
|
|
497
|
-
* (Even though these flags would also enable regex strict mode, the marginal benefit is not worth
|
|
498
|
-
* the verbosity.)
|
|
499
|
-
*/
|
|
501
|
+
/** Superseded by the `regexp/require-unicode-regexp` rule. */
|
|
500
502
|
"require-unicode-regexp": "off",
|
|
501
503
|
"require-yield": "error",
|
|
502
504
|
/** Disabled since this is automatically handled by `prettier-plugin-organize-imports`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-regexp.d.ts","sourceRoot":"","sources":["../../../src/base/base-regexp.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"base-regexp.d.ts","sourceRoot":"","sources":["../../../src/base/base-regexp.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,0DAkGG"}
|
|
@@ -68,6 +68,10 @@ export const baseRegexp = defineConfig({
|
|
|
68
68
|
"regexp/prefer-escape-replacement-dollar-char": "error",
|
|
69
69
|
"regexp/prefer-lookaround": "error",
|
|
70
70
|
"regexp/prefer-named-backreference": "error",
|
|
71
|
+
/**
|
|
72
|
+
* Disabled because it is common to have a regex with only a single match, in which case a named
|
|
73
|
+
* capture group can be needlessly verbose (and cause extra type narrowing).
|
|
74
|
+
*/
|
|
71
75
|
"regexp/prefer-named-capture-group": "error",
|
|
72
76
|
"regexp/prefer-named-replacement": "error",
|
|
73
77
|
"regexp/prefer-plus-quantifier": "error",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-unicorn.d.ts","sourceRoot":"","sources":["../../../src/base/base-unicorn.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"base-unicorn.d.ts","sourceRoot":"","sources":["../../../src/base/base-unicorn.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,2DAyVG"}
|
|
@@ -19,8 +19,7 @@ export const baseUnicorn = defineConfig({
|
|
|
19
19
|
"unicorn/consistent-class-member-order": "error",
|
|
20
20
|
"unicorn/consistent-compound-words": "error",
|
|
21
21
|
"unicorn/consistent-date-clone": "error",
|
|
22
|
-
|
|
23
|
-
"unicorn/consistent-destructuring": "off",
|
|
22
|
+
"unicorn/consistent-destructuring": "error",
|
|
24
23
|
"unicorn/consistent-empty-array-spread": "error",
|
|
25
24
|
"unicorn/consistent-existence-index-check": "error",
|
|
26
25
|
"unicorn/consistent-export-decorator-position": "error",
|