@jimmy.codes/eslint-config 3.14.0 → 3.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -502,6 +502,11 @@ interface RuleOptions {
502
502
  * @see https://typescript-eslint.io/rules/no-unsafe-return
503
503
  */
504
504
  '@typescript-eslint/no-unsafe-return'?: Linter.RuleEntry<[]>
505
+ /**
506
+ * Disallow type assertions that narrow a type
507
+ * @see https://typescript-eslint.io/rules/no-unsafe-type-assertion
508
+ */
509
+ '@typescript-eslint/no-unsafe-type-assertion'?: Linter.RuleEntry<[]>
505
510
  /**
506
511
  * Require unary negation to take a number
507
512
  * @see https://typescript-eslint.io/rules/no-unsafe-unary-minus
@@ -659,6 +664,11 @@ interface RuleOptions {
659
664
  * @see https://typescript-eslint.io/rules/promise-function-async
660
665
  */
661
666
  '@typescript-eslint/promise-function-async'?: Linter.RuleEntry<TypescriptEslintPromiseFunctionAsync>
667
+ /**
668
+ * Enforce that `get()` types should be assignable to their equivalent `set()` type
669
+ * @see https://typescript-eslint.io/rules/related-getter-setter-pairs
670
+ */
671
+ '@typescript-eslint/related-getter-setter-pairs'?: Linter.RuleEntry<[]>
662
672
  /**
663
673
  * Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`
664
674
  * @see https://typescript-eslint.io/rules/require-array-sort-compare
@@ -4259,702 +4269,702 @@ interface RuleOptions {
4259
4269
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4260
4270
  /**
4261
4271
  * Improve regexes by making them shorter, consistent, and safer.
4262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
4272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
4263
4273
  */
4264
4274
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4265
4275
  /**
4266
4276
  * Enforce a specific parameter name in catch clauses.
4267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
4277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
4268
4278
  */
4269
4279
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4270
4280
  /**
4271
4281
  * Use destructured variables over properties.
4272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
4282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
4273
4283
  */
4274
4284
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4275
4285
  /**
4276
4286
  * Prefer consistent types when spreading a ternary in an array literal.
4277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
4287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
4278
4288
  */
4279
4289
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4280
4290
  /**
4281
4291
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
4292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
4283
4293
  */
4284
4294
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4285
4295
  /**
4286
4296
  * Move function definitions to the highest possible scope.
4287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
4297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
4288
4298
  */
4289
4299
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4290
4300
  /**
4291
4301
  * Enforce correct `Error` subclassing.
4292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
4302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
4293
4303
  */
4294
4304
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4295
4305
  /**
4296
4306
  * Enforce no spaces between braces.
4297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
4307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
4298
4308
  */
4299
4309
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4300
4310
  /**
4301
4311
  * Enforce passing a `message` value when creating a built-in error.
4302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
4312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
4303
4313
  */
4304
4314
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4305
4315
  /**
4306
4316
  * Require escape sequences to use uppercase values.
4307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
4317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
4308
4318
  */
4309
4319
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4310
4320
  /**
4311
4321
  * Add expiration conditions to TODO comments.
4312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
4322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
4313
4323
  */
4314
4324
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4315
4325
  /**
4316
4326
  * Enforce explicitly comparing the `length` or `size` property of a value.
4317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
4327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
4318
4328
  */
4319
4329
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4320
4330
  /**
4321
4331
  * Enforce a case style for filenames.
4322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
4332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
4323
4333
  */
4324
4334
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4325
4335
  /**
4326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
4336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
4327
4337
  * @deprecated
4328
4338
  */
4329
4339
  'unicorn/import-index'?: Linter.RuleEntry<[]>
4330
4340
  /**
4331
4341
  * Enforce specific import styles per module.
4332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
4342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
4333
4343
  */
4334
4344
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4335
4345
  /**
4336
4346
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
4347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
4338
4348
  */
4339
4349
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4340
4350
  /**
4341
4351
  * Enforce specifying rules to disable in `eslint-disable` comments.
4342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
4352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
4343
4353
  */
4344
4354
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4345
4355
  /**
4346
4356
  * Disallow anonymous functions and classes as the default export.
4347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
4357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
4348
4358
  */
4349
4359
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4350
4360
  /**
4351
4361
  * Prevent passing a function reference directly to iterator methods.
4352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
4362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
4353
4363
  */
4354
4364
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4355
4365
  /**
4356
4366
  * Prefer `for…of` over the `forEach` method.
4357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
4367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
4358
4368
  */
4359
4369
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4360
4370
  /**
4361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
4371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
4362
4372
  * @deprecated
4363
4373
  */
4364
4374
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
4365
4375
  /**
4366
4376
  * Disallow using the `this` argument in array methods.
4367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
4377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
4368
4378
  */
4369
4379
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4370
4380
  /**
4371
4381
  * Enforce combining multiple `Array#push()` into one call.
4372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
4382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
4373
4383
  */
4374
4384
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4375
4385
  /**
4376
4386
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
4387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
4378
4388
  */
4379
4389
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4380
4390
  /**
4381
4391
  * Disallow member access from await expression.
4382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
4392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
4383
4393
  */
4384
4394
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4385
4395
  /**
4386
4396
  * Disallow using `await` in `Promise` method parameters.
4387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
4397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
4388
4398
  */
4389
4399
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4390
4400
  /**
4391
4401
  * Do not use leading/trailing space between `console.log` parameters.
4392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
4402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
4393
4403
  */
4394
4404
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4395
4405
  /**
4396
4406
  * Do not use `document.cookie` directly.
4397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
4407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
4398
4408
  */
4399
4409
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4400
4410
  /**
4401
4411
  * Disallow empty files.
4402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
4412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
4403
4413
  */
4404
4414
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4405
4415
  /**
4406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
4416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
4407
4417
  * @deprecated
4408
4418
  */
4409
4419
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
4410
4420
  /**
4411
4421
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
4422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
4413
4423
  */
4414
4424
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
4415
4425
  /**
4416
4426
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
4427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
4418
4428
  */
4419
4429
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
4420
4430
  /**
4421
4431
  * Require `Array.isArray()` instead of `instanceof Array`.
4422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
4432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
4423
4433
  */
4424
4434
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
4425
4435
  /**
4426
4436
  * Disallow invalid options in `fetch()` and `new Request()`.
4427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
4437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
4428
4438
  */
4429
4439
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
4430
4440
  /**
4431
4441
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
4442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
4433
4443
  */
4434
4444
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
4435
4445
  /**
4436
4446
  * Disallow identifiers starting with `new` or `class`.
4437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
4447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
4438
4448
  */
4439
4449
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
4440
4450
  /**
4441
4451
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
4452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
4443
4453
  */
4444
4454
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
4445
4455
  /**
4446
4456
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
4457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
4448
4458
  */
4449
4459
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
4450
4460
  /**
4451
4461
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
4462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
4453
4463
  */
4454
4464
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
4455
4465
  /**
4456
4466
  * Disallow negated conditions.
4457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
4467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
4458
4468
  */
4459
4469
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
4460
4470
  /**
4461
4471
  * Disallow negated expression in equality check.
4462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
4472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
4463
4473
  */
4464
4474
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
4465
4475
  /**
4466
4476
  * Disallow nested ternary expressions.
4467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
4477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
4468
4478
  */
4469
4479
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
4470
4480
  /**
4471
4481
  * Disallow `new Array()`.
4472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
4482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
4473
4483
  */
4474
4484
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
4475
4485
  /**
4476
4486
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
4487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
4478
4488
  */
4479
4489
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
4480
4490
  /**
4481
4491
  * Disallow the use of the `null` literal.
4482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
4492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
4483
4493
  */
4484
4494
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
4485
4495
  /**
4486
4496
  * Disallow the use of objects as default parameters.
4487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
4497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
4488
4498
  */
4489
4499
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
4490
4500
  /**
4491
4501
  * Disallow `process.exit()`.
4492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
4502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
4493
4503
  */
4494
4504
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
4495
4505
  /**
4496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
4506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
4497
4507
  * @deprecated
4498
4508
  */
4499
4509
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
4500
4510
  /**
4501
4511
  * Disallow passing single-element arrays to `Promise` methods.
4502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
4512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
4503
4513
  */
4504
4514
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
4505
4515
  /**
4506
4516
  * Disallow classes that only have static members.
4507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
4517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
4508
4518
  */
4509
4519
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
4510
4520
  /**
4511
4521
  * Disallow `then` property.
4512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
4522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
4513
4523
  */
4514
4524
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
4515
4525
  /**
4516
4526
  * Disallow assigning `this` to a variable.
4517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
4527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
4518
4528
  */
4519
4529
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
4520
4530
  /**
4521
4531
  * Disallow comparing `undefined` using `typeof`.
4522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
4532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
4523
4533
  */
4524
4534
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
4525
4535
  /**
4526
4536
  * Disallow awaiting non-promise values.
4527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
4537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
4528
4538
  */
4529
4539
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
4530
4540
  /**
4531
4541
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
4542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
4533
4543
  */
4534
4544
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
4535
4545
  /**
4536
4546
  * Disallow unreadable array destructuring.
4537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
4547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
4538
4548
  */
4539
4549
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
4540
4550
  /**
4541
4551
  * Disallow unreadable IIFEs.
4542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
4552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
4543
4553
  */
4544
4554
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
4545
4555
  /**
4546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
4556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
4547
4557
  * @deprecated
4548
4558
  */
4549
4559
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
4550
4560
  /**
4551
4561
  * Disallow unused object properties.
4552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
4562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
4553
4563
  */
4554
4564
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
4555
4565
  /**
4556
4566
  * Disallow useless fallback when spreading in object literals.
4557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
4567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
4558
4568
  */
4559
4569
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
4560
4570
  /**
4561
4571
  * Disallow useless array length check.
4562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
4572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
4563
4573
  */
4564
4574
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
4565
4575
  /**
4566
4576
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
4577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
4568
4578
  */
4569
4579
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
4570
4580
  /**
4571
4581
  * Disallow unnecessary spread.
4572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
4582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
4573
4583
  */
4574
4584
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
4575
4585
  /**
4576
4586
  * Disallow useless case in switch statements.
4577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
4587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
4578
4588
  */
4579
4589
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
4580
4590
  /**
4581
4591
  * Disallow useless `undefined`.
4582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
4592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
4583
4593
  */
4584
4594
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
4585
4595
  /**
4586
4596
  * Disallow number literals with zero fractions or dangling dots.
4587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
4597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
4588
4598
  */
4589
4599
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
4590
4600
  /**
4591
4601
  * Enforce proper case for numeric literals.
4592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
4602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
4593
4603
  */
4594
4604
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
4595
4605
  /**
4596
4606
  * Enforce the style of numeric separators by correctly grouping digits.
4597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
4607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
4598
4608
  */
4599
4609
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
4600
4610
  /**
4601
4611
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
4612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
4603
4613
  */
4604
4614
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
4605
4615
  /**
4606
4616
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
4617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
4608
4618
  */
4609
4619
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
4610
4620
  /**
4611
4621
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
4622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
4613
4623
  */
4614
4624
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
4615
4625
  /**
4616
4626
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
4627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
4618
4628
  */
4619
4629
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
4620
4630
  /**
4621
4631
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
4632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
4623
4633
  */
4624
4634
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
4625
4635
  /**
4626
4636
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
4637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
4628
4638
  */
4629
4639
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
4630
4640
  /**
4631
4641
  * Prefer `.at()` method for index access and `String#charAt()`.
4632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
4642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
4633
4643
  */
4634
4644
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
4635
4645
  /**
4636
4646
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
4647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
4638
4648
  */
4639
4649
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
4640
4650
  /**
4641
4651
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
4652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
4643
4653
  */
4644
4654
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
4645
4655
  /**
4646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
4656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
4647
4657
  * @deprecated
4648
4658
  */
4649
4659
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
4650
4660
  /**
4651
4661
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
4662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
4653
4663
  */
4654
4664
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
4655
4665
  /**
4656
4666
  * Prefer default parameters over reassignment.
4657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
4667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
4658
4668
  */
4659
4669
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
4660
4670
  /**
4661
4671
  * Prefer `Node#append()` over `Node#appendChild()`.
4662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
4672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
4663
4673
  */
4664
4674
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
4665
4675
  /**
4666
4676
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
4677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
4668
4678
  */
4669
4679
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
4670
4680
  /**
4671
4681
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
4682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
4673
4683
  */
4674
4684
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
4675
4685
  /**
4676
4686
  * Prefer `.textContent` over `.innerText`.
4677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
4687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
4678
4688
  */
4679
4689
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
4680
4690
  /**
4681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
4691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
4682
4692
  * @deprecated
4683
4693
  */
4684
4694
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
4685
4695
  /**
4686
4696
  * Prefer `EventTarget` over `EventEmitter`.
4687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
4697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
4688
4698
  */
4689
4699
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
4690
4700
  /**
4691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
4701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
4692
4702
  * @deprecated
4693
4703
  */
4694
4704
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
4695
4705
  /**
4696
4706
  * Prefer `export…from` when re-exporting.
4697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
4707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
4698
4708
  */
4699
4709
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
4700
4710
  /**
4701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
4711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
4702
4712
  * @deprecated
4703
4713
  */
4704
4714
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
4705
4715
  /**
4706
4716
  * Prefer `globalThis` over `window`, `self`, and `global`.
4707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
4717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
4708
4718
  */
4709
4719
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
4710
4720
  /**
4711
4721
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
4722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
4713
4723
  */
4714
4724
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
4715
4725
  /**
4716
4726
  * Prefer reading a JSON file as a buffer.
4717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
4727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
4718
4728
  */
4719
4729
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
4720
4730
  /**
4721
4731
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
4732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
4723
4733
  */
4724
4734
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
4725
4735
  /**
4726
4736
  * Prefer using a logical operator over a ternary.
4727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
4728
4738
  */
4729
4739
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
4730
4740
  /**
4731
4741
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
4742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
4733
4743
  */
4734
4744
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
4735
4745
  /**
4736
4746
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
4747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
4738
4748
  */
4739
4749
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
4740
4750
  /**
4741
4751
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
4752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
4743
4753
  */
4744
4754
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
4745
4755
  /**
4746
4756
  * Prefer modern `Math` APIs over legacy patterns.
4747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
4757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
4748
4758
  */
4749
4759
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
4750
4760
  /**
4751
4761
  * Prefer JavaScript modules (ESM) over CommonJS.
4752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
4762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
4753
4763
  */
4754
4764
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
4755
4765
  /**
4756
4766
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
4767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
4758
4768
  */
4759
4769
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
4760
4770
  /**
4761
4771
  * Prefer negative index over `.length - index` when possible.
4762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
4772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
4763
4773
  */
4764
4774
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
4765
4775
  /**
4766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
4776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
4767
4777
  * @deprecated
4768
4778
  */
4769
4779
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
4770
4780
  /**
4771
4781
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
4782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
4773
4783
  */
4774
4784
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
4775
4785
  /**
4776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
4777
4787
  * @deprecated
4778
4788
  */
4779
4789
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
4780
4790
  /**
4781
4791
  * Prefer `Number` static properties over global ones.
4782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
4792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
4783
4793
  */
4784
4794
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
4785
4795
  /**
4786
4796
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
4797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
4788
4798
  */
4789
4799
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
4790
4800
  /**
4791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
4801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
4792
4802
  * @deprecated
4793
4803
  */
4794
4804
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
4795
4805
  /**
4796
4806
  * Prefer omitting the `catch` binding parameter.
4797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
4807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
4798
4808
  */
4799
4809
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
4800
4810
  /**
4801
4811
  * Prefer borrowing methods from the prototype instead of the instance.
4802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
4812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
4803
4813
  */
4804
4814
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
4805
4815
  /**
4806
4816
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
4817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
4808
4818
  */
4809
4819
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
4810
4820
  /**
4811
4821
  * Prefer `Reflect.apply()` over `Function#apply()`.
4812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
4822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
4813
4823
  */
4814
4824
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
4815
4825
  /**
4816
4826
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
4827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
4818
4828
  */
4819
4829
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
4820
4830
  /**
4821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
4831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
4822
4832
  * @deprecated
4823
4833
  */
4824
4834
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
4825
4835
  /**
4826
4836
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
4837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
4828
4838
  */
4829
4839
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
4830
4840
  /**
4831
4841
  * Prefer using `Set#size` instead of `Array#length`.
4832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
4842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
4833
4843
  */
4834
4844
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
4835
4845
  /**
4836
4846
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
4847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
4838
4848
  */
4839
4849
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
4840
4850
  /**
4841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
4851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
4842
4852
  * @deprecated
4843
4853
  */
4844
4854
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
4845
4855
  /**
4846
4856
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
4857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
4848
4858
  */
4849
4859
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
4850
4860
  /**
4851
4861
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
4862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
4853
4863
  */
4854
4864
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
4855
4865
  /**
4856
4866
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
4867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
4858
4868
  */
4859
4869
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
4860
4870
  /**
4861
4871
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
4872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
4863
4873
  */
4864
4874
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
4865
4875
  /**
4866
4876
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
4877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
4868
4878
  */
4869
4879
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
4870
4880
  /**
4871
4881
  * Prefer using `structuredClone` to create a deep clone.
4872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
4882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
4873
4883
  */
4874
4884
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
4875
4885
  /**
4876
4886
  * Prefer `switch` over multiple `else-if`.
4877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
4887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
4878
4888
  */
4879
4889
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
4880
4890
  /**
4881
4891
  * Prefer ternary expressions over simple `if-else` statements.
4882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
4892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
4883
4893
  */
4884
4894
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
4885
4895
  /**
4886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
4896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
4887
4897
  * @deprecated
4888
4898
  */
4889
4899
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
4890
4900
  /**
4891
4901
  * Prefer top-level await over top-level promises and async function calls.
4892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
4902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
4893
4903
  */
4894
4904
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
4895
4905
  /**
4896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
4906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
4897
4907
  * @deprecated
4898
4908
  */
4899
4909
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
4900
4910
  /**
4901
4911
  * Enforce throwing `TypeError` in type checking conditions.
4902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
4912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
4903
4913
  */
4904
4914
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
4905
4915
  /**
4906
4916
  * Prevent abbreviations.
4907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
4917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
4908
4918
  */
4909
4919
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
4910
4920
  /**
4911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
4921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
4912
4922
  * @deprecated
4913
4923
  */
4914
4924
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
4915
4925
  /**
4916
4926
  * Enforce consistent relative URL style.
4917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
4927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
4918
4928
  */
4919
4929
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
4920
4930
  /**
4921
4931
  * Enforce using the separator argument with `Array#join()`.
4922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
4932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
4923
4933
  */
4924
4934
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
4925
4935
  /**
4926
4936
  * Enforce using the digits argument with `Number#toFixed()`.
4927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
4928
4938
  */
4929
4939
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
4930
4940
  /**
4931
4941
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
4942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
4933
4943
  */
4934
4944
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
4935
4945
  /**
4936
4946
  * Enforce better string content.
4937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
4947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
4938
4948
  */
4939
4949
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
4940
4950
  /**
4941
4951
  * Enforce consistent brace style for `case` clauses.
4942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
4952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
4943
4953
  */
4944
4954
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
4945
4955
  /**
4946
4956
  * Fix whitespace-insensitive template indentation.
4947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
4957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
4948
4958
  */
4949
4959
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
4950
4960
  /**
4951
4961
  * Enforce consistent case for text encoding identifiers.
4952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
4962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
4953
4963
  */
4954
4964
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
4955
4965
  /**
4956
4966
  * Require `new` when creating an error.
4957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
4967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
4958
4968
  */
4959
4969
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
4960
4970
  /**