@kitschpatrol/eslint-config 5.7.4 → 5.8.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/bin/cli.js CHANGED
@@ -5138,7 +5138,7 @@ var Yargs = YargsFactory(esm_default);
5138
5138
  var yargs_default = Yargs;
5139
5139
 
5140
5140
  // ../../package.json
5141
- var version = "5.7.4";
5141
+ var version = "5.8.0";
5142
5142
 
5143
5143
  // ../../src/execa-utilities.ts
5144
5144
  function isErrorExecaError(error) {
package/dist/index.d.ts CHANGED
@@ -273,6 +273,11 @@ interface RuleOptions {
273
273
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
274
274
  */
275
275
  'astro/no-set-text-directive'?: Linter.RuleEntry<[]>
276
+ /**
277
+ * disallow inline `<script>` without `src` to encourage CSP-safe patterns
278
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
279
+ */
280
+ 'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>
276
281
  /**
277
282
  * disallow selectors defined in `style` tag that don't use in HTML
278
283
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
@@ -1481,6 +1486,11 @@ interface RuleOptions {
1481
1486
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
1482
1487
  */
1483
1488
  'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>
1489
+ /**
1490
+ * Enforce consistent format for the exports field (implicit or explicit subpaths).
1491
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/exports-subpaths-style.md
1492
+ */
1493
+ 'json-package/exports-subpaths-style'?: Linter.RuleEntry<JsonPackageExportsSubpathsStyle>
1484
1494
  /**
1485
1495
  * Reports on unnecessary empty arrays and objects.
1486
1496
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/no-empty-fields.md
@@ -1546,6 +1556,11 @@ interface RuleOptions {
1546
1556
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-keywords.md
1547
1557
  */
1548
1558
  'json-package/require-keywords'?: Linter.RuleEntry<JsonPackageRequireKeywords>
1559
+ /**
1560
+ * Requires the `license` property to be present.
1561
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-license.md
1562
+ */
1563
+ 'json-package/require-license'?: Linter.RuleEntry<JsonPackageRequireLicense>
1549
1564
  /**
1550
1565
  * Requires the `name` property to be present.
1551
1566
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-name.md
@@ -1581,6 +1596,16 @@ interface RuleOptions {
1581
1596
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/restrict-dependency-ranges.md
1582
1597
  */
1583
1598
  'json-package/restrict-dependency-ranges'?: Linter.RuleEntry<JsonPackageRestrictDependencyRanges>
1599
+ /**
1600
+ * Disallows unnecessary properties in private packages.
1601
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/restrict-private-properties.md
1602
+ */
1603
+ 'json-package/restrict-private-properties'?: Linter.RuleEntry<JsonPackageRestrictPrivateProperties>
1604
+ /**
1605
+ * Enforce that names for `scripts` are in kebab case (optionally separated by colons).
1606
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/scripts-name-casing.md
1607
+ */
1608
+ 'json-package/scripts-name-casing'?: Linter.RuleEntry<[]>
1584
1609
  /**
1585
1610
  * Selected collections must be in a consistent order (lexicographical for most; lifecycle-aware for scripts).
1586
1611
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/sort-collections.md
@@ -6092,710 +6117,725 @@ interface RuleOptions {
6092
6117
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
6093
6118
  /**
6094
6119
  * Improve regexes by making them shorter, consistent, and safer.
6095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
6120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
6096
6121
  */
6097
6122
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6098
6123
  /**
6099
6124
  * Enforce a specific parameter name in catch clauses.
6100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
6125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
6101
6126
  */
6102
6127
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6103
6128
  /**
6104
6129
  * Enforce consistent assertion style with `node:assert`.
6105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
6130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
6106
6131
  */
6107
6132
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6108
6133
  /**
6109
6134
  * Prefer passing `Date` directly to the constructor when cloning.
6110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
6135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
6111
6136
  */
6112
6137
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6113
6138
  /**
6114
6139
  * Use destructured variables over properties.
6115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
6140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
6116
6141
  */
6117
6142
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6118
6143
  /**
6119
6144
  * Prefer consistent types when spreading a ternary in an array literal.
6120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
6145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
6121
6146
  */
6122
6147
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6123
6148
  /**
6124
6149
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
6150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
6126
6151
  */
6127
6152
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6128
6153
  /**
6129
6154
  * Move function definitions to the highest possible scope.
6130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
6155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
6131
6156
  */
6132
6157
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6133
6158
  /**
6134
6159
  * Enforce correct `Error` subclassing.
6135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
6160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
6136
6161
  */
6137
6162
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6138
6163
  /**
6139
6164
  * Enforce no spaces between braces.
6140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
6165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
6141
6166
  */
6142
6167
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6143
6168
  /**
6144
6169
  * Enforce passing a `message` value when creating a built-in error.
6145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
6170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
6146
6171
  */
6147
6172
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6148
6173
  /**
6149
6174
  * Require escape sequences to use uppercase or lowercase values.
6150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
6175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
6151
6176
  */
6152
6177
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
6153
6178
  /**
6154
6179
  * Add expiration conditions to TODO comments.
6155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
6180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
6156
6181
  */
6157
6182
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6158
6183
  /**
6159
6184
  * Enforce explicitly comparing the `length` or `size` property of a value.
6160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
6185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
6161
6186
  */
6162
6187
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6163
6188
  /**
6164
6189
  * Enforce a case style for filenames.
6165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
6190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
6166
6191
  */
6167
6192
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6168
6193
  /**
6169
6194
  * Enforce specific import styles per module.
6170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
6195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
6171
6196
  */
6172
6197
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6173
6198
  /**
6174
6199
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
6200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
6176
6201
  */
6177
6202
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6178
6203
  /**
6179
6204
  * Enforce specifying rules to disable in `eslint-disable` comments.
6180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
6205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
6181
6206
  */
6182
6207
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6183
6208
  /**
6184
6209
  * Disallow recursive access to `this` within getters and setters.
6185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
6210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
6186
6211
  */
6187
6212
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6188
6213
  /**
6189
6214
  * Disallow anonymous functions and classes as the default export.
6190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
6215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
6191
6216
  */
6192
6217
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6193
6218
  /**
6194
6219
  * Prevent passing a function reference directly to iterator methods.
6195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
6220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
6196
6221
  */
6197
6222
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6198
6223
  /**
6199
6224
  * Prefer `for…of` over the `forEach` method.
6200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
6225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
6201
6226
  */
6202
6227
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6203
6228
  /**
6204
6229
  * Disallow using the `this` argument in array methods.
6205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
6230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
6206
6231
  */
6207
6232
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6208
6233
  /**
6209
6234
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
6235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
6211
6236
  * @deprecated
6212
6237
  */
6213
6238
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
6214
6239
  /**
6215
6240
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
6217
6242
  */
6218
6243
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6219
6244
  /**
6220
6245
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
6246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
6222
6247
  */
6223
6248
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
6224
6249
  /**
6225
6250
  * Prefer `Array#toSorted()` over `Array#sort()`.
6226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
6227
6252
  */
6228
6253
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
6229
6254
  /**
6230
6255
  * Disallow member access from await expression.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
6232
6257
  */
6233
6258
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6234
6259
  /**
6235
6260
  * Disallow using `await` in `Promise` method parameters.
6236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
6237
6262
  */
6238
6263
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6239
6264
  /**
6240
6265
  * Do not use leading/trailing space between `console.log` parameters.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
6242
6267
  */
6243
6268
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6244
6269
  /**
6245
6270
  * Do not use `document.cookie` directly.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
6247
6272
  */
6248
6273
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6249
6274
  /**
6250
6275
  * Disallow empty files.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
6276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
6252
6277
  */
6253
6278
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6254
6279
  /**
6255
6280
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
6257
6282
  */
6258
6283
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6259
6284
  /**
6260
6285
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
6262
6287
  */
6263
6288
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6289
+ /**
6290
+ * Disallow immediate mutation after variable assignment.
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
6292
+ */
6293
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
6264
6294
  /**
6265
6295
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
6296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
6267
6297
  * @deprecated
6268
6298
  */
6269
6299
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6270
6300
  /**
6271
6301
  * Disallow `instanceof` with built-in objects
6272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
6302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
6273
6303
  */
6274
6304
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6275
6305
  /**
6276
6306
  * Disallow invalid options in `fetch()` and `new Request()`.
6277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
6307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
6278
6308
  */
6279
6309
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6280
6310
  /**
6281
6311
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
6312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
6283
6313
  */
6284
6314
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6285
6315
  /**
6286
6316
  * Disallow identifiers starting with `new` or `class`.
6287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
6317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
6288
6318
  */
6289
6319
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6290
6320
  /**
6291
6321
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
6322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6293
6323
  * @deprecated
6294
6324
  */
6295
6325
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6296
6326
  /**
6297
6327
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
6328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
6299
6329
  */
6300
6330
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6301
6331
  /**
6302
6332
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
6333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
6304
6334
  */
6305
6335
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6306
6336
  /**
6307
6337
  * Disallow named usage of default import and export.
6308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
6338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
6309
6339
  */
6310
6340
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6311
6341
  /**
6312
6342
  * Disallow negated conditions.
6313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
6343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
6314
6344
  */
6315
6345
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6316
6346
  /**
6317
6347
  * Disallow negated expression in equality check.
6318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
6348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
6319
6349
  */
6320
6350
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6321
6351
  /**
6322
6352
  * Disallow nested ternary expressions.
6323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
6353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
6324
6354
  */
6325
6355
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6326
6356
  /**
6327
6357
  * Disallow `new Array()`.
6328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
6358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
6329
6359
  */
6330
6360
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6331
6361
  /**
6332
6362
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
6363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
6334
6364
  */
6335
6365
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6336
6366
  /**
6337
6367
  * Disallow the use of the `null` literal.
6338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
6368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
6339
6369
  */
6340
6370
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6341
6371
  /**
6342
6372
  * Disallow the use of objects as default parameters.
6343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
6373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
6344
6374
  */
6345
6375
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6346
6376
  /**
6347
6377
  * Disallow `process.exit()`.
6348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
6378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
6349
6379
  */
6350
6380
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6351
6381
  /**
6352
6382
  * Disallow passing single-element arrays to `Promise` methods.
6353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
6383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
6354
6384
  */
6355
6385
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6356
6386
  /**
6357
6387
  * Disallow classes that only have static members.
6358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
6388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
6359
6389
  */
6360
6390
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6361
6391
  /**
6362
6392
  * Disallow `then` property.
6363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
6393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
6364
6394
  */
6365
6395
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6366
6396
  /**
6367
6397
  * Disallow assigning `this` to a variable.
6368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
6398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
6369
6399
  */
6370
6400
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6371
6401
  /**
6372
6402
  * Disallow comparing `undefined` using `typeof`.
6373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
6403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
6374
6404
  */
6375
6405
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6376
6406
  /**
6377
6407
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
6408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6379
6409
  */
6380
6410
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6381
6411
  /**
6382
6412
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
6413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
6384
6414
  */
6385
6415
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
6386
6416
  /**
6387
6417
  * Disallow awaiting non-promise values.
6388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
6418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
6389
6419
  */
6390
6420
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6391
6421
  /**
6392
6422
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
6423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
6394
6424
  */
6395
6425
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6396
6426
  /**
6397
6427
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
6428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
6399
6429
  */
6400
6430
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
6401
6431
  /**
6402
6432
  * Disallow unreadable array destructuring.
6403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
6433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
6404
6434
  */
6405
6435
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6406
6436
  /**
6407
6437
  * Disallow unreadable IIFEs.
6408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
6438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
6409
6439
  */
6410
6440
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6411
6441
  /**
6412
6442
  * Disallow unused object properties.
6413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
6443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
6414
6444
  */
6415
6445
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6446
+ /**
6447
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
6448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
6449
+ */
6450
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
6416
6451
  /**
6417
6452
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
6453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6419
6454
  */
6420
6455
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
6421
6456
  /**
6422
6457
  * Disallow useless fallback when spreading in object literals.
6423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
6458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
6424
6459
  */
6425
6460
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6426
6461
  /**
6427
6462
  * Disallow useless array length check.
6428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
6463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
6429
6464
  */
6430
6465
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6431
6466
  /**
6432
6467
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
6468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
6434
6469
  */
6435
6470
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6436
6471
  /**
6437
6472
  * Disallow unnecessary spread.
6438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
6473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
6439
6474
  */
6440
6475
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6441
6476
  /**
6442
6477
  * Disallow useless case in switch statements.
6443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
6478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
6444
6479
  */
6445
6480
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6446
6481
  /**
6447
6482
  * Disallow useless `undefined`.
6448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
6483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
6449
6484
  */
6450
6485
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6451
6486
  /**
6452
6487
  * Disallow number literals with zero fractions or dangling dots.
6453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
6488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
6454
6489
  */
6455
6490
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6456
6491
  /**
6457
6492
  * Enforce proper case for numeric literals.
6458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
6493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
6459
6494
  */
6460
6495
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6461
6496
  /**
6462
6497
  * Enforce the style of numeric separators by correctly grouping digits.
6463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
6498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
6464
6499
  */
6465
6500
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6466
6501
  /**
6467
6502
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
6503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
6469
6504
  */
6470
6505
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6471
6506
  /**
6472
6507
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
6508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
6474
6509
  */
6475
6510
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6476
6511
  /**
6477
6512
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
6513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
6479
6514
  */
6480
6515
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6481
6516
  /**
6482
6517
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
6518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
6484
6519
  */
6485
6520
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6486
6521
  /**
6487
6522
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
6523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
6489
6524
  */
6490
6525
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6491
6526
  /**
6492
6527
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
6528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
6494
6529
  */
6495
6530
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6496
6531
  /**
6497
6532
  * Prefer `.at()` method for index access and `String#charAt()`.
6498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
6533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
6499
6534
  */
6500
6535
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6501
6536
  /**
6502
6537
  * Prefer `BigInt` literals over the constructor.
6503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
6538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
6504
6539
  */
6505
6540
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
6506
6541
  /**
6507
6542
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
6543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
6509
6544
  */
6510
6545
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6511
6546
  /**
6512
6547
  * Prefer class field declarations over `this` assignments in constructors.
6513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
6548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
6514
6549
  */
6515
6550
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
6516
6551
  /**
6517
6552
  * Prefer using `Element#classList.toggle()` to toggle class names.
6518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
6553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
6519
6554
  */
6520
6555
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
6521
6556
  /**
6522
6557
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
6558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
6524
6559
  */
6525
6560
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6526
6561
  /**
6527
6562
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
6563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
6529
6564
  */
6530
6565
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6531
6566
  /**
6532
6567
  * Prefer default parameters over reassignment.
6533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
6568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
6534
6569
  */
6535
6570
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6536
6571
  /**
6537
6572
  * Prefer `Node#append()` over `Node#appendChild()`.
6538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
6573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
6539
6574
  */
6540
6575
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6541
6576
  /**
6542
6577
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
6578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
6544
6579
  */
6545
6580
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6546
6581
  /**
6547
6582
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
6583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
6549
6584
  */
6550
6585
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6551
6586
  /**
6552
6587
  * Prefer `.textContent` over `.innerText`.
6553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
6588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
6554
6589
  */
6555
6590
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6556
6591
  /**
6557
6592
  * Prefer `EventTarget` over `EventEmitter`.
6558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
6593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
6559
6594
  */
6560
6595
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6561
6596
  /**
6562
6597
  * Prefer `export…from` when re-exporting.
6563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
6598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
6564
6599
  */
6565
6600
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6566
6601
  /**
6567
6602
  * Prefer `globalThis` over `window`, `self`, and `global`.
6568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
6603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
6569
6604
  */
6570
6605
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6571
6606
  /**
6572
6607
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
6608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
6574
6609
  */
6575
6610
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6576
6611
  /**
6577
6612
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
6613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
6579
6614
  */
6580
6615
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6581
6616
  /**
6582
6617
  * Prefer reading a JSON file as a buffer.
6583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
6618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
6584
6619
  */
6585
6620
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6586
6621
  /**
6587
6622
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
6623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
6589
6624
  */
6590
6625
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6591
6626
  /**
6592
6627
  * Prefer using a logical operator over a ternary.
6593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
6628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6594
6629
  */
6595
6630
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6596
6631
  /**
6597
6632
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
6633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
6599
6634
  */
6600
6635
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6601
6636
  /**
6602
6637
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
6638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
6604
6639
  */
6605
6640
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6606
6641
  /**
6607
6642
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
6643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
6609
6644
  */
6610
6645
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6611
6646
  /**
6612
6647
  * Prefer modern `Math` APIs over legacy patterns.
6613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
6648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
6614
6649
  */
6615
6650
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6616
6651
  /**
6617
6652
  * Prefer JavaScript modules (ESM) over CommonJS.
6618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
6653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
6619
6654
  */
6620
6655
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6621
6656
  /**
6622
6657
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
6658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
6624
6659
  */
6625
6660
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6626
6661
  /**
6627
6662
  * Prefer negative index over `.length - index` when possible.
6628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
6663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
6629
6664
  */
6630
6665
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6631
6666
  /**
6632
6667
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
6668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
6634
6669
  */
6635
6670
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6636
6671
  /**
6637
6672
  * Prefer `Number` static properties over global ones.
6638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
6673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
6639
6674
  */
6640
6675
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6641
6676
  /**
6642
6677
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
6678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6644
6679
  */
6645
6680
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6646
6681
  /**
6647
6682
  * Prefer omitting the `catch` binding parameter.
6648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
6683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6649
6684
  */
6650
6685
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6651
6686
  /**
6652
6687
  * Prefer borrowing methods from the prototype instead of the instance.
6653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
6688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6654
6689
  */
6655
6690
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6656
6691
  /**
6657
6692
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
6693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6659
6694
  */
6660
6695
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6661
6696
  /**
6662
6697
  * Prefer `Reflect.apply()` over `Function#apply()`.
6663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
6698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6664
6699
  */
6665
6700
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6666
6701
  /**
6667
6702
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
6703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6669
6704
  */
6670
6705
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6706
+ /**
6707
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6709
+ */
6710
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
6671
6711
  /**
6672
6712
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
6713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6674
6714
  */
6675
6715
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6676
6716
  /**
6677
6717
  * Prefer using `Set#size` instead of `Array#length`.
6678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
6718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6679
6719
  */
6680
6720
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6681
6721
  /**
6682
6722
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
6723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6684
6724
  */
6685
6725
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6686
6726
  /**
6687
6727
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
6728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6689
6729
  */
6690
6730
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6691
6731
  /**
6692
6732
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
6733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6694
6734
  */
6695
6735
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6696
6736
  /**
6697
6737
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
6738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6699
6739
  */
6700
6740
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6701
6741
  /**
6702
6742
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
6743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6704
6744
  */
6705
6745
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6706
6746
  /**
6707
6747
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
6748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6709
6749
  */
6710
6750
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6711
6751
  /**
6712
6752
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
6753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6714
6754
  */
6715
6755
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6716
6756
  /**
6717
6757
  * Prefer using `structuredClone` to create a deep clone.
6718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
6758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6719
6759
  */
6720
6760
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6721
6761
  /**
6722
6762
  * Prefer `switch` over multiple `else-if`.
6723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6724
6764
  */
6725
6765
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6726
6766
  /**
6727
6767
  * Prefer ternary expressions over simple `if-else` statements.
6728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
6768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6729
6769
  */
6730
6770
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6731
6771
  /**
6732
6772
  * Prefer top-level await over top-level promises and async function calls.
6733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
6773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6734
6774
  */
6735
6775
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6736
6776
  /**
6737
6777
  * Enforce throwing `TypeError` in type checking conditions.
6738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
6778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6739
6779
  */
6740
6780
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6741
6781
  /**
6742
6782
  * Prevent abbreviations.
6743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6744
6784
  */
6745
6785
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6746
6786
  /**
6747
6787
  * Enforce consistent relative URL style.
6748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6749
6789
  */
6750
6790
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6751
6791
  /**
6752
6792
  * Enforce using the separator argument with `Array#join()`.
6753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
6793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6754
6794
  */
6755
6795
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6756
6796
  /**
6757
6797
  * Require non-empty module attributes for imports and exports
6758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
6798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6759
6799
  */
6760
6800
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
6761
6801
  /**
6762
6802
  * Require non-empty specifier list in import and export statements.
6763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
6803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6764
6804
  */
6765
6805
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6766
6806
  /**
6767
6807
  * Enforce using the digits argument with `Number#toFixed()`.
6768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
6808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6769
6809
  */
6770
6810
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6771
6811
  /**
6772
6812
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
6813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6774
6814
  */
6775
6815
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6776
6816
  /**
6777
6817
  * Enforce better string content.
6778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6779
6819
  */
6780
6820
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6781
6821
  /**
6782
6822
  * Enforce consistent brace style for `case` clauses.
6783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
6823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6784
6824
  */
6785
6825
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6786
6826
  /**
6787
6827
  * Fix whitespace-insensitive template indentation.
6788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6789
6829
  */
6790
6830
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6791
6831
  /**
6792
6832
  * Enforce consistent case for text encoding identifiers.
6793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
6833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6794
6834
  */
6795
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6835
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
6796
6836
  /**
6797
6837
  * Require `new` when creating an error.
6798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
6838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6799
6839
  */
6800
6840
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6801
6841
  /**
@@ -7439,6 +7479,17 @@ type AstroJsxA11YTabindexNoPositive =
7439
7479
  [k: string]: unknown | undefined
7440
7480
  },
7441
7481
  ]
7482
+ // ----- astro/no-unsafe-inline-scripts -----
7483
+ type AstroNoUnsafeInlineScripts =
7484
+ | []
7485
+ | [
7486
+ {
7487
+ allowDefineVars?: boolean
7488
+ allowModuleScripts?: boolean
7489
+ allowNonExecutingTypes?: string[]
7490
+ allowNonce?: boolean
7491
+ },
7492
+ ]
7442
7493
  // ----- astro/prefer-split-class-list -----
7443
7494
  type AstroPreferSplitClassList =
7444
7495
  | []
@@ -9535,6 +9586,14 @@ type JsdocValidTypes =
9535
9586
  allowEmptyNamepaths?: boolean
9536
9587
  },
9537
9588
  ]
9589
+ // ----- json-package/exports-subpaths-style -----
9590
+ type JsonPackageExportsSubpathsStyle =
9591
+ | []
9592
+ | [
9593
+ {
9594
+ prefer?: 'implicit' | 'explicit'
9595
+ },
9596
+ ]
9538
9597
  // ----- json-package/no-empty-fields -----
9539
9598
  type JsonPackageNoEmptyFields =
9540
9599
  | []
@@ -9631,6 +9690,14 @@ type JsonPackageRequireKeywords =
9631
9690
  ignorePrivate?: boolean
9632
9691
  },
9633
9692
  ]
9693
+ // ----- json-package/require-license -----
9694
+ type JsonPackageRequireLicense =
9695
+ | []
9696
+ | [
9697
+ {
9698
+ ignorePrivate?: boolean
9699
+ },
9700
+ ]
9634
9701
  // ----- json-package/require-name -----
9635
9702
  type JsonPackageRequireName =
9636
9703
  | []
@@ -9712,6 +9779,14 @@ type JsonPackageRestrictDependencyRanges =
9712
9779
  rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
9713
9780
  }[],
9714
9781
  ]
9782
+ // ----- json-package/restrict-private-properties -----
9783
+ type JsonPackageRestrictPrivateProperties =
9784
+ | []
9785
+ | [
9786
+ {
9787
+ blockedProperties?: string[]
9788
+ },
9789
+ ]
9715
9790
  // ----- json-package/sort-collections -----
9716
9791
  type JsonPackageSortCollections = [] | [string[]]
9717
9792
  // ----- json-package/valid-bin -----
@@ -24715,6 +24790,14 @@ type UnicornTemplateIndent =
24715
24790
  comments?: string[]
24716
24791
  },
24717
24792
  ]
24793
+ // ----- unicorn/text-encoding-identifier-case -----
24794
+ type UnicornTextEncodingIdentifierCase =
24795
+ | []
24796
+ | [
24797
+ {
24798
+ withDash?: boolean
24799
+ },
24800
+ ]
24718
24801
  // ----- use-isnan -----
24719
24802
  type UseIsnan =
24720
24803
  | []
package/dist/index.js CHANGED
@@ -809,13 +809,13 @@ var jsonPackageRecommendedRules = {
809
809
  "json-package/no-redundant-files": "error",
810
810
  "json-package/order-properties": "error",
811
811
  "json-package/require-description": "error",
812
+ "json-package/require-license": "error",
812
813
  "json-package/require-name": "error",
813
814
  "json-package/require-type": "error",
814
815
  "json-package/require-version": "error",
815
816
  "json-package/repository-shorthand": "error",
816
817
  "json-package/sort-collections": "error",
817
818
  "json-package/unique-dependencies": "error",
818
- "json-package/valid-author": "error",
819
819
  "json-package/valid-bundleDependencies": "error",
820
820
  "json-package/valid-config": "error",
821
821
  "json-package/valid-cpu": "error",
@@ -829,13 +829,13 @@ var jsonPackageRecommendedRules = {
829
829
  "json-package/valid-peerDependencies": "error",
830
830
  "json-package/valid-scripts": "error",
831
831
  "json-package/valid-type": "error",
832
+ "json-package/valid-author": "error",
832
833
  "json-package/valid-bin": "error",
833
834
  "json-package/valid-name": "error",
834
835
  "json-package/valid-package-definition": [
835
836
  "error",
836
837
  {
837
838
  ignoreProperties: [
838
- "author",
839
839
  "bundleDependencies",
840
840
  "config",
841
841
  "cpu",
@@ -849,6 +849,7 @@ var jsonPackageRecommendedRules = {
849
849
  "peerDependencies",
850
850
  "scripts",
851
851
  "type",
852
+ "author",
852
853
  "bin",
853
854
  "name",
854
855
  "repository-directory",
@@ -1570,14 +1571,14 @@ var svelteRecommendedRules = {
1570
1571
  var testRecommendedRules = {
1571
1572
  // Begin expansion '@vitest/eslint-plugin' 'recommended'
1572
1573
  "test/expect-expect": "error",
1573
- "test/no-identical-title": "error",
1574
1574
  "test/no-commented-out-tests": "error",
1575
- "test/valid-title": "error",
1576
- "test/valid-expect": "error",
1577
- "test/valid-describe-callback": "error",
1578
- "test/require-local-test-context-for-concurrent-snapshots": "error",
1575
+ "test/no-identical-title": "error",
1579
1576
  "test/no-import-node-test": "error",
1580
- "test/prefer-called-exactly-once-with": "error"
1577
+ "test/prefer-called-exactly-once-with": "error",
1578
+ "test/require-local-test-context-for-concurrent-snapshots": "error",
1579
+ "test/valid-describe-callback": "error",
1580
+ "test/valid-expect": "error",
1581
+ "test/valid-title": "error"
1581
1582
  // End expansion
1582
1583
  };
1583
1584
 
@@ -1629,6 +1630,7 @@ var unicornRecommendedRules = {
1629
1630
  "unicorn/no-empty-file": "error",
1630
1631
  "unicorn/no-for-loop": "error",
1631
1632
  "unicorn/no-hex-escape": "error",
1633
+ "unicorn/no-immediate-mutation": "error",
1632
1634
  "unicorn/no-instanceof-builtins": "error",
1633
1635
  "unicorn/no-invalid-fetch-options": "error",
1634
1636
  "unicorn/no-invalid-remove-event-listener": "error",
@@ -1657,6 +1659,7 @@ var unicornRecommendedRules = {
1657
1659
  "unicorn/no-unreadable-array-destructuring": "error",
1658
1660
  "unicorn/no-unreadable-iife": "error",
1659
1661
  "unicorn/no-unused-properties": "off",
1662
+ "unicorn/no-useless-collection-argument": "error",
1660
1663
  "unicorn/no-useless-error-capture-stack-trace": "error",
1661
1664
  "unicorn/no-useless-fallback-in-spread": "error",
1662
1665
  "unicorn/no-useless-length-check": "error",
@@ -1708,6 +1711,7 @@ var unicornRecommendedRules = {
1708
1711
  "unicorn/prefer-query-selector": "error",
1709
1712
  "unicorn/prefer-reflect-apply": "error",
1710
1713
  "unicorn/prefer-regexp-test": "error",
1714
+ "unicorn/prefer-response-static-json": "error",
1711
1715
  "unicorn/prefer-set-has": "error",
1712
1716
  "unicorn/prefer-set-size": "error",
1713
1717
  "unicorn/prefer-single-call": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "5.7.4",
3
+ "version": "5.8.0",
4
4
  "description": "ESLint configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -26,8 +26,8 @@
26
26
  "type": "module",
27
27
  "exports": {
28
28
  ".": {
29
- "import": "./dist/index.js",
30
- "types": "./dist/index.d.ts"
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js"
31
31
  }
32
32
  },
33
33
  "main": "dist/index.js",
@@ -47,42 +47,42 @@
47
47
  "@html-eslint/eslint-plugin": "^0.47.0",
48
48
  "@html-eslint/parser": "^0.47.0",
49
49
  "@pinojs/json-colorizer": "^4.0.0",
50
- "@typescript-eslint/eslint-plugin": "^8.46.1",
51
- "@typescript-eslint/parser": "^8.46.1",
52
- "@vitest/eslint-plugin": "^1.3.20",
50
+ "@typescript-eslint/eslint-plugin": "^8.46.3",
51
+ "@typescript-eslint/parser": "^8.46.3",
52
+ "@vitest/eslint-plugin": "^1.4.0",
53
53
  "astro-eslint-parser": "^1.2.2",
54
- "eslint": "^9.37.0",
54
+ "eslint": "^9.39.1",
55
55
  "eslint-config-flat-gitignore": "^2.1.0",
56
56
  "eslint-flat-config-utils": "^2.1.4",
57
57
  "eslint-import-resolver-typescript": "^4.4.4",
58
58
  "eslint-mdx": "^3.6.2",
59
- "eslint-plugin-astro": "^1.3.1",
59
+ "eslint-plugin-astro": "^1.4.0",
60
60
  "eslint-plugin-depend": "^1.3.1",
61
61
  "eslint-plugin-html": "^8.1.3",
62
62
  "eslint-plugin-import-x": "^4.16.1",
63
- "eslint-plugin-jsdoc": "^61.1.3",
63
+ "eslint-plugin-jsdoc": "^61.1.12",
64
64
  "eslint-plugin-jsonc": "^2.21.0",
65
65
  "eslint-plugin-jsx-a11y": "^6.10.2",
66
66
  "eslint-plugin-mdx": "^3.6.2",
67
67
  "eslint-plugin-n": "^17.23.1",
68
68
  "eslint-plugin-no-only-tests": "^3.3.0",
69
- "eslint-plugin-package-json": "^0.56.4",
69
+ "eslint-plugin-package-json": "^0.63.0",
70
70
  "eslint-plugin-perfectionist": "^4.15.1",
71
71
  "eslint-plugin-regexp": "^2.10.0",
72
- "eslint-plugin-svelte": "^3.12.4",
72
+ "eslint-plugin-svelte": "^3.13.0",
73
73
  "eslint-plugin-toml": "^0.12.0",
74
- "eslint-plugin-unicorn": "^61.0.2",
74
+ "eslint-plugin-unicorn": "^62.0.0",
75
75
  "eslint-plugin-yml": "^1.19.0",
76
76
  "execa": "^9.6.0",
77
77
  "find-workspaces": "^0.3.1",
78
78
  "fs-extra": "^11.3.2",
79
- "globals": "^16.4.0",
79
+ "globals": "^16.5.0",
80
80
  "jsonc-eslint-parser": "^2.4.1",
81
81
  "local-pkg": "^1.1.2",
82
82
  "prettier": "^3.6.2",
83
83
  "sort-package-json": "^3.4.0",
84
- "svelte-eslint-parser": "^1.3.3",
85
- "to-valid-identifier": "^0.1.1",
84
+ "svelte-eslint-parser": "^1.4.0",
85
+ "to-valid-identifier": "^1.0.0",
86
86
  "toml-eslint-parser": "^0.10.0",
87
87
  "yaml-eslint-parser": "^1.3.0"
88
88
  },
@@ -94,7 +94,7 @@
94
94
  "eslint-config-xo-typescript": "^9.0.0",
95
95
  "eslint-typegen": "^2.3.0",
96
96
  "globby": "^15.0.0",
97
- "svelte": "^5.40.0",
97
+ "svelte": "^5.43.3",
98
98
  "tsup": "^8.5.0"
99
99
  },
100
100
  "engines": {