eslint-config-isaacscript 4.6.0 → 4.7.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/base-eslint.js CHANGED
@@ -561,28 +561,8 @@ const SUGGESTIONS = {
561
561
  /** Superseded by the `no-autofix/prefer-const` rule (since the autofix is usually unwanted). */
562
562
  "prefer-const": "off",
563
563
 
564
- /**
565
- * Object destructuring is enforced but array destructuring is not. This matches usage in the
566
- * general TypeScript ecosystem.
567
- */
568
- "prefer-destructuring": [
569
- "error",
570
- {
571
- VariableDeclarator: {
572
- array: false,
573
- object: true,
574
- },
575
- AssignmentExpression: {
576
- array: false,
577
- object: true,
578
- },
579
- },
580
- {
581
- // We disable this for renamed properties, this this is a valid use-case.
582
- // e.g. `const collectibleUsedToShowFlight = CollectibleType.FATE;`
583
- enforceForRenamedProperties: false,
584
- },
585
- ],
564
+ /** Superseded by the `@typescript-eslint/prefer-destructuring` rule. */
565
+ "prefer-destructuring": "off",
586
566
 
587
567
  "prefer-exponentiation-operator": "error",
588
568
 
@@ -138,6 +138,30 @@ const SUPPORTED_RULES = {
138
138
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
139
139
  "@typescript-eslint/parameter-properties": "error",
140
140
  "@typescript-eslint/prefer-as-const": "error",
141
+
142
+ /**
143
+ * Object destructuring is enforced but array destructuring is not. This matches usage in the
144
+ * general TypeScript ecosystem.
145
+ */
146
+ "@typescript-eslint/prefer-destructuring": [
147
+ "error",
148
+ {
149
+ VariableDeclarator: {
150
+ array: false,
151
+ object: true,
152
+ },
153
+ AssignmentExpression: {
154
+ array: false,
155
+ object: true,
156
+ },
157
+ },
158
+ {
159
+ // We disable this for renamed properties, this this is a valid use-case.
160
+ // e.g. `const collectibleUsedToShowFlight = CollectibleType.FATE;`
161
+ enforceForRenamedProperties: false,
162
+ },
163
+ ],
164
+
141
165
  "@typescript-eslint/prefer-enum-initializers": "error",
142
166
  "@typescript-eslint/prefer-for-of": "error",
143
167
  "@typescript-eslint/prefer-function-type": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",