@luxass/eslint-config 6.0.0 → 6.0.2

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.
@@ -902,6 +902,11 @@ interface RuleOptions {
902
902
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
903
903
  */
904
904
  'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
905
+ /**
906
+ * disallow inline `<script>` without `src` to encourage CSP-safe patterns
907
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
908
+ */
909
+ 'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
905
910
  /**
906
911
  * disallow selectors defined in `style` tag that don't use in HTML
907
912
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
@@ -3614,7 +3619,7 @@ interface RuleOptions {
3614
3619
  */
3615
3620
  'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
3616
3621
  /**
3617
- * Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
3622
+ * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
3618
3623
  */
3619
3624
  'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
3620
3625
  /**
@@ -3663,6 +3668,11 @@ interface RuleOptions {
3663
3668
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3664
3669
  */
3665
3670
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
3671
+ /**
3672
+ * Prevents dollar signs from being inserted as text nodes before expressions.
3673
+ * @see https://eslint-react.xyz/docs/rules/jsx-dollar
3674
+ */
3675
+ 'react/jsx-dollar'?: Linter.RuleEntry<[]>;
3666
3676
  /**
3667
3677
  * Enforces that the 'key' prop is placed before the spread prop in JSX elements.
3668
3678
  * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
@@ -6184,710 +6194,725 @@ interface RuleOptions {
6184
6194
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6185
6195
  /**
6186
6196
  * Improve regexes by making them shorter, consistent, and safer.
6187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
6197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
6188
6198
  */
6189
6199
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6190
6200
  /**
6191
6201
  * Enforce a specific parameter name in catch clauses.
6192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
6202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
6193
6203
  */
6194
6204
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6195
6205
  /**
6196
6206
  * Enforce consistent assertion style with `node:assert`.
6197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
6207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
6198
6208
  */
6199
6209
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6200
6210
  /**
6201
6211
  * Prefer passing `Date` directly to the constructor when cloning.
6202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
6212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
6203
6213
  */
6204
6214
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6205
6215
  /**
6206
6216
  * Use destructured variables over properties.
6207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
6217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
6208
6218
  */
6209
6219
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6210
6220
  /**
6211
6221
  * Prefer consistent types when spreading a ternary in an array literal.
6212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
6222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
6213
6223
  */
6214
6224
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6215
6225
  /**
6216
6226
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
6227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
6218
6228
  */
6219
6229
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6220
6230
  /**
6221
6231
  * Move function definitions to the highest possible scope.
6222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
6232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
6223
6233
  */
6224
6234
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6225
6235
  /**
6226
6236
  * Enforce correct `Error` subclassing.
6227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
6237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
6228
6238
  */
6229
6239
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6230
6240
  /**
6231
6241
  * Enforce no spaces between braces.
6232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
6242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
6233
6243
  */
6234
6244
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6235
6245
  /**
6236
6246
  * Enforce passing a `message` value when creating a built-in error.
6237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
6247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
6238
6248
  */
6239
6249
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6240
6250
  /**
6241
6251
  * Require escape sequences to use uppercase or lowercase values.
6242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
6252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
6243
6253
  */
6244
6254
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6245
6255
  /**
6246
6256
  * Add expiration conditions to TODO comments.
6247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
6257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
6248
6258
  */
6249
6259
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6250
6260
  /**
6251
6261
  * Enforce explicitly comparing the `length` or `size` property of a value.
6252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
6262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
6253
6263
  */
6254
6264
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6255
6265
  /**
6256
6266
  * Enforce a case style for filenames.
6257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
6267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
6258
6268
  */
6259
6269
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6260
6270
  /**
6261
6271
  * Enforce specific import styles per module.
6262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
6272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
6263
6273
  */
6264
6274
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6265
6275
  /**
6266
6276
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
6277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
6268
6278
  */
6269
6279
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6270
6280
  /**
6271
6281
  * Enforce specifying rules to disable in `eslint-disable` comments.
6272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
6282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
6273
6283
  */
6274
6284
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6275
6285
  /**
6276
6286
  * Disallow recursive access to `this` within getters and setters.
6277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
6287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
6278
6288
  */
6279
6289
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6280
6290
  /**
6281
6291
  * Disallow anonymous functions and classes as the default export.
6282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
6292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
6283
6293
  */
6284
6294
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6285
6295
  /**
6286
6296
  * Prevent passing a function reference directly to iterator methods.
6287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
6297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
6288
6298
  */
6289
6299
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
6290
6300
  /**
6291
6301
  * Prefer `for…of` over the `forEach` method.
6292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
6302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
6293
6303
  */
6294
6304
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
6295
6305
  /**
6296
6306
  * Disallow using the `this` argument in array methods.
6297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
6307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
6298
6308
  */
6299
6309
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6300
6310
  /**
6301
6311
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
6312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
6303
6313
  * @deprecated
6304
6314
  */
6305
6315
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6306
6316
  /**
6307
6317
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
6318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
6309
6319
  */
6310
6320
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6311
6321
  /**
6312
6322
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
6323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
6314
6324
  */
6315
6325
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6316
6326
  /**
6317
6327
  * Prefer `Array#toSorted()` over `Array#sort()`.
6318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
6328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
6319
6329
  */
6320
6330
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6321
6331
  /**
6322
6332
  * Disallow member access from await expression.
6323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
6333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
6324
6334
  */
6325
6335
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6326
6336
  /**
6327
6337
  * Disallow using `await` in `Promise` method parameters.
6328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
6338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
6329
6339
  */
6330
6340
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6331
6341
  /**
6332
6342
  * Do not use leading/trailing space between `console.log` parameters.
6333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
6343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
6334
6344
  */
6335
6345
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6336
6346
  /**
6337
6347
  * Do not use `document.cookie` directly.
6338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
6348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
6339
6349
  */
6340
6350
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6341
6351
  /**
6342
6352
  * Disallow empty files.
6343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
6353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
6344
6354
  */
6345
6355
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
6346
6356
  /**
6347
6357
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
6358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
6349
6359
  */
6350
6360
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6351
6361
  /**
6352
6362
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
6363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
6354
6364
  */
6355
6365
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6366
+ /**
6367
+ * Disallow immediate mutation after variable assignment.
6368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
6369
+ */
6370
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
6356
6371
  /**
6357
6372
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
6373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
6359
6374
  * @deprecated
6360
6375
  */
6361
6376
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6362
6377
  /**
6363
6378
  * Disallow `instanceof` with built-in objects
6364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
6379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
6365
6380
  */
6366
6381
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6367
6382
  /**
6368
6383
  * Disallow invalid options in `fetch()` and `new Request()`.
6369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
6384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
6370
6385
  */
6371
6386
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6372
6387
  /**
6373
6388
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
6389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
6375
6390
  */
6376
6391
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6377
6392
  /**
6378
6393
  * Disallow identifiers starting with `new` or `class`.
6379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
6394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
6380
6395
  */
6381
6396
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6382
6397
  /**
6383
6398
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
6399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6385
6400
  * @deprecated
6386
6401
  */
6387
6402
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6388
6403
  /**
6389
6404
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
6405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
6391
6406
  */
6392
6407
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6393
6408
  /**
6394
6409
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
6410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
6396
6411
  */
6397
6412
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6398
6413
  /**
6399
6414
  * Disallow named usage of default import and export.
6400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
6415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
6401
6416
  */
6402
6417
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6403
6418
  /**
6404
6419
  * Disallow negated conditions.
6405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
6420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
6406
6421
  */
6407
6422
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6408
6423
  /**
6409
6424
  * Disallow negated expression in equality check.
6410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
6425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
6411
6426
  */
6412
6427
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6413
6428
  /**
6414
6429
  * Disallow nested ternary expressions.
6415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
6430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
6416
6431
  */
6417
6432
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6418
6433
  /**
6419
6434
  * Disallow `new Array()`.
6420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
6435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
6421
6436
  */
6422
6437
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6423
6438
  /**
6424
6439
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
6440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
6426
6441
  */
6427
6442
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6428
6443
  /**
6429
6444
  * Disallow the use of the `null` literal.
6430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
6445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
6431
6446
  */
6432
6447
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6433
6448
  /**
6434
6449
  * Disallow the use of objects as default parameters.
6435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
6450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
6436
6451
  */
6437
6452
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6438
6453
  /**
6439
6454
  * Disallow `process.exit()`.
6440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
6455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
6441
6456
  */
6442
6457
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6443
6458
  /**
6444
6459
  * Disallow passing single-element arrays to `Promise` methods.
6445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
6460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
6446
6461
  */
6447
6462
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6448
6463
  /**
6449
6464
  * Disallow classes that only have static members.
6450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
6465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
6451
6466
  */
6452
6467
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6453
6468
  /**
6454
6469
  * Disallow `then` property.
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
6456
6471
  */
6457
6472
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6458
6473
  /**
6459
6474
  * Disallow assigning `this` to a variable.
6460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
6461
6476
  */
6462
6477
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6463
6478
  /**
6464
6479
  * Disallow comparing `undefined` using `typeof`.
6465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
6466
6481
  */
6467
6482
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6468
6483
  /**
6469
6484
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
6485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6471
6486
  */
6472
6487
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6473
6488
  /**
6474
6489
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
6476
6491
  */
6477
6492
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6478
6493
  /**
6479
6494
  * Disallow awaiting non-promise values.
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
6481
6496
  */
6482
6497
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6483
6498
  /**
6484
6499
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
6486
6501
  */
6487
6502
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6488
6503
  /**
6489
6504
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
6491
6506
  */
6492
6507
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6493
6508
  /**
6494
6509
  * Disallow unreadable array destructuring.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
6496
6511
  */
6497
6512
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6498
6513
  /**
6499
6514
  * Disallow unreadable IIFEs.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
6501
6516
  */
6502
6517
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6503
6518
  /**
6504
6519
  * Disallow unused object properties.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
6506
6521
  */
6507
6522
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6523
+ /**
6524
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
6526
+ */
6527
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
6508
6528
  /**
6509
6529
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6511
6531
  */
6512
6532
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
6513
6533
  /**
6514
6534
  * Disallow useless fallback when spreading in object literals.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
6516
6536
  */
6517
6537
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6518
6538
  /**
6519
6539
  * Disallow useless array length check.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
6521
6541
  */
6522
6542
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6523
6543
  /**
6524
6544
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
6526
6546
  */
6527
6547
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6528
6548
  /**
6529
6549
  * Disallow unnecessary spread.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
6531
6551
  */
6532
6552
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6533
6553
  /**
6534
6554
  * Disallow useless case in switch statements.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
6536
6556
  */
6537
6557
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6538
6558
  /**
6539
6559
  * Disallow useless `undefined`.
6540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
6541
6561
  */
6542
6562
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6543
6563
  /**
6544
6564
  * Disallow number literals with zero fractions or dangling dots.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
6546
6566
  */
6547
6567
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
6548
6568
  /**
6549
6569
  * Enforce proper case for numeric literals.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
6551
6571
  */
6552
6572
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
6553
6573
  /**
6554
6574
  * Enforce the style of numeric separators by correctly grouping digits.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
6556
6576
  */
6557
6577
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6558
6578
  /**
6559
6579
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
6561
6581
  */
6562
6582
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
6563
6583
  /**
6564
6584
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
6566
6586
  */
6567
6587
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
6568
6588
  /**
6569
6589
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
6571
6591
  */
6572
6592
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
6573
6593
  /**
6574
6594
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
6576
6596
  */
6577
6597
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
6578
6598
  /**
6579
6599
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
6581
6601
  */
6582
6602
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
6583
6603
  /**
6584
6604
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
6586
6606
  */
6587
6607
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
6588
6608
  /**
6589
6609
  * Prefer `.at()` method for index access and `String#charAt()`.
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
6591
6611
  */
6592
6612
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6593
6613
  /**
6594
6614
  * Prefer `BigInt` literals over the constructor.
6595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
6596
6616
  */
6597
6617
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
6598
6618
  /**
6599
6619
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
6601
6621
  */
6602
6622
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6603
6623
  /**
6604
6624
  * Prefer class field declarations over `this` assignments in constructors.
6605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
6606
6626
  */
6607
6627
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
6608
6628
  /**
6609
6629
  * Prefer using `Element#classList.toggle()` to toggle class names.
6610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
6611
6631
  */
6612
6632
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
6613
6633
  /**
6614
6634
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
6616
6636
  */
6617
6637
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6618
6638
  /**
6619
6639
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
6621
6641
  */
6622
6642
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
6623
6643
  /**
6624
6644
  * Prefer default parameters over reassignment.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
6626
6646
  */
6627
6647
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
6628
6648
  /**
6629
6649
  * Prefer `Node#append()` over `Node#appendChild()`.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
6631
6651
  */
6632
6652
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
6633
6653
  /**
6634
6654
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
6636
6656
  */
6637
6657
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6638
6658
  /**
6639
6659
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
6641
6661
  */
6642
6662
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6643
6663
  /**
6644
6664
  * Prefer `.textContent` over `.innerText`.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
6646
6666
  */
6647
6667
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6648
6668
  /**
6649
6669
  * Prefer `EventTarget` over `EventEmitter`.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
6651
6671
  */
6652
6672
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6653
6673
  /**
6654
6674
  * Prefer `export…from` when re-exporting.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
6656
6676
  */
6657
6677
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6658
6678
  /**
6659
6679
  * Prefer `globalThis` over `window`, `self`, and `global`.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
6661
6681
  */
6662
6682
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6663
6683
  /**
6664
6684
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
6666
6686
  */
6667
6687
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6668
6688
  /**
6669
6689
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
6671
6691
  */
6672
6692
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6673
6693
  /**
6674
6694
  * Prefer reading a JSON file as a buffer.
6675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
6676
6696
  */
6677
6697
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6678
6698
  /**
6679
6699
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
6681
6701
  */
6682
6702
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6683
6703
  /**
6684
6704
  * Prefer using a logical operator over a ternary.
6685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6686
6706
  */
6687
6707
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6688
6708
  /**
6689
6709
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
6691
6711
  */
6692
6712
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6693
6713
  /**
6694
6714
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
6696
6716
  */
6697
6717
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6698
6718
  /**
6699
6719
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
6701
6721
  */
6702
6722
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6703
6723
  /**
6704
6724
  * Prefer modern `Math` APIs over legacy patterns.
6705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
6706
6726
  */
6707
6727
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6708
6728
  /**
6709
6729
  * Prefer JavaScript modules (ESM) over CommonJS.
6710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
6711
6731
  */
6712
6732
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6713
6733
  /**
6714
6734
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
6716
6736
  */
6717
6737
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6718
6738
  /**
6719
6739
  * Prefer negative index over `.length - index` when possible.
6720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
6740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
6721
6741
  */
6722
6742
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6723
6743
  /**
6724
6744
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
6726
6746
  */
6727
6747
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6728
6748
  /**
6729
6749
  * Prefer `Number` static properties over global ones.
6730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
6731
6751
  */
6732
6752
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6733
6753
  /**
6734
6754
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6736
6756
  */
6737
6757
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6738
6758
  /**
6739
6759
  * Prefer omitting the `catch` binding parameter.
6740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6741
6761
  */
6742
6762
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6743
6763
  /**
6744
6764
  * Prefer borrowing methods from the prototype instead of the instance.
6745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
6765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6746
6766
  */
6747
6767
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6748
6768
  /**
6749
6769
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
6770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6751
6771
  */
6752
6772
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6753
6773
  /**
6754
6774
  * Prefer `Reflect.apply()` over `Function#apply()`.
6755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
6775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6756
6776
  */
6757
6777
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6758
6778
  /**
6759
6779
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
6780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6761
6781
  */
6762
6782
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6783
+ /**
6784
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6786
+ */
6787
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6763
6788
  /**
6764
6789
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
6790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6766
6791
  */
6767
6792
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6768
6793
  /**
6769
6794
  * Prefer using `Set#size` instead of `Array#length`.
6770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
6795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6771
6796
  */
6772
6797
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6773
6798
  /**
6774
6799
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
6800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6776
6801
  */
6777
6802
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6778
6803
  /**
6779
6804
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
6805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6781
6806
  */
6782
6807
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6783
6808
  /**
6784
6809
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
6810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6786
6811
  */
6787
6812
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6788
6813
  /**
6789
6814
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
6815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6791
6816
  */
6792
6817
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6793
6818
  /**
6794
6819
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
6820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6796
6821
  */
6797
6822
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6798
6823
  /**
6799
6824
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
6825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6801
6826
  */
6802
6827
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6803
6828
  /**
6804
6829
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
6830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6806
6831
  */
6807
6832
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6808
6833
  /**
6809
6834
  * Prefer using `structuredClone` to create a deep clone.
6810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
6835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6811
6836
  */
6812
6837
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6813
6838
  /**
6814
6839
  * Prefer `switch` over multiple `else-if`.
6815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6816
6841
  */
6817
6842
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6818
6843
  /**
6819
6844
  * Prefer ternary expressions over simple `if-else` statements.
6820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
6845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6821
6846
  */
6822
6847
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6823
6848
  /**
6824
6849
  * Prefer top-level await over top-level promises and async function calls.
6825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
6850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6826
6851
  */
6827
6852
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6828
6853
  /**
6829
6854
  * Enforce throwing `TypeError` in type checking conditions.
6830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
6855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6831
6856
  */
6832
6857
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6833
6858
  /**
6834
6859
  * Prevent abbreviations.
6835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6836
6861
  */
6837
6862
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6838
6863
  /**
6839
6864
  * Enforce consistent relative URL style.
6840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6841
6866
  */
6842
6867
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6843
6868
  /**
6844
6869
  * Enforce using the separator argument with `Array#join()`.
6845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
6870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6846
6871
  */
6847
6872
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6848
6873
  /**
6849
6874
  * Require non-empty module attributes for imports and exports
6850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
6875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6851
6876
  */
6852
6877
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6853
6878
  /**
6854
6879
  * Require non-empty specifier list in import and export statements.
6855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
6880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6856
6881
  */
6857
6882
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6858
6883
  /**
6859
6884
  * Enforce using the digits argument with `Number#toFixed()`.
6860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
6885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6861
6886
  */
6862
6887
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6863
6888
  /**
6864
6889
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
6890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6866
6891
  */
6867
6892
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6868
6893
  /**
6869
6894
  * Enforce better string content.
6870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6871
6896
  */
6872
6897
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6873
6898
  /**
6874
6899
  * Enforce consistent brace style for `case` clauses.
6875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
6900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6876
6901
  */
6877
6902
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6878
6903
  /**
6879
6904
  * Fix whitespace-insensitive template indentation.
6880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6881
6906
  */
6882
6907
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6883
6908
  /**
6884
6909
  * Enforce consistent case for text encoding identifiers.
6885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
6910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6886
6911
  */
6887
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
6912
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6888
6913
  /**
6889
6914
  * Require `new` when creating an error.
6890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
6915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6891
6916
  */
6892
6917
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6893
6918
  /**
@@ -8417,6 +8442,13 @@ type ArrowSpacing = [] | [{
8417
8442
  before?: boolean;
8418
8443
  after?: boolean;
8419
8444
  }];
8445
+ // ----- astro/no-unsafe-inline-scripts -----
8446
+ type AstroNoUnsafeInlineScripts = [] | [{
8447
+ allowDefineVars?: boolean;
8448
+ allowModuleScripts?: boolean;
8449
+ allowNonExecutingTypes?: string[];
8450
+ allowNonce?: boolean;
8451
+ }];
8420
8452
  // ----- astro/prefer-split-class-list -----
8421
8453
  type AstroPreferSplitClassList = [] | [{
8422
8454
  splitLiteral?: boolean;
@@ -15755,6 +15787,10 @@ type UnicornTemplateIndent = [] | [{
15755
15787
  selectors?: string[];
15756
15788
  comments?: string[];
15757
15789
  }];
15790
+ // ----- unicorn/text-encoding-identifier-case -----
15791
+ type UnicornTextEncodingIdentifierCase = [] | [{
15792
+ withDash?: boolean;
15793
+ }];
15758
15794
  // ----- unocss/enforce-class-compile -----
15759
15795
  type UnocssEnforceClassCompile = [] | [{
15760
15796
  prefix?: string;
@@ -17624,4 +17660,4 @@ declare function isPackageInScope(name: string): boolean;
17624
17660
  declare function isInEditorEnv(): boolean;
17625
17661
  declare function isInGitHooksOrLintStaged(): boolean;
17626
17662
  //#endregion
17627
- export { AstroOptions, Awaitable, type ConfigNames, ConfigOptions, FormattersOptions, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NEXTJS_OG, GLOB_NEXTJS_ROUTES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, ImportsOptions, JSDOCOptions, JSONOptions, JavaScriptOptions, MarkdownOptions, ProjectType, ReactOptions, RegExpOptions, ResolvedOptions, Rules, StylisticConfig, StylisticOptions, TOMLOptions, TailwindCSSOptions, TestOptions, TypeScriptOptions, TypedFlatConfigItem, UnicornOptions, UnoCSSOptions, UserConfigItem, VueOptions, YAMLOptions, astro, combine, command, comments, luxass as default, luxass, disables, ensure, formatters, getOverrides, ignores, imports, interop, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
17663
+ export { type AstroOptions, Awaitable, type ConfigNames, ConfigOptions, type FormattersOptions, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NEXTJS_OG, GLOB_NEXTJS_ROUTES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type ImportsOptions, type JSDOCOptions, type JSONOptions, type JavaScriptOptions, type MarkdownOptions, ProjectType, type ReactOptions, type RegExpOptions, ResolvedOptions, Rules, type StylisticConfig, type StylisticOptions, type TOMLOptions, type TailwindCSSOptions, type TestOptions, type TypeScriptOptions, TypedFlatConfigItem, type UnicornOptions, type UnoCSSOptions, UserConfigItem, type VueOptions, type YAMLOptions, astro, combine, command, comments, luxass as default, luxass, disables, ensure, formatters, getOverrides, ignores, imports, interop, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };