eslint-config-isaacscript 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/base-eslint.js CHANGED
@@ -578,7 +578,13 @@ const SUGGESTIONS = {
578
578
  ],
579
579
 
580
580
  "prefer-exponentiation-operator": "error",
581
- "prefer-named-capture-group": "error",
581
+
582
+ /**
583
+ * Disabled because it is common to have a regex with only a single match, in which case a named
584
+ * capture group can be needlessly verbose (and cause extra type narrowing).
585
+ */
586
+ "prefer-named-capture-group": "off",
587
+
582
588
  "prefer-numeric-literals": "error",
583
589
  "prefer-object-has-own": "error",
584
590
  "prefer-object-spread": "error",
package/base-unicorn.js CHANGED
@@ -30,7 +30,9 @@ const NORMAL_RULES = {
30
30
  /** Superseded by the `eslint-comments/no-unlimited-disable` rule. */
31
31
  "unicorn/no-abusive-eslint-disable": "off",
32
32
 
33
- "unicorn/no-array-callback-reference": "error",
33
+ /** Disabled since it is not helpful when using TypeScript. */
34
+ "unicorn/no-array-callback-reference": "off",
35
+
34
36
  "unicorn/no-array-for-each": "error",
35
37
  "unicorn/no-array-method-this-argument": "error",
36
38
  "unicorn/no-array-push-push": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",