@favorodera/eslint-config 1.1.1 → 1.1.3

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.
Files changed (3) hide show
  1. package/dist/index.d.mts +419 -373
  2. package/dist/index.mjs +1 -1547
  3. package/package.json +15 -16
package/dist/index.d.mts CHANGED
@@ -489,6 +489,10 @@ interface RuleOptions {
489
489
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
490
490
  */
491
491
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
492
+ /**
493
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
494
+ */
495
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
492
496
  /**
493
497
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
494
498
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -1854,7 +1858,7 @@ interface RuleOptions {
1854
1858
  * Disallow unmodified loop conditions
1855
1859
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
1856
1860
  */
1857
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
1861
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
1858
1862
  /**
1859
1863
  * Disallow ternary operators when simpler alternatives exist
1860
1864
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -2406,6 +2410,11 @@ interface RuleOptions {
2406
2410
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
2407
2411
  */
2408
2412
  'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
2413
+ /**
2414
+ * Require blank lines around multi-line entries in `pnpm-workspace.yaml`, and disallow them between single-line entries
2415
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-blank-lines.test.ts
2416
+ */
2417
+ 'pnpm/yaml-blank-lines'?: Linter.RuleEntry<[]>;
2409
2418
  /**
2410
2419
  * Enforce settings in `pnpm-workspace.yaml`
2411
2420
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
@@ -4307,1740 +4316,1740 @@ interface RuleOptions {
4307
4316
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
4308
4317
  /**
4309
4318
  * Prefer better DOM traversal APIs.
4310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
4311
4320
  */
4312
4321
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
4313
4322
  /**
4314
4323
  * Removed. Prefer `eslint-plugin-regexp`
4315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4316
4325
  * @deprecated
4317
4326
  */
4318
4327
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
4319
4328
  /**
4320
4329
  * Enforce a specific parameter name in catch clauses.
4321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
4330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
4322
4331
  */
4323
4332
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4324
4333
  /**
4325
4334
  * Enforce consistent class references in static methods.
4326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
4335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
4327
4336
  */
4328
4337
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
4329
4338
  /**
4330
4339
  * Enforce better comment content.
4331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
4340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
4332
4341
  */
4333
4342
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
4334
4343
  /**
4335
4344
  * Enforce a consistent return style for multiline arrow function bodies.
4336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
4345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
4337
4346
  */
4338
4347
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
4339
4348
  /**
4340
4349
  * Enforce consistent assertion style with `node:assert`.
4341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
4350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
4342
4351
  */
4343
4352
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4344
4353
  /**
4345
4354
  * Enforce consistent naming for boolean names.
4346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
4355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
4347
4356
  */
4348
4357
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
4349
4358
  /**
4350
4359
  * Enforce consistent class member order.
4351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
4360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
4352
4361
  */
4353
4362
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
4354
4363
  /**
4355
4364
  * Enforce consistent spelling of compound words in identifiers.
4356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
4365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
4357
4366
  */
4358
4367
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
4359
4368
  /**
4360
4369
  * Enforce consistent conditional object spread style.
4361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
4370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
4362
4371
  */
4363
4372
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
4364
4373
  /**
4365
4374
  * Prefer passing `Date` directly to the constructor when cloning.
4366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
4375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
4367
4376
  */
4368
4377
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4369
4378
  /**
4370
4379
  * Use destructured variables over properties.
4371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
4380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
4372
4381
  */
4373
4382
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4374
4383
  /**
4375
4384
  * Prefer consistent types when spreading a ternary in an array literal.
4376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
4385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
4377
4386
  */
4378
4387
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4379
4388
  /**
4380
4389
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
4390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
4382
4391
  */
4383
4392
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4384
4393
  /**
4385
4394
  * Enforce consistent decorator position on exported classes.
4386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
4395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
4387
4396
  */
4388
4397
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
4389
4398
  /**
4390
4399
  * Move function definitions to the highest possible scope.
4391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
4400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
4392
4401
  */
4393
4402
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4394
4403
  /**
4395
4404
  * Enforce function syntax by role.
4396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
4405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
4397
4406
  */
4398
4407
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
4399
4408
  /**
4400
4409
  * Enforce consistent JSON file reads before `JSON.parse()`.
4401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
4410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
4402
4411
  */
4403
4412
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
4404
4413
  /**
4405
4414
  * Enforce consistent optional chaining for same-base member access.
4406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
4415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
4407
4416
  */
4408
4417
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
4409
4418
  /**
4410
4419
  * Enforce consistent style for escaping `${` in template literals.
4411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
4420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
4412
4421
  */
4413
4422
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
4414
4423
  /**
4415
4424
  * Enforce consistent labels on tuple type elements.
4416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
4425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
4417
4426
  */
4418
4427
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
4419
4428
  /**
4420
4429
  * Enforce correct `Error` subclassing.
4421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
4430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
4422
4431
  */
4423
4432
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4424
4433
  /**
4425
4434
  * Enforce consistent default export declarations.
4426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
4435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
4427
4436
  */
4428
4437
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
4429
4438
  /**
4430
4439
  * Enforce consistent style for DOM element dataset access.
4431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
4440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
4432
4441
  */
4433
4442
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
4434
4443
  /**
4435
4444
  * Enforce no spaces between braces.
4436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
4445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
4437
4446
  */
4438
4447
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4439
4448
  /**
4440
4449
  * Enforce passing a `message` value when creating a built-in error.
4441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
4450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
4442
4451
  */
4443
4452
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4444
4453
  /**
4445
4454
  * Require escape sequences to use uppercase or lowercase values.
4446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
4455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
4447
4456
  */
4448
4457
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4449
4458
  /**
4450
4459
  * Add expiration conditions to TODO comments.
4451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
4460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
4452
4461
  */
4453
4462
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4454
4463
  /**
4455
4464
  * Enforce explicitly comparing the `length` or `size` property of a value.
4456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
4465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
4457
4466
  */
4458
4467
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4459
4468
  /**
4460
4469
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
4461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
4470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
4462
4471
  */
4463
4472
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
4464
4473
  /**
4465
4474
  * Enforce a case style for filenames and directory names.
4466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
4475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
4467
4476
  */
4468
4477
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4469
4478
  /**
4470
4479
  * Require identifiers to match a specified regular expression.
4471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
4480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
4472
4481
  */
4473
4482
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
4474
4483
  /**
4475
4484
  * Enforce specific import styles per module.
4476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
4485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
4477
4486
  */
4478
4487
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
4479
4488
  /**
4480
4489
  * Prevent usage of variables from outside the scope of isolated functions.
4481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
4490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
4482
4491
  */
4483
4492
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4484
4493
  /**
4485
4494
  * Enforce a consistent style for optional loop sources.
4486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
4495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
4487
4496
  */
4488
4497
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
4489
4498
  /**
4490
4499
  * Require or disallow logical assignment operator shorthand
4491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
4500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
4492
4501
  */
4493
4502
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
4494
4503
  /**
4495
4504
  * Limit the depth of nested calls.
4496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
4505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
4497
4506
  */
4498
4507
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
4499
4508
  /**
4500
4509
  * Enforce replacements for variable, property, and filenames.
4501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
4510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
4502
4511
  */
4503
4512
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
4504
4513
  /**
4505
4514
  * Enforce correct use of `new` for builtin constructors.
4506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
4515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
4507
4516
  */
4508
4517
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4509
4518
  /**
4510
4519
  * Enforce specifying rules to disable in `eslint-disable` comments.
4511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
4520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
4512
4521
  */
4513
4522
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4514
4523
  /**
4515
4524
  * Disallow recursive access to `this` within getters and setters.
4516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
4525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
4517
4526
  */
4518
4527
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
4519
4528
  /**
4520
4529
  * Disallow bitwise operators where a logical operator was likely intended.
4521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
4530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
4522
4531
  */
4523
4532
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
4524
4533
  /**
4525
4534
  * Disallow anonymous functions and classes as the default export.
4526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
4535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
4527
4536
  */
4528
4537
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
4529
4538
  /**
4530
4539
  * Prevent passing a function reference directly to iterator methods.
4531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
4540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
4532
4541
  */
4533
4542
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
4534
4543
  /**
4535
4544
  * Disallow array accumulation with `Array#concat()` in loops.
4536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
4545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
4537
4546
  */
4538
4547
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
4539
4548
  /**
4540
4549
  * Disallow using reference values as `Array#fill()` values.
4541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
4550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
4542
4551
  */
4543
4552
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
4544
4553
  /**
4545
4554
  * Disallow `.fill()` after `Array.from({length: …})`.
4546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
4555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
4547
4556
  */
4548
4557
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
4549
4558
  /**
4550
4559
  * Disallow front-of-array mutation.
4551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
4560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
4552
4561
  */
4553
4562
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
4554
4563
  /**
4555
4564
  * Disallow using the `this` argument in array methods.
4556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
4565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
4557
4566
  */
4558
4567
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
4559
4568
  /**
4560
4569
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4562
4571
  * @deprecated
4563
4572
  */
4564
4573
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
4565
4574
  /**
4566
4575
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
4576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
4568
4577
  */
4569
4578
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
4570
4579
  /**
4571
4580
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
4581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
4573
4582
  */
4574
4583
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
4575
4584
  /**
4576
4585
  * Prefer `Array#toSorted()` over `Array#sort()`.
4577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
4586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
4578
4587
  */
4579
4588
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
4580
4589
  /**
4581
4590
  * Disallow sorting arrays to get the minimum or maximum value.
4582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
4591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
4583
4592
  */
4584
4593
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
4585
4594
  /**
4586
4595
  * Prefer `Array#toSpliced()` over `Array#splice()`.
4587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
4596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
4588
4597
  */
4589
4598
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
4590
4599
  /**
4591
4600
  * Disallow asterisk prefixes in documentation comments.
4592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
4601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
4593
4602
  */
4594
4603
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
4595
4604
  /**
4596
4605
  * Disallow async functions as `Promise#finally()` callbacks.
4597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
4606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
4598
4607
  */
4599
4608
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
4600
4609
  /**
4601
4610
  * Disallow member access from await expression.
4602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
4611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
4603
4612
  */
4604
4613
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
4605
4614
  /**
4606
4615
  * Disallow using `await` in `Promise` method parameters.
4607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
4616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
4608
4617
  */
4609
4618
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
4610
4619
  /**
4611
4620
  * Disallow barrel files.
4612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
4621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
4613
4622
  */
4614
4623
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
4615
4624
  /**
4616
4625
  * Disallow unnecessary `Blob` to `File` conversion.
4617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
4626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
4618
4627
  */
4619
4628
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
4620
4629
  /**
4621
4630
  * Disallow boolean-returning sort comparators.
4622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
4631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
4623
4632
  */
4624
4633
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
4625
4634
  /**
4626
4635
  * Disallow `break` and `continue` in nested loops and switches inside loops.
4627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
4636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
4628
4637
  */
4629
4638
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
4630
4639
  /**
4631
4640
  * Prefer drawing canvases directly instead of converting them to images.
4632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
4641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
4633
4642
  */
4634
4643
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
4635
4644
  /**
4636
4645
  * Disallow chained comparisons such as `a < b < c`.
4637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
4646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
4638
4647
  */
4639
4648
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
4640
4649
  /**
4641
4650
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
4642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
4651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
4643
4652
  */
4644
4653
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
4645
4654
  /**
4646
4655
  * Disallow dynamic object property existence checks.
4647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
4656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
4648
4657
  */
4649
4658
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
4650
4659
  /**
4651
4660
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
4652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
4661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
4653
4662
  */
4654
4663
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
4655
4664
  /**
4656
4665
  * Disallow confusing uses of `Array#with()`.
4657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
4666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
4658
4667
  */
4659
4668
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
4660
4669
  /**
4661
4670
  * Do not use leading/trailing space between `console.log` parameters.
4662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
4671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
4663
4672
  */
4664
4673
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
4665
4674
  /**
4666
4675
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
4667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
4676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
4668
4677
  */
4669
4678
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
4670
4679
  /**
4671
4680
  * Disallow declarations before conditional early exits when they are only used after the exit.
4672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
4681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
4673
4682
  */
4674
4683
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
4675
4684
  /**
4676
4685
  * Do not use `document.cookie` directly.
4677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
4686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
4678
4687
  */
4679
4688
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
4680
4689
  /**
4681
4690
  * Disallow two comparisons of the same operands that can be combined into one.
4682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
4691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
4683
4692
  */
4684
4693
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
4685
4694
  /**
4686
4695
  * Disallow duplicate adjacent branches in if chains.
4687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
4696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
4688
4697
  */
4689
4698
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
4690
4699
  /**
4691
4700
  * Disallow adjacent duplicate operands in logical expressions.
4692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
4701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
4693
4702
  */
4694
4703
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
4695
4704
  /**
4696
4705
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
4697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
4706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
4698
4707
  */
4699
4708
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
4700
4709
  /**
4701
4710
  * Disallow duplicate values in `Set` constructor array literals.
4702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
4711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
4703
4712
  */
4704
4713
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
4705
4714
  /**
4706
4715
  * Disallow empty files.
4707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
4716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
4708
4717
  */
4709
4718
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
4710
4719
  /**
4711
4720
  * Disallow assigning to built-in error properties.
4712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
4721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
4713
4722
  */
4714
4723
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
4715
4724
  /**
4716
4725
  * Disallow exports in scripts.
4717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
4726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
4718
4727
  */
4719
4728
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
4720
4729
  /**
4721
4730
  * Prefer `for…of` over the `forEach` method.
4722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
4731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
4723
4732
  */
4724
4733
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
4725
4734
  /**
4726
4735
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
4736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
4728
4737
  */
4729
4738
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
4730
4739
  /**
4731
4740
  * Disallow assigning properties on the global object.
4732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
4741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
4733
4742
  */
4734
4743
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
4735
4744
  /**
4736
4745
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
4737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
4746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
4738
4747
  * @deprecated
4739
4748
  */
4740
4749
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
4741
4750
  /**
4742
4751
  * Disallow immediate mutation after variable assignment.
4743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
4752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
4744
4753
  */
4745
4754
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
4746
4755
  /**
4747
4756
  * Disallow impossible comparisons against `.length` or `.size`.
4748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
4757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
4749
4758
  */
4750
4759
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
4751
4760
  /**
4752
4761
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
4753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
4762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
4754
4763
  */
4755
4764
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
4756
4765
  /**
4757
4766
  * Disallow incorrect template literal interpolation syntax.
4758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
4767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
4759
4768
  */
4760
4769
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
4761
4770
  /**
4762
4771
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4764
4773
  * @deprecated
4765
4774
  */
4766
4775
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
4767
4776
  /**
4768
4777
  * Disallow `instanceof` with built-in objects
4769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
4778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
4770
4779
  */
4771
4780
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4772
4781
  /**
4773
4782
  * Disallow calling functions and constructors with an invalid number of arguments.
4774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
4783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
4775
4784
  */
4776
4785
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
4777
4786
  /**
4778
4787
  * Disallow comparing a single character from a string to a multi-character string.
4779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
4788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
4780
4789
  */
4781
4790
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
4782
4791
  /**
4783
4792
  * Disallow invalid options in `fetch()` and `new Request()`.
4784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
4793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
4785
4794
  */
4786
4795
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
4787
4796
  /**
4788
4797
  * Disallow invalid `accept` values on file inputs.
4789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
4798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
4790
4799
  */
4791
4800
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
4792
4801
  /**
4793
4802
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
4803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
4795
4804
  */
4796
4805
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
4797
4806
  /**
4798
4807
  * Disallow invalid implementations of well-known symbol methods.
4799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
4808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
4800
4809
  */
4801
4810
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
4802
4811
  /**
4803
4812
  * Disallow identifiers starting with `new` or `class`.
4804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
4813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
4805
4814
  */
4806
4815
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4807
4816
  /**
4808
4817
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
4809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
4818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
4810
4819
  */
4811
4820
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
4812
4821
  /**
4813
4822
  * Disallow event-control method calls after the synchronous event dispatch has finished.
4814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
4823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
4815
4824
  */
4816
4825
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
4817
4826
  /**
4818
4827
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4820
4829
  * @deprecated
4821
4830
  */
4822
4831
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
4823
4832
  /**
4824
4833
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
4834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
4826
4835
  */
4827
4836
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
4828
4837
  /**
4829
4838
  * Disallow mutating a loop iterable during iteration.
4830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
4839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
4831
4840
  */
4832
4841
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
4833
4842
  /**
4834
4843
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
4844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
4836
4845
  */
4837
4846
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
4838
4847
  /**
4839
4848
  * Disallow manually wrapped comments.
4840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
4849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
4841
4850
  */
4842
4851
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
4843
4852
  /**
4844
4853
  * Disallow checking a Map key before accessing a different key.
4845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
4854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
4846
4855
  */
4847
4856
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
4848
4857
  /**
4849
4858
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
4850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
4859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
4851
4860
  */
4852
4861
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
4853
4862
  /**
4854
4863
  * Disallow references to missing local resources.
4855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
4864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
4856
4865
  */
4857
4866
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
4858
4867
  /**
4859
4868
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
4860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
4869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
4861
4870
  */
4862
4871
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
4863
4872
  /**
4864
4873
  * Disallow named usage of default import and export.
4865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
4874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
4866
4875
  */
4867
4876
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
4868
4877
  /**
4869
4878
  * Disallow negated array predicate calls.
4870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
4879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
4871
4880
  */
4872
4881
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
4873
4882
  /**
4874
4883
  * Disallow negated comparisons.
4875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
4884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
4876
4885
  */
4877
4886
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
4878
4887
  /**
4879
4888
  * Disallow negated conditions.
4880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
4889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
4881
4890
  */
4882
4891
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
4883
4892
  /**
4884
4893
  * Disallow negated expression in equality check.
4885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
4894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
4886
4895
  */
4887
4896
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
4888
4897
  /**
4889
4898
  * Disallow nested ternary expressions.
4890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
4899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
4891
4900
  */
4892
4901
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
4893
4902
  /**
4894
4903
  * Disallow `new Array()`.
4895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
4904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
4896
4905
  */
4897
4906
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
4898
4907
  /**
4899
4908
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
4909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
4901
4910
  */
4902
4911
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
4903
4912
  /**
4904
4913
  * Disallow non-function values with function-style verb prefixes.
4905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
4914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
4906
4915
  */
4907
4916
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
4908
4917
  /**
4909
4918
  * Disallow non-standard properties on built-in objects.
4910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
4919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
4911
4920
  */
4912
4921
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
4913
4922
  /**
4914
4923
  * Disallow the use of the `null` literal.
4915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
4924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
4916
4925
  */
4917
4926
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4918
4927
  /**
4919
4928
  * Disallow the use of objects as default parameters.
4920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
4929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
4921
4930
  */
4922
4931
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4923
4932
  /**
4924
4933
  * Disallow `Object` methods with `Map` or `Set`.
4925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
4934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
4926
4935
  */
4927
4936
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
4928
4937
  /**
4929
4938
  * Disallow optional chaining on undeclared variables.
4930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
4939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
4931
4940
  */
4932
4941
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
4933
4942
  /**
4934
4943
  * Disallow `process.exit()`.
4935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
4936
4945
  */
4937
4946
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4938
4947
  /**
4939
4948
  * Disallow comparisons made redundant by an equality check in the same logical AND.
4940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
4949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
4941
4950
  */
4942
4951
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
4943
4952
  /**
4944
4953
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
4945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
4946
4955
  */
4947
4956
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
4948
4957
  /**
4949
4958
  * Disallow selector syntax in DOM names.
4950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
4951
4960
  */
4952
4961
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
4953
4962
  /**
4954
4963
  * Disallow shorthand properties that override related longhand properties.
4955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
4956
4965
  */
4957
4966
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
4958
4967
  /**
4959
4968
  * Disallow passing single-element arrays to `Promise` methods.
4960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
4961
4970
  */
4962
4971
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4963
4972
  /**
4964
4973
  * Disallow classes that only have static members.
4965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
4966
4975
  */
4967
4976
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4968
4977
  /**
4969
4978
  * Prefer comparing values directly over subtracting and comparing to `0`.
4970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
4971
4980
  */
4972
4981
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
4973
4982
  /**
4974
4983
  * Disallow `then` property.
4975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
4976
4985
  */
4977
4986
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4978
4987
  /**
4979
4988
  * Disallow assigning `this` to a variable.
4980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
4981
4990
  */
4982
4991
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4983
4992
  /**
4984
4993
  * Disallow `this` outside of classes.
4985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
4986
4995
  */
4987
4996
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
4988
4997
  /**
4989
4998
  * Disallow assigning to top-level variables from inside functions.
4990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
4991
5000
  */
4992
5001
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
4993
5002
  /**
4994
5003
  * Disallow top-level side effects in exported modules.
4995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
4996
5005
  */
4997
5006
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
4998
5007
  /**
4999
5008
  * Disallow `all` as a transition property.
5000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
5001
5010
  */
5002
5011
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
5003
5012
  /**
5004
5013
  * Disallow comparing `undefined` using `typeof`.
5005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
5006
5015
  */
5007
5016
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5008
5017
  /**
5009
5018
  * Disallow referencing methods without calling them.
5010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
5011
5020
  */
5012
5021
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
5013
5022
  /**
5014
5023
  * Require class members to be declared.
5015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
5016
5025
  */
5017
5026
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
5018
5027
  /**
5019
5028
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5021
5030
  */
5022
5031
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5023
5032
  /**
5024
5033
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
5025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
5026
5035
  */
5027
5036
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
5028
5037
  /**
5029
5038
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
5031
5040
  */
5032
5041
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5033
5042
  /**
5034
5043
  * Disallow awaiting non-promise values.
5035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
5036
5045
  */
5037
5046
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5038
5047
  /**
5039
5048
  * Disallow unnecessary comparisons against boolean literals.
5040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5041
5050
  */
5042
5051
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
5043
5052
  /**
5044
5053
  * Disallow unnecessary options in `fetch()` and `new Request()`.
5045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
5046
5055
  */
5047
5056
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
5048
5057
  /**
5049
5058
  * Disallow unnecessary `globalThis` references.
5050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
5051
5060
  */
5052
5061
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
5053
5062
  /**
5054
5063
  * Disallow unnecessary nested ternary expressions.
5055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
5056
5065
  */
5057
5066
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
5058
5067
  /**
5059
5068
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
5061
5070
  */
5062
5071
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5063
5072
  /**
5064
5073
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
5066
5075
  */
5067
5076
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5068
5077
  /**
5069
5078
  * Disallow `Array#splice()` when simpler alternatives exist.
5070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
5071
5080
  */
5072
5081
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
5073
5082
  /**
5074
5083
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
5075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
5076
5085
  */
5077
5086
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
5078
5087
  /**
5079
5088
  * Disallow unreadable array destructuring.
5080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
5081
5090
  */
5082
5091
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
5083
5092
  /**
5084
5093
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
5085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
5086
5095
  */
5087
5096
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
5088
5097
  /**
5089
5098
  * Disallow unreadable IIFEs.
5090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
5091
5100
  */
5092
5101
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5093
5102
  /**
5094
5103
  * Disallow unreadable `new` expressions.
5095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
5096
5105
  */
5097
5106
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
5098
5107
  /**
5099
5108
  * Disallow unreadable object destructuring.
5100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
5101
5110
  */
5102
5111
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
5103
5112
  /**
5104
5113
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
5105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
5106
5115
  */
5107
5116
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
5108
5117
  /**
5109
5118
  * Disallow unsafe DOM HTML APIs.
5110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
5111
5120
  */
5112
5121
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
5113
5122
  /**
5114
5123
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
5115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5116
5125
  */
5117
5126
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
5118
5127
  /**
5119
5128
  * Disallow unsafe values as property keys.
5120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
5121
5130
  */
5122
5131
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
5123
5132
  /**
5124
5133
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
5125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5126
5135
  */
5127
5136
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
5128
5137
  /**
5129
5138
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
5130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
5131
5140
  */
5132
5141
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
5133
5142
  /**
5134
5143
  * Disallow ignoring the return value of selected array methods.
5135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
5136
5145
  */
5137
5146
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
5138
5147
  /**
5139
5148
  * Disallow unused object properties.
5140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
5141
5150
  */
5142
5151
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5143
5152
  /**
5144
5153
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
5145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
5146
5155
  */
5147
5156
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
5148
5157
  /**
5149
5158
  * Disallow useless type coercions of values that are already of the target type.
5150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
5151
5160
  */
5152
5161
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
5153
5162
  /**
5154
5163
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
5156
5165
  */
5157
5166
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5158
5167
  /**
5159
5168
  * Disallow useless compound assignments such as `x += 0`.
5160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
5161
5170
  */
5162
5171
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
5163
5172
  /**
5164
5173
  * Disallow useless concatenation of literals.
5165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
5166
5175
  */
5167
5176
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
5168
5177
  /**
5169
5178
  * Disallow useless `continue` statements.
5170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
5171
5180
  */
5172
5181
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
5173
5182
  /**
5174
5183
  * Disallow unnecessary existence checks before deletion.
5175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
5176
5185
  */
5177
5186
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
5178
5187
  /**
5179
5188
  * Disallow `else` after a statement that exits.
5180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
5181
5190
  */
5182
5191
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
5183
5192
  /**
5184
5193
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5186
5195
  */
5187
5196
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5188
5197
  /**
5189
5198
  * Disallow useless fallback when spreading in object literals.
5190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
5191
5200
  */
5192
5201
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5193
5202
  /**
5194
5203
  * Disallow unnecessary `.toArray()` on iterators.
5195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
5196
5205
  */
5197
5206
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5198
5207
  /**
5199
5208
  * Disallow useless array length check.
5200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
5201
5210
  */
5202
5211
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5203
5212
  /**
5204
5213
  * Disallow unnecessary operands in logical expressions involving boolean literals.
5205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
5206
5215
  */
5207
5216
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
5208
5217
  /**
5209
5218
  * Disallow useless overrides of class methods.
5210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
5211
5220
  */
5212
5221
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
5213
5222
  /**
5214
5223
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
5216
5225
  */
5217
5226
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5218
5227
  /**
5219
5228
  * Disallow redundant re-exports.
5220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
5221
5230
  */
5222
5231
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
5223
5232
  /**
5224
5233
  * Disallow simple recursive function calls that can be replaced with a loop.
5225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
5226
5235
  */
5227
5236
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
5228
5237
  /**
5229
5238
  * Disallow unnecessary spread.
5230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
5231
5240
  */
5232
5241
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5233
5242
  /**
5234
5243
  * Disallow useless case in switch statements.
5235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
5236
5245
  */
5237
5246
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5238
5247
  /**
5239
5248
  * Disallow useless template literal expressions.
5240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
5241
5250
  */
5242
5251
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
5243
5252
  /**
5244
5253
  * Disallow useless `undefined`.
5245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
5246
5255
  */
5247
5256
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5248
5257
  /**
5249
5258
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
5250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
5259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
5251
5260
  */
5252
5261
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
5253
5262
  /**
5254
5263
  * Disallow number literals with zero fractions or dangling dots.
5255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
5256
5265
  */
5257
5266
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5258
5267
  /**
5259
5268
  * Enforce proper case for numeric literals.
5260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
5269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
5261
5270
  */
5262
5271
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5263
5272
  /**
5264
5273
  * Enforce the style of numeric separators by correctly grouping digits.
5265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
5274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
5266
5275
  */
5267
5276
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5268
5277
  /**
5269
5278
  * Require assignment operator shorthand where possible.
5270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
5279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
5271
5280
  */
5272
5281
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
5273
5282
  /**
5274
5283
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
5275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
5284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
5276
5285
  */
5277
5286
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
5278
5287
  /**
5279
5288
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
5280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
5289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
5281
5290
  */
5282
5291
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
5283
5292
  /**
5284
5293
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
5294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
5286
5295
  */
5287
5296
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5288
5297
  /**
5289
5298
  * Prefer an options object over a boolean in `.addEventListener()`.
5290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
5299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
5291
5300
  */
5292
5301
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
5293
5302
  /**
5294
5303
  * Prefer `AggregateError` when throwing collected errors.
5295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
5296
5305
  */
5297
5306
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
5298
5307
  /**
5299
5308
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
5309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
5301
5310
  */
5302
5311
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5303
5312
  /**
5304
5313
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
5314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
5306
5315
  */
5307
5316
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5308
5317
  /**
5309
5318
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
5310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
5311
5320
  */
5312
5321
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5313
5322
  /**
5314
5323
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
5315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
5316
5325
  */
5317
5326
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
5318
5327
  /**
5319
5328
  * Prefer using the `Array.from()` mapping function argument.
5320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
5329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
5321
5330
  */
5322
5331
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
5323
5332
  /**
5324
5333
  * Prefer `Array.from({length}, …)` when creating range arrays.
5325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
5334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
5326
5335
  */
5327
5336
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
5328
5337
  /**
5329
5338
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
5339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
5331
5340
  */
5332
5341
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5333
5342
  /**
5334
5343
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
5335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
5344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
5336
5345
  */
5337
5346
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
5338
5347
  /**
5339
5348
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
5340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
5349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
5341
5350
  */
5342
5351
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
5343
5352
  /**
5344
5353
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
5345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
5346
5355
  */
5347
5356
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
5348
5357
  /**
5349
5358
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
5359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
5351
5360
  */
5352
5361
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5353
5362
  /**
5354
5363
  * Prefer `.at()` method for index access and `String#charAt()`.
5355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
5364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
5356
5365
  */
5357
5366
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5358
5367
  /**
5359
5368
  * Prefer `await` over promise chaining.
5360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
5369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
5361
5370
  */
5362
5371
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
5363
5372
  /**
5364
5373
  * Prefer `BigInt` literals over the constructor.
5365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
5374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
5366
5375
  */
5367
5376
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5368
5377
  /**
5369
5378
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
5379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
5371
5380
  */
5372
5381
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5373
5382
  /**
5374
5383
  * Prefer block statements over IIFEs used only for scoping.
5375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
5384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
5376
5385
  */
5377
5386
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
5378
5387
  /**
5379
5388
  * Prefer directly returning boolean expressions over `if` statements.
5380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
5381
5390
  */
5382
5391
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
5383
5392
  /**
5384
5393
  * Prefer class field declarations over `this` assignments in constructors.
5385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
5394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
5386
5395
  */
5387
5396
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5388
5397
  /**
5389
5398
  * Prefer using `Element#classList.toggle()` to toggle class names.
5390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
5399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
5391
5400
  */
5392
5401
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5393
5402
  /**
5394
5403
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
5404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
5396
5405
  */
5397
5406
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5398
5407
  /**
5399
5408
  * Prefer early continues over whole-loop conditional wrapping.
5400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
5409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
5401
5410
  */
5402
5411
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
5403
5412
  /**
5404
5413
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
5414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
5406
5415
  */
5407
5416
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5408
5417
  /**
5409
5418
  * Prefer default parameters over reassignment.
5410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
5419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
5411
5420
  */
5412
5421
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5413
5422
  /**
5414
5423
  * Prefer direct iteration over default iterator method calls.
5415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
5424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
5416
5425
  */
5417
5426
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
5418
5427
  /**
5419
5428
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
5420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
5429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
5421
5430
  */
5422
5431
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
5423
5432
  /**
5424
5433
  * Prefer `Element#append()` over `Node#appendChild()`.
5425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
5434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
5426
5435
  */
5427
5436
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5428
5437
  /**
5429
5438
  * Renamed to `unicorn/dom-node-dataset`.
5430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5431
5440
  * @deprecated
5432
5441
  */
5433
5442
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5434
5443
  /**
5435
5444
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
5436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
5445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
5437
5446
  */
5438
5447
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
5439
5448
  /**
5440
5449
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
5450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
5442
5451
  */
5443
5452
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5444
5453
  /**
5445
5454
  * Prefer `.replaceChildren()` when emptying DOM children.
5446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
5455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
5447
5456
  */
5448
5457
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
5449
5458
  /**
5450
5459
  * Prefer `.textContent` over `.innerText`.
5451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
5452
5461
  */
5453
5462
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5454
5463
  /**
5455
5464
  * Prefer early returns over full-function conditional wrapping.
5456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
5457
5466
  */
5458
5467
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
5459
5468
  /**
5460
5469
  * Prefer `else if` over adjacent `if` statements with related conditions.
5461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
5462
5471
  */
5463
5472
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
5464
5473
  /**
5465
5474
  * Prefer `Error.isError()` when checking for errors.
5466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
5467
5476
  */
5468
5477
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
5469
5478
  /**
5470
5479
  * Prefer `EventTarget` over `EventEmitter`.
5471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
5472
5481
  */
5473
5482
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5474
5483
  /**
5475
5484
  * Prefer explicit viewport units.
5476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
5477
5486
  */
5478
5487
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
5479
5488
  /**
5480
5489
  * Prefer `export…from` when re-exporting.
5481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
5490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
5482
5491
  */
5483
5492
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5484
5493
  /**
5485
5494
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
5486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
5487
5496
  */
5488
5497
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
5489
5498
  /**
5490
5499
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
5491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
5500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
5492
5501
  */
5493
5502
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
5494
5503
  /**
5495
5504
  * Prefer global numeric constants over `Number` static properties.
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
5505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
5497
5506
  */
5498
5507
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
5499
5508
  /**
5500
5509
  * Prefer `globalThis` over `window`, `self`, and `global`.
5501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
5510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
5502
5511
  */
5503
5512
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5504
5513
  /**
5505
5514
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
5506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
5515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
5507
5516
  */
5508
5517
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
5509
5518
  /**
5510
5519
  * Prefer `.has()` when checking existence.
5511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
5520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
5512
5521
  */
5513
5522
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
5514
5523
  /**
5515
5524
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
5516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
5525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
5517
5526
  */
5518
5527
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
5519
5528
  /**
5520
5529
  * Prefer HTTPS over HTTP.
5521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
5530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
5522
5531
  */
5523
5532
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
5524
5533
  /**
5525
5534
  * Prefer identifiers over string literals in import and export specifiers.
5526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
5535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
5527
5536
  */
5528
5537
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
5529
5538
  /**
5530
5539
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
5540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
5532
5541
  */
5533
5542
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5534
5543
  /**
5535
5544
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
5545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
5537
5546
  */
5538
5547
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5539
5548
  /**
5540
5549
  * Prefer `.includes()` over repeated equality comparisons.
5541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
5550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
5542
5551
  */
5543
5552
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
5544
5553
  /**
5545
5554
  * Prefer passing iterables directly to constructors instead of filling empty collections.
5546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
5555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
5547
5556
  */
5548
5557
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
5549
5558
  /**
5550
5559
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
5551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
5560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
5552
5561
  */
5553
5562
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
5554
5563
  /**
5555
5564
  * Prefer iterator helpers over temporary arrays from iterators.
5556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
5565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
5557
5566
  */
5558
5567
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
5559
5568
  /**
5560
5569
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
5561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
5570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
5562
5571
  */
5563
5572
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
5564
5573
  /**
5565
5574
  * Prefer moving `.toArray()` to the end of iterator helper chains.
5566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
5575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
5567
5576
  */
5568
5577
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
5569
5578
  /**
5570
5579
  * Renamed to `unicorn/consistent-json-file-read`.
5571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
5580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
5572
5581
  * @deprecated
5573
5582
  */
5574
5583
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5575
5584
  /**
5576
5585
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
5577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
5586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
5578
5587
  */
5579
5588
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5580
5589
  /**
5581
5590
  * Prefer `location.assign()` over assigning to `location.href`.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
5591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
5583
5592
  */
5584
5593
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
5585
5594
  /**
5586
5595
  * Prefer using a logical operator over a ternary.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5588
5597
  */
5589
5598
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5590
5599
  /**
5591
5600
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
5601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
5593
5602
  */
5594
5603
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
5595
5604
  /**
5596
5605
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
5606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
5598
5607
  */
5599
5608
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
5600
5609
  /**
5601
5610
  * Prefer `Math` constants over their approximate numeric values.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
5611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
5603
5612
  */
5604
5613
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
5605
5614
  /**
5606
5615
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
5616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
5608
5617
  */
5609
5618
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5610
5619
  /**
5611
5620
  * Prefer `Math.trunc()` for truncating numbers.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
5621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
5613
5622
  */
5614
5623
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5615
5624
  /**
5616
5625
  * Prefer moving ternaries into the minimal varying part of an expression.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
5626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
5618
5627
  */
5619
5628
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
5620
5629
  /**
5621
5630
  * Prefer modern DOM APIs.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
5631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
5623
5632
  */
5624
5633
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5625
5634
  /**
5626
5635
  * Prefer modern `Math` APIs over legacy patterns.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
5636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
5628
5637
  */
5629
5638
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5630
5639
  /**
5631
5640
  * Prefer JavaScript modules (ESM) over CommonJS.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
5641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
5633
5642
  */
5634
5643
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5635
5644
  /**
5636
5645
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
5646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
5638
5647
  */
5639
5648
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5640
5649
  /**
5641
5650
  * Prefer negative index over `.length - index` when possible.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
5651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
5643
5652
  */
5644
5653
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5645
5654
  /**
5646
5655
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
5656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
5648
5657
  */
5649
5658
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5650
5659
  /**
5651
5660
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
5652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
5661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
5653
5662
  */
5654
5663
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
5655
5664
  /**
5656
5665
  * Prefer `Number.isSafeInteger()` over integer checks.
5657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
5666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
5658
5667
  */
5659
5668
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
5660
5669
  /**
5661
5670
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
5662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
5671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
5663
5672
  */
5664
5673
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5665
5674
  /**
5666
5675
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
5667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
5676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
5668
5677
  */
5669
5678
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
5670
5679
  /**
5671
5680
  * Prefer object destructuring defaults over default object literals with spread.
5672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
5681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
5673
5682
  */
5674
5683
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
5675
5684
  /**
5676
5685
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
5686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
5678
5687
  */
5679
5688
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5680
5689
  /**
5681
5690
  * Prefer the most specific `Object` iterable method.
5682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
5691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
5683
5692
  */
5684
5693
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
5685
5694
  /**
5686
5695
  * Prefer observer APIs over resize and scroll listeners with layout reads.
5687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
5696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
5688
5697
  */
5689
5698
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
5690
5699
  /**
5691
5700
  * Prefer omitting the `catch` binding parameter.
5692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
5701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
5693
5702
  */
5694
5703
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5695
5704
  /**
5696
5705
  * Prefer `Path2D` for repeatedly drawn canvas paths.
5697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
5706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
5698
5707
  */
5699
5708
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
5700
5709
  /**
5701
5710
  * Prefer private class fields over the underscore-prefix convention.
5702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
5711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
5703
5712
  */
5704
5713
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
5705
5714
  /**
5706
5715
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
5707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
5716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
5708
5717
  */
5709
5718
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
5710
5719
  /**
5711
5720
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
5712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
5721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
5713
5722
  */
5714
5723
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
5715
5724
  /**
5716
5725
  * Prefer borrowing methods from the prototype instead of the instance.
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
5726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
5718
5727
  */
5719
5728
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5720
5729
  /**
5721
5730
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
5731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
5723
5732
  */
5724
5733
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
5725
5734
  /**
5726
5735
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
5727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
5736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
5728
5737
  */
5729
5738
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
5730
5739
  /**
5731
5740
  * Prefer `Reflect.apply()` over `Function#apply()`.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
5741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
5733
5742
  */
5734
5743
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5735
5744
  /**
5736
5745
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
5746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
5738
5747
  */
5739
5748
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
5740
5749
  /**
5741
5750
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
5751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
5743
5752
  */
5744
5753
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5745
5754
  /**
5746
5755
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
5756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
5748
5757
  */
5749
5758
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
5750
5759
  /**
5751
5760
  * Prefer `:scope` when using element query selector methods.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
5761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
5753
5762
  */
5754
5763
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
5755
5764
  /**
5756
5765
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
5766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
5758
5767
  */
5759
5768
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
5760
5769
  /**
5761
5770
  * Prefer `Set` methods for Set operations.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
5771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
5763
5772
  */
5764
5773
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
5765
5774
  /**
5766
5775
  * Prefer using `Set#size` instead of `Array#length`.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
5776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
5768
5777
  */
5769
5778
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5770
5779
  /**
5771
5780
  * Prefer arrow function properties over methods with a single return.
5772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
5781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
5773
5782
  */
5774
5783
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
5775
5784
  /**
5776
5785
  * Prefer simple conditions first in logical expressions.
5777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
5786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
5778
5787
  */
5779
5788
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
5780
5789
  /**
5781
5790
  * Prefer a simple comparison function for `Array#sort()`.
5782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
5791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
5783
5792
  */
5784
5793
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
5785
5794
  /**
5786
5795
  * Prefer simplified conditions.
5787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
5796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
5788
5797
  */
5789
5798
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
5790
5799
  /**
5791
5800
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
5792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
5801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
5793
5802
  */
5794
5803
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
5795
5804
  /**
5796
5805
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
5806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
5798
5807
  */
5799
5808
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5800
5809
  /**
5801
5810
  * Prefer a single object destructuring declaration per local const source.
5802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
5811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
5803
5812
  */
5804
5813
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
5805
5814
  /**
5806
5815
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
5807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
5816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
5808
5817
  */
5809
5818
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
5810
5819
  /**
5811
5820
  * Prefer declaring variables in the smallest possible scope.
5812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
5821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
5813
5822
  */
5814
5823
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
5815
5824
  /**
5816
5825
  * Prefer `String#split()` with a limit.
5817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
5826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
5818
5827
  */
5819
5828
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
5820
5829
  /**
5821
5830
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
5822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
5831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
5823
5832
  */
5824
5833
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5825
5834
  /**
5826
5835
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
5827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
5836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
5828
5837
  */
5829
5838
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
5830
5839
  /**
5831
5840
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
5832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
5841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
5833
5842
  */
5834
5843
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
5835
5844
  /**
5836
5845
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
5846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
5838
5847
  */
5839
5848
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5840
5849
  /**
5841
5850
  * Prefer `String#repeat()` for repeated whitespace.
5842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
5851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
5843
5852
  */
5844
5853
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
5845
5854
  /**
5846
5855
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
5847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
5856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
5848
5857
  */
5849
5858
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5850
5859
  /**
5851
5860
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
5861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
5853
5862
  */
5854
5863
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5855
5864
  /**
5856
5865
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
5857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
5866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
5858
5867
  */
5859
5868
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5860
5869
  /**
5861
5870
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
5871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
5863
5872
  */
5864
5873
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5865
5874
  /**
5866
5875
  * Prefer using `structuredClone` to create a deep clone.
5867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
5876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
5868
5877
  */
5869
5878
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5870
5879
  /**
5871
5880
  * Prefer `switch` over multiple `else-if`.
5872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
5881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
5873
5882
  */
5874
5883
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5875
5884
  /**
5876
5885
  * Prefer `Temporal` over `Date`.
5877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
5886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
5878
5887
  */
5879
5888
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
5880
5889
  /**
5881
5890
  * Prefer ternary expressions over simple `if` statements that return or assign values.
5882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
5891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
5883
5892
  */
5884
5893
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5885
5894
  /**
5886
5895
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
5887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
5896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
5888
5897
  */
5889
5898
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
5890
5899
  /**
5891
5900
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
5892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
5901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
5893
5902
  */
5894
5903
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
5895
5904
  /**
5896
5905
  * Prefer top-level await over top-level promises and async function calls.
5897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
5906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
5898
5907
  */
5899
5908
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5900
5909
  /**
5901
5910
  * Enforce throwing `TypeError` in type checking conditions.
5902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
5911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
5903
5912
  */
5904
5913
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5905
5914
  /**
5906
5915
  * Require type literals to be last in union types.
5907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
5916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
5908
5917
  */
5909
5918
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
5910
5919
  /**
5911
5920
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
5912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
5921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
5913
5922
  */
5914
5923
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
5915
5924
  /**
5916
5925
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
5917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
5926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
5918
5927
  */
5919
5928
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
5920
5929
  /**
5921
5930
  * Prefer Unicode code point escapes over legacy escape sequences.
5922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
5931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
5923
5932
  */
5924
5933
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
5925
5934
  /**
5926
5935
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
5927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
5936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
5928
5937
  */
5929
5938
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
5930
5939
  /**
5931
5940
  * Prefer `URL#href` over stringifying a `URL`.
5932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
5941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
5933
5942
  */
5934
5943
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
5935
5944
  /**
5936
5945
  * Prefer `URLSearchParams` over manually splitting query strings.
5937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
5946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
5938
5947
  */
5939
5948
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
5940
5949
  /**
5941
5950
  * Prefer putting the condition in the while statement.
5942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
5951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
5943
5952
  */
5944
5953
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
5945
5954
  /**
5946
5955
  * Renamed to `unicorn/name-replacements`.
5947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
5956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
5948
5957
  * @deprecated
5949
5958
  */
5950
5959
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
5951
5960
  /**
5952
5961
  * Enforce consistent relative URL style.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
5962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
5954
5963
  */
5955
5964
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5956
5965
  /**
5957
5966
  * Enforce using the separator argument with `Array#join()`.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
5967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
5959
5968
  */
5960
5969
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5961
5970
  /**
5962
5971
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
5972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
5964
5973
  */
5965
5974
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
5966
5975
  /**
5967
5976
  * Require `CSS.escape()` for interpolated values in CSS selectors.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
5977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
5969
5978
  */
5970
5979
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
5971
5980
  /**
5972
5981
  * Require configured YAML frontmatter fields.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
5982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
5974
5983
  */
5975
5984
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
5976
5985
  /**
5977
5986
  * Require non-empty module attributes for imports and exports
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
5987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
5979
5988
  */
5980
5989
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5981
5990
  /**
5982
5991
  * Require non-empty specifier list in import and export statements.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
5992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
5984
5993
  */
5985
5994
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5986
5995
  /**
5987
5996
  * Enforce using the digits argument with `Number#toFixed()`.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5989
5998
  */
5990
5999
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5991
6000
  /**
5992
6001
  * Require passive event listeners for high-frequency events.
5993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
6002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
5994
6003
  */
5995
6004
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
5996
6005
  /**
5997
6006
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
6007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
5999
6008
  */
6000
6009
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6001
6010
  /**
6002
6011
  * Require boolean-returning Proxy traps to return booleans.
6003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
6012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
6004
6013
  */
6005
6014
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
6006
6015
  /**
6007
6016
  * Enforce a consistent style for single-line block comments.
6008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
6017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
6009
6018
  */
6010
6019
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
6011
6020
  /**
6012
6021
  * Enforce better string content.
6013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
6022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
6014
6023
  */
6015
6024
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6016
6025
  /**
6017
6026
  * Enforce consistent brace style for `case` clauses.
6018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
6027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
6019
6028
  */
6020
6029
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6021
6030
  /**
6022
6031
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
6032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
6024
6033
  */
6025
6034
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6026
6035
  /**
6027
6036
  * Fix whitespace-insensitive template indentation.
6028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
6037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
6029
6038
  */
6030
6039
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6031
6040
  /**
6032
6041
  * Enforce consistent case for text encoding identifiers.
6033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
6042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
6034
6043
  */
6035
6044
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6036
6045
  /**
6037
6046
  * Require `new` when creating an error.
6038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
6047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
6039
6048
  */
6040
6049
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6041
6050
  /**
6042
6051
  * Limit the complexity of `try` blocks.
6043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
6052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
6044
6053
  */
6045
6054
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6046
6055
  /**
@@ -7951,12 +7960,16 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
7951
7960
  // ----- jsdoc/check-param-names -----
7952
7961
  type JsdocCheckParamNames = [] | [{
7953
7962
  allowExtraTrailingParamDocs?: boolean;
7963
+ badParamNames?: boolean;
7964
+ badParamOrder?: boolean;
7954
7965
  checkDestructured?: boolean;
7955
7966
  checkRestProperty?: boolean;
7956
7967
  checkTypesPattern?: string;
7957
7968
  disableExtraPropertyReporting?: boolean;
7958
7969
  disableMissingParamChecks?: boolean;
7970
+ duplicateParams?: boolean;
7959
7971
  enableFixer?: boolean;
7972
+ extraParams?: boolean;
7960
7973
  useDefaultObjectProperties?: boolean;
7961
7974
  }];
7962
7975
  // ----- jsdoc/check-property-names -----
@@ -8137,6 +8150,14 @@ type JsdocNoUndefinedTypes = [] | [{
8137
8150
  disableReporting?: boolean;
8138
8151
  markVariablesAsUsed?: boolean;
8139
8152
  }];
8153
+ // ----- jsdoc/no-unnecessary-type-assertion -----
8154
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
8155
+ checkLiteralConstAssertions?: boolean;
8156
+ enableFixer?: boolean;
8157
+ preferConstToLiteralTuples?: boolean;
8158
+ treatAnyAsRedundant?: boolean;
8159
+ typesToIgnore?: string[];
8160
+ }];
8140
8161
  // ----- jsdoc/normalize-see-links -----
8141
8162
  type JsdocNormalizeSeeLinks = [] | [{
8142
8163
  canonicalForm?: ("pipe" | "prefix");
@@ -9643,6 +9664,10 @@ type NoUnderscoreDangle = [] | [{
9643
9664
  allowInArrayDestructuring?: boolean;
9644
9665
  allowInObjectDestructuring?: boolean;
9645
9666
  }];
9667
+ // ----- no-unmodified-loop-condition -----
9668
+ type NoUnmodifiedLoopCondition = [] | [{
9669
+ checkConditionalExpressions?: boolean;
9670
+ }];
9646
9671
  // ----- no-unneeded-ternary -----
9647
9672
  type NoUnneededTernary = [] | [{
9648
9673
  defaultAssignment?: boolean;
@@ -11289,10 +11314,6 @@ type PerfectionistSortImports = {
11289
11314
  sortBy?: ("specifier" | "path");
11290
11315
  })[];
11291
11316
  newlinesBetween?: ("ignore" | number);
11292
- tsconfig?: {
11293
- rootDir: string;
11294
- filename?: string;
11295
- };
11296
11317
  maxLineLength?: number;
11297
11318
  sortSideEffects?: boolean;
11298
11319
  environment?: ("node" | "bun");
@@ -11327,6 +11348,10 @@ type PerfectionistSortImports = {
11327
11348
  pattern: string;
11328
11349
  flags?: string;
11329
11350
  } | string));
11351
+ tsconfig?: {
11352
+ rootDir: string;
11353
+ filename?: string;
11354
+ };
11330
11355
  }[];
11331
11356
  // ----- perfectionist/sort-interfaces -----
11332
11357
  type PerfectionistSortInterfaces = {
@@ -11911,6 +11936,7 @@ type PerfectionistSortModules = [] | [{
11911
11936
  order?: ("asc" | "desc");
11912
11937
  })[];
11913
11938
  newlinesBetween?: ("ignore" | number);
11939
+ additionalModuleBlockTypes?: string[];
11914
11940
  useExperimentalDependencyDetection?: boolean;
11915
11941
  newlinesBetweenOverloadSignatures?: ("ignore" | number);
11916
11942
  partitionByComment?: (boolean | (({
@@ -11936,6 +11962,10 @@ type PerfectionistSortModules = [] | [{
11936
11962
  } | string)));
11937
11963
  });
11938
11964
  partitionByNewLine?: boolean;
11965
+ tsconfig?: {
11966
+ rootDir: string;
11967
+ filename?: string;
11968
+ };
11939
11969
  }];
11940
11970
  // ----- perfectionist/sort-named-exports -----
11941
11971
  type PerfectionistSortNamedExports = {
@@ -12464,6 +12494,13 @@ type PerfectionistSortObjects = {
12464
12494
  partitionByComputedKey?: boolean;
12465
12495
  styledComponents?: boolean;
12466
12496
  useExperimentalDependencyDetection?: boolean;
12497
+ ignoreCallbackDependenciesPatterns?: (({
12498
+ pattern: string;
12499
+ flags?: string;
12500
+ } | string)[] | ({
12501
+ pattern: string;
12502
+ flags?: string;
12503
+ } | string));
12467
12504
  partitionByComment?: (boolean | (({
12468
12505
  pattern: string;
12469
12506
  flags?: string;
@@ -12799,6 +12836,13 @@ type PerfectionistSortVariableDeclarations = {
12799
12836
  matchesAstSelector?: string;
12800
12837
  };
12801
12838
  useExperimentalDependencyDetection?: boolean;
12839
+ ignoreCallbackDependenciesPatterns?: (({
12840
+ pattern: string;
12841
+ flags?: string;
12842
+ } | string)[] | ({
12843
+ pattern: string;
12844
+ flags?: string;
12845
+ } | string));
12802
12846
  partitionByComment?: (boolean | (({
12803
12847
  pattern: string;
12804
12848
  flags?: string;
@@ -17932,7 +17976,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
17932
17976
  }];
17933
17977
  // ----- ts/no-misused-promises -----
17934
17978
  type TsNoMisusedPromises = [] | [{
17935
- checksConditionals?: boolean;
17979
+ checksConditionals?: (boolean | {
17980
+ flagUnions?: ("all" | "strict" | "none");
17981
+ });
17936
17982
  checksSpreads?: boolean;
17937
17983
  checksVoidReturn?: (boolean | {
17938
17984
  arguments?: boolean;
@@ -20636,44 +20682,44 @@ interface ConfigOptions {
20636
20682
  * @param options Configuration options for enabling/disabling or configuring specific rule sets.
20637
20683
  * @returns A flat config composer instance that can be exported directly or further modified.
20638
20684
  */
20639
- declare function factory(options?: ConfigOptions): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
20685
+ export declare function factory(options?: ConfigOptions): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
20640
20686
  //#endregion
20641
20687
  //#region src/globs.d.ts
20642
20688
  /** Glob pattern for matching JavaScript files */
20643
- declare const jsGlob = "**/*.{js,cjs,mjs}";
20689
+ export declare const jsGlob = "**/*.{js,cjs,mjs}";
20644
20690
  /** Glob pattern for matching TypeScript files */
20645
- declare const tsGlob = "**/*.{ts,cts,mts}";
20691
+ export declare const tsGlob = "**/*.{ts,cts,mts}";
20646
20692
  /** Glob pattern for matching Vue single-file components */
20647
- declare const vueGlob = "**/*.vue";
20693
+ export declare const vueGlob = "**/*.vue";
20648
20694
  /** Glob pattern for matching Markdown files */
20649
- declare const mdGlob = "**/*.md";
20695
+ export declare const mdGlob = "**/*.md";
20650
20696
  /** Glob pattern for matching virtual files extracted from Markdown */
20651
- declare const mdInMdGlob = "**/*.md/*.md";
20697
+ export declare const mdInMdGlob = "**/*.md/*.md";
20652
20698
  /** Glob pattern for matching code blocks embedded in Markdown files */
20653
- declare const codeInMdGlob = "**/*.md/**/*.{js,cjs,mjs,ts,cts,mts,vue}";
20699
+ export declare const codeInMdGlob = "**/*.md/**/*.{js,cjs,mjs,ts,cts,mts,vue}";
20654
20700
  /** Glob pattern for matching scripts files */
20655
- declare const scriptsGlob = "**/*.{js,cjs,mjs,ts,cts,mts}";
20701
+ export declare const scriptsGlob = "**/*.{js,cjs,mjs,ts,cts,mts}";
20656
20702
  /** Glob pattern for matching test files */
20657
- declare const testGlob = "**/*.{test,spec,bench,benchmark}.{js,cjs,mjs,ts,cts,mts}";
20703
+ export declare const testGlob = "**/*.{test,spec,bench,benchmark}.{js,cjs,mjs,ts,cts,mts}";
20658
20704
  /** Glob pattern for matching JSON files */
20659
- declare const jsonGlob = "**/*.json";
20705
+ export declare const jsonGlob = "**/*.json";
20660
20706
  /** Glob pattern for matching JSON5 files */
20661
- declare const json5Glob = "**/*.json5";
20707
+ export declare const json5Glob = "**/*.json5";
20662
20708
  /** Glob pattern for matching JSON with Comments files */
20663
- declare const jsoncGlob = "**/*.jsonc";
20709
+ export declare const jsoncGlob = "**/*.jsonc";
20664
20710
  /** Glob patterns for matching TypeScript configuration files */
20665
- declare const tsConfigGlob: string[];
20711
+ export declare const tsConfigGlob: string[];
20666
20712
  /** Glob pattern for matching YAML files */
20667
- declare const yamlGlob = "**/*.{yml,yaml}";
20713
+ export declare const yamlGlob = "**/*.{yml,yaml}";
20668
20714
  /** Glob pattern for matching pnpm-workspace.yaml file */
20669
- declare const pnpmWorkspaceGlob = "pnpm-workspace.yaml";
20715
+ export declare const pnpmWorkspaceGlob = "pnpm-workspace.yaml";
20670
20716
  /** Glob pattern for matching package.json files */
20671
- declare const packageJsonGlob = "**/package.json";
20717
+ export declare const packageJsonGlob = "**/package.json";
20672
20718
  /**
20673
20719
  * Common glob patterns for files and directories that should be ignored by ESLint.
20674
20720
  * Includes node_modules, build outputs, lock files, temporary files, and tool-specific caches.
20675
20721
  */
20676
- declare const ignoresGlob: string[];
20722
+ export declare const ignoresGlob: string[];
20677
20723
  //#endregion
20678
20724
  //#region src/utils.d.ts
20679
20725
  /**
@@ -20681,7 +20727,7 @@ declare const ignoresGlob: string[];
20681
20727
  * @param configArrays Rest parameter representing multiple arrays of ESLint flat config items.
20682
20728
  * @returns A single object containing all the merged rules from the provided configurations.
20683
20729
  */
20684
- declare function extractRules(...configArrays: Array<Array<{
20730
+ export declare function extractRules(...configArrays: Array<Array<{
20685
20731
  rules?: Record<string, unknown>;
20686
20732
  }>>): Record<string, unknown>;
20687
20733
  /**
@@ -20694,7 +20740,7 @@ declare function extractRules(...configArrays: Array<Array<{
20694
20740
  * @param module A module or a promise that resolves to one.
20695
20741
  * @returns The `.default` export if it exists, otherwise the module itself.
20696
20742
  */
20697
- declare function importModule<TModule>(module: Awaitable<TModule>): Promise<TModule extends {
20743
+ export declare function importModule<TModule>(module: Awaitable<TModule>): Promise<TModule extends {
20698
20744
  default: infer TModuleDefault;
20699
20745
  } ? TModuleDefault : TModule>;
20700
20746
  /**
@@ -20705,6 +20751,6 @@ declare function importModule<TModule>(module: Awaitable<TModule>): Promise<TMod
20705
20751
  * @param keys An array of keys to omit from the target object.
20706
20752
  * @returns A new object that contains all properties of the target object except for the specified keys.
20707
20753
  */
20708
- declare function omit<TTarget extends object, TTargetKeys extends keyof TTarget>(target: TTarget, keys: Array<TTargetKeys>): Omit<TTarget, TTargetKeys>;
20754
+ export declare function omit<TTarget extends object, TTargetKeys extends keyof TTarget>(target: TTarget, keys: Array<TTargetKeys>): Omit<TTarget, TTargetKeys>;
20709
20755
  //#endregion
20710
- export { type ConfigNames, type ConfigOptions, type TypedFlatConfigItem, codeInMdGlob, extractRules, factory, ignoresGlob, importModule, jsGlob, json5Glob, jsonGlob, jsoncGlob, mdGlob, mdInMdGlob, omit, packageJsonGlob, pnpmWorkspaceGlob, scriptsGlob, testGlob, tsConfigGlob, tsGlob, vueGlob, yamlGlob };
20756
+ export type { ConfigNames, ConfigOptions, TypedFlatConfigItem };