@w5s/eslint-config 3.27.0 → 3.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3317,7 +3317,7 @@ interface RuleOptions$8 {
3317
3317
  */
3318
3318
  'node/no-new-require'?: Linter.RuleEntry<[]>;
3319
3319
  /**
3320
- * disallow string concatenation with `__dirname` and `__filename`
3320
+ * disallow string concatenation with `__dirname`, `__filename`, and `import.meta` paths
3321
3321
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
3322
3322
  */
3323
3323
  'node/no-path-concat'?: Linter.RuleEntry<[]>;
@@ -3426,11 +3426,21 @@ interface RuleOptions$8 {
3426
3426
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
3427
3427
  */
3428
3428
  'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>;
3429
+ /**
3430
+ * enforce using `node:assert/strict` instead of `node:assert`.
3431
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
3432
+ */
3433
+ 'node/prefer-import/assert-strict'?: Linter.RuleEntry<[]>;
3429
3434
  /**
3430
3435
  * enforce using the `node:` protocol when importing Node.js builtin modules.
3431
3436
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
3432
3437
  */
3433
3438
  'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>;
3439
+ /**
3440
+ * enforce using `process.getBuiltinModule()` to load Node.js built-in modules
3441
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
3442
+ */
3443
+ 'node/prefer-process-get-builtin-module'?: Linter.RuleEntry<NodePreferProcessGetBuiltinModule>;
3434
3444
  /**
3435
3445
  * enforce `require("dns").promises`
3436
3446
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
@@ -3705,6 +3715,10 @@ type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
3705
3715
  type NodePreferNodeProtocol = [] | [{
3706
3716
  version?: string;
3707
3717
  }];
3718
+ // ----- node/prefer-process-get-builtin-module -----
3719
+ type NodePreferProcessGetBuiltinModule = [] | [{
3720
+ version?: string;
3721
+ }];
3708
3722
  // ----- node/shebang -----
3709
3723
  type NodeShebang = [] | [{
3710
3724
  convertPath?: ({
@@ -11371,1715 +11385,1740 @@ declare module 'eslint' {
11371
11385
  interface RuleOptions$2 {
11372
11386
  /**
11373
11387
  * Prefer better DOM traversal APIs.
11374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
11388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
11375
11389
  */
11376
11390
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
11377
11391
  /**
11378
11392
  * Removed. Prefer `eslint-plugin-regexp`
11379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
11393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
11380
11394
  * @deprecated
11381
11395
  */
11382
11396
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
11383
11397
  /**
11384
11398
  * Enforce a specific parameter name in catch clauses.
11385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
11399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
11386
11400
  */
11387
11401
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
11388
11402
  /**
11389
11403
  * Enforce consistent class references in static methods.
11390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
11404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
11391
11405
  */
11392
11406
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
11393
11407
  /**
11394
11408
  * Enforce better comment content.
11395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
11409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
11396
11410
  */
11397
11411
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
11412
+ /**
11413
+ * Enforce a consistent return style for multiline arrow function bodies.
11414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
11415
+ */
11416
+ 'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
11398
11417
  /**
11399
11418
  * Enforce consistent assertion style with `node:assert`.
11400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
11419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
11401
11420
  */
11402
11421
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
11403
11422
  /**
11404
11423
  * Enforce consistent naming for boolean names.
11405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
11424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
11406
11425
  */
11407
11426
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
11408
11427
  /**
11409
11428
  * Enforce consistent class member order.
11410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
11429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
11411
11430
  */
11412
11431
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
11413
11432
  /**
11414
11433
  * Enforce consistent spelling of compound words in identifiers.
11415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
11434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
11416
11435
  */
11417
11436
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
11418
11437
  /**
11419
11438
  * Enforce consistent conditional object spread style.
11420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
11439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
11421
11440
  */
11422
11441
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
11423
11442
  /**
11424
11443
  * Prefer passing `Date` directly to the constructor when cloning.
11425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
11444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
11426
11445
  */
11427
11446
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
11428
11447
  /**
11429
11448
  * Use destructured variables over properties.
11430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
11449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
11431
11450
  */
11432
11451
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
11433
11452
  /**
11434
11453
  * Prefer consistent types when spreading a ternary in an array literal.
11435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
11454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
11436
11455
  */
11437
11456
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
11438
11457
  /**
11439
11458
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
11440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
11459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
11441
11460
  */
11442
11461
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
11443
11462
  /**
11444
11463
  * Enforce consistent decorator position on exported classes.
11445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
11464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
11446
11465
  */
11447
11466
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
11448
11467
  /**
11449
11468
  * Move function definitions to the highest possible scope.
11450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
11469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
11451
11470
  */
11452
11471
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
11453
11472
  /**
11454
11473
  * Enforce function syntax by role.
11455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
11474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
11456
11475
  */
11457
11476
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
11458
11477
  /**
11459
11478
  * Enforce consistent JSON file reads before `JSON.parse()`.
11460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
11479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
11461
11480
  */
11462
11481
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
11463
11482
  /**
11464
11483
  * Enforce consistent optional chaining for same-base member access.
11465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
11484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
11466
11485
  */
11467
11486
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
11468
11487
  /**
11469
11488
  * Enforce consistent style for escaping `${` in template literals.
11470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
11489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
11471
11490
  */
11472
11491
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
11473
11492
  /**
11474
11493
  * Enforce consistent labels on tuple type elements.
11475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
11494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
11476
11495
  */
11477
11496
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
11478
11497
  /**
11479
11498
  * Enforce correct `Error` subclassing.
11480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
11499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
11481
11500
  */
11482
11501
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
11483
11502
  /**
11484
11503
  * Enforce consistent default export declarations.
11485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
11504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
11486
11505
  */
11487
11506
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
11488
11507
  /**
11489
11508
  * Enforce consistent style for DOM element dataset access.
11490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
11509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
11491
11510
  */
11492
11511
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
11493
11512
  /**
11494
11513
  * Enforce no spaces between braces.
11495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
11514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
11496
11515
  */
11497
11516
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
11498
11517
  /**
11499
11518
  * Enforce passing a `message` value when creating a built-in error.
11500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
11519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
11501
11520
  */
11502
11521
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
11503
11522
  /**
11504
11523
  * Require escape sequences to use uppercase or lowercase values.
11505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
11524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
11506
11525
  */
11507
11526
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
11508
11527
  /**
11509
11528
  * Add expiration conditions to TODO comments.
11510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
11529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
11511
11530
  */
11512
11531
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
11513
11532
  /**
11514
11533
  * Enforce explicitly comparing the `length` or `size` property of a value.
11515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
11534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
11516
11535
  */
11517
11536
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
11518
11537
  /**
11519
11538
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
11520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
11539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
11521
11540
  */
11522
11541
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
11523
11542
  /**
11524
11543
  * Enforce a case style for filenames and directory names.
11525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
11544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
11526
11545
  */
11527
11546
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
11528
11547
  /**
11529
11548
  * Require identifiers to match a specified regular expression.
11530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
11549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
11531
11550
  */
11532
11551
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
11533
11552
  /**
11534
11553
  * Enforce specific import styles per module.
11535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
11554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
11536
11555
  */
11537
11556
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
11538
11557
  /**
11539
11558
  * Prevent usage of variables from outside the scope of isolated functions.
11540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
11559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
11541
11560
  */
11542
11561
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
11562
+ /**
11563
+ * Enforce a consistent style for optional loop sources.
11564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
11565
+ */
11566
+ 'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
11543
11567
  /**
11544
11568
  * Require or disallow logical assignment operator shorthand
11545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
11569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
11546
11570
  */
11547
11571
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
11548
11572
  /**
11549
11573
  * Limit the depth of nested calls.
11550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
11574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
11551
11575
  */
11552
11576
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
11553
11577
  /**
11554
11578
  * Enforce replacements for variable, property, and filenames.
11555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
11579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
11556
11580
  */
11557
11581
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
11558
11582
  /**
11559
11583
  * Enforce correct use of `new` for builtin constructors.
11560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
11584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
11561
11585
  */
11562
11586
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
11563
11587
  /**
11564
11588
  * Enforce specifying rules to disable in `eslint-disable` comments.
11565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
11589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
11566
11590
  */
11567
11591
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
11568
11592
  /**
11569
11593
  * Disallow recursive access to `this` within getters and setters.
11570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
11594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
11571
11595
  */
11572
11596
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
11573
11597
  /**
11574
11598
  * Disallow bitwise operators where a logical operator was likely intended.
11575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
11599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
11576
11600
  */
11577
11601
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
11578
11602
  /**
11579
11603
  * Disallow anonymous functions and classes as the default export.
11580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
11604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
11581
11605
  */
11582
11606
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
11583
11607
  /**
11584
11608
  * Prevent passing a function reference directly to iterator methods.
11585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
11609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
11586
11610
  */
11587
11611
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
11588
11612
  /**
11589
11613
  * Disallow array accumulation with `Array#concat()` in loops.
11590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
11614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
11591
11615
  */
11592
11616
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
11593
11617
  /**
11594
11618
  * Disallow using reference values as `Array#fill()` values.
11595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
11619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
11596
11620
  */
11597
11621
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
11598
11622
  /**
11599
11623
  * Disallow `.fill()` after `Array.from({length: …})`.
11600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
11624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
11601
11625
  */
11602
11626
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
11603
11627
  /**
11604
11628
  * Disallow front-of-array mutation.
11605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
11629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
11606
11630
  */
11607
11631
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
11608
11632
  /**
11609
11633
  * Disallow using the `this` argument in array methods.
11610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
11634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
11611
11635
  */
11612
11636
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
11613
11637
  /**
11614
11638
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
11615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
11639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
11616
11640
  * @deprecated
11617
11641
  */
11618
11642
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
11619
11643
  /**
11620
11644
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
11621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
11645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
11622
11646
  */
11623
11647
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
11624
11648
  /**
11625
11649
  * Prefer `Array#toReversed()` over `Array#reverse()`.
11626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
11650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
11627
11651
  */
11628
11652
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
11629
11653
  /**
11630
11654
  * Prefer `Array#toSorted()` over `Array#sort()`.
11631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
11655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
11632
11656
  */
11633
11657
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
11634
11658
  /**
11635
11659
  * Disallow sorting arrays to get the minimum or maximum value.
11636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
11660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
11637
11661
  */
11638
11662
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
11639
11663
  /**
11640
11664
  * Prefer `Array#toSpliced()` over `Array#splice()`.
11641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
11665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
11642
11666
  */
11643
11667
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
11644
11668
  /**
11645
11669
  * Disallow asterisk prefixes in documentation comments.
11646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
11670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
11647
11671
  */
11648
11672
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
11649
11673
  /**
11650
11674
  * Disallow async functions as `Promise#finally()` callbacks.
11651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
11675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
11652
11676
  */
11653
11677
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
11654
11678
  /**
11655
11679
  * Disallow member access from await expression.
11656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
11680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
11657
11681
  */
11658
11682
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
11659
11683
  /**
11660
11684
  * Disallow using `await` in `Promise` method parameters.
11661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
11685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
11662
11686
  */
11663
11687
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
11688
+ /**
11689
+ * Disallow barrel files.
11690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
11691
+ */
11692
+ 'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
11664
11693
  /**
11665
11694
  * Disallow unnecessary `Blob` to `File` conversion.
11666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
11695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
11667
11696
  */
11668
11697
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
11669
11698
  /**
11670
11699
  * Disallow boolean-returning sort comparators.
11671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
11700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
11672
11701
  */
11673
11702
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
11674
11703
  /**
11675
11704
  * Disallow `break` and `continue` in nested loops and switches inside loops.
11676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
11705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
11677
11706
  */
11678
11707
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
11679
11708
  /**
11680
11709
  * Prefer drawing canvases directly instead of converting them to images.
11681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
11710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
11682
11711
  */
11683
11712
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
11684
11713
  /**
11685
11714
  * Disallow chained comparisons such as `a < b < c`.
11686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
11715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
11687
11716
  */
11688
11717
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
11689
11718
  /**
11690
11719
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
11691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
11720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
11692
11721
  */
11693
11722
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
11694
11723
  /**
11695
11724
  * Disallow dynamic object property existence checks.
11696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
11725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
11697
11726
  */
11698
11727
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
11699
11728
  /**
11700
11729
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
11701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
11730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
11702
11731
  */
11703
11732
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
11704
11733
  /**
11705
11734
  * Disallow confusing uses of `Array#with()`.
11706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
11735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
11707
11736
  */
11708
11737
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
11709
11738
  /**
11710
11739
  * Do not use leading/trailing space between `console.log` parameters.
11711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
11740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
11712
11741
  */
11713
11742
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
11714
11743
  /**
11715
11744
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
11716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
11745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
11717
11746
  */
11718
11747
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
11719
11748
  /**
11720
11749
  * Disallow declarations before conditional early exits when they are only used after the exit.
11721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
11750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
11722
11751
  */
11723
11752
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
11724
11753
  /**
11725
11754
  * Do not use `document.cookie` directly.
11726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
11755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
11727
11756
  */
11728
11757
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
11729
11758
  /**
11730
11759
  * Disallow two comparisons of the same operands that can be combined into one.
11731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
11760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
11732
11761
  */
11733
11762
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
11734
11763
  /**
11735
11764
  * Disallow duplicate adjacent branches in if chains.
11736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
11765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
11737
11766
  */
11738
11767
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
11739
11768
  /**
11740
11769
  * Disallow adjacent duplicate operands in logical expressions.
11741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
11770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
11742
11771
  */
11743
11772
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
11744
11773
  /**
11745
11774
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
11746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
11775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
11747
11776
  */
11748
11777
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
11749
11778
  /**
11750
11779
  * Disallow duplicate values in `Set` constructor array literals.
11751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
11780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
11752
11781
  */
11753
11782
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
11754
11783
  /**
11755
11784
  * Disallow empty files.
11756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
11785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
11757
11786
  */
11758
11787
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
11759
11788
  /**
11760
11789
  * Disallow assigning to built-in error properties.
11761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
11790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
11762
11791
  */
11763
11792
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
11764
11793
  /**
11765
11794
  * Disallow exports in scripts.
11766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
11795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
11767
11796
  */
11768
11797
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
11769
11798
  /**
11770
11799
  * Prefer `for…of` over the `forEach` method.
11771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
11800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
11772
11801
  */
11773
11802
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
11774
11803
  /**
11775
11804
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
11776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
11805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
11777
11806
  */
11778
11807
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
11779
11808
  /**
11780
11809
  * Disallow assigning properties on the global object.
11781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
11810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
11782
11811
  */
11783
11812
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
11784
11813
  /**
11785
11814
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
11786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
11815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
11787
11816
  * @deprecated
11788
11817
  */
11789
11818
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
11790
11819
  /**
11791
11820
  * Disallow immediate mutation after variable assignment.
11792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
11821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
11793
11822
  */
11794
11823
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
11795
11824
  /**
11796
11825
  * Disallow impossible comparisons against `.length` or `.size`.
11797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
11826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
11798
11827
  */
11799
11828
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
11800
11829
  /**
11801
11830
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
11802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
11831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
11803
11832
  */
11804
11833
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
11805
11834
  /**
11806
11835
  * Disallow incorrect template literal interpolation syntax.
11807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
11836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
11808
11837
  */
11809
11838
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
11810
11839
  /**
11811
11840
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
11812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
11841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
11813
11842
  * @deprecated
11814
11843
  */
11815
11844
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
11816
11845
  /**
11817
11846
  * Disallow `instanceof` with built-in objects
11818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
11847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
11819
11848
  */
11820
11849
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
11821
11850
  /**
11822
11851
  * Disallow calling functions and constructors with an invalid number of arguments.
11823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
11852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
11824
11853
  */
11825
11854
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
11826
11855
  /**
11827
11856
  * Disallow comparing a single character from a string to a multi-character string.
11828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
11857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
11829
11858
  */
11830
11859
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
11831
11860
  /**
11832
11861
  * Disallow invalid options in `fetch()` and `new Request()`.
11833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
11862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
11834
11863
  */
11835
11864
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
11836
11865
  /**
11837
11866
  * Disallow invalid `accept` values on file inputs.
11838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
11867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
11839
11868
  */
11840
11869
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
11841
11870
  /**
11842
11871
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
11843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
11872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
11844
11873
  */
11845
11874
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
11846
11875
  /**
11847
11876
  * Disallow invalid implementations of well-known symbol methods.
11848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
11877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
11849
11878
  */
11850
11879
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
11851
11880
  /**
11852
11881
  * Disallow identifiers starting with `new` or `class`.
11853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
11882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
11854
11883
  */
11855
11884
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
11856
11885
  /**
11857
11886
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
11858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
11887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
11859
11888
  */
11860
11889
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
11861
11890
  /**
11862
11891
  * Disallow event-control method calls after the synchronous event dispatch has finished.
11863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
11892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
11864
11893
  */
11865
11894
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
11866
11895
  /**
11867
11896
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
11868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
11897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
11869
11898
  * @deprecated
11870
11899
  */
11871
11900
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
11872
11901
  /**
11873
11902
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
11874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
11903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
11875
11904
  */
11876
11905
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
11877
11906
  /**
11878
11907
  * Disallow mutating a loop iterable during iteration.
11879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
11908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
11880
11909
  */
11881
11910
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
11882
11911
  /**
11883
11912
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
11884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
11913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
11885
11914
  */
11886
11915
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
11887
11916
  /**
11888
11917
  * Disallow manually wrapped comments.
11889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
11918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
11890
11919
  */
11891
11920
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
11892
11921
  /**
11893
11922
  * Disallow checking a Map key before accessing a different key.
11894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
11923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
11895
11924
  */
11896
11925
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
11897
11926
  /**
11898
11927
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
11899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
11928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
11900
11929
  */
11901
11930
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
11902
11931
  /**
11903
11932
  * Disallow references to missing local resources.
11904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
11933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
11905
11934
  */
11906
11935
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
11907
11936
  /**
11908
11937
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
11909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
11938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
11910
11939
  */
11911
11940
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
11912
11941
  /**
11913
11942
  * Disallow named usage of default import and export.
11914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
11943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
11915
11944
  */
11916
11945
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
11917
11946
  /**
11918
11947
  * Disallow negated array predicate calls.
11919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
11948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
11920
11949
  */
11921
11950
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
11922
11951
  /**
11923
11952
  * Disallow negated comparisons.
11924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
11953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
11925
11954
  */
11926
11955
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
11927
11956
  /**
11928
11957
  * Disallow negated conditions.
11929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
11958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
11930
11959
  */
11931
11960
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
11932
11961
  /**
11933
11962
  * Disallow negated expression in equality check.
11934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
11963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
11935
11964
  */
11936
11965
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
11937
11966
  /**
11938
11967
  * Disallow nested ternary expressions.
11939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
11968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
11940
11969
  */
11941
11970
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
11942
11971
  /**
11943
11972
  * Disallow `new Array()`.
11944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
11973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
11945
11974
  */
11946
11975
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
11947
11976
  /**
11948
11977
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
11949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
11978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
11950
11979
  */
11951
11980
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
11952
11981
  /**
11953
11982
  * Disallow non-function values with function-style verb prefixes.
11954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
11983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
11955
11984
  */
11956
11985
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
11957
11986
  /**
11958
11987
  * Disallow non-standard properties on built-in objects.
11959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
11988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
11960
11989
  */
11961
11990
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
11962
11991
  /**
11963
11992
  * Disallow the use of the `null` literal.
11964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
11993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
11965
11994
  */
11966
11995
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
11967
11996
  /**
11968
11997
  * Disallow the use of objects as default parameters.
11969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
11998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
11970
11999
  */
11971
12000
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
11972
12001
  /**
11973
12002
  * Disallow `Object` methods with `Map` or `Set`.
11974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
12003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
11975
12004
  */
11976
12005
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
11977
12006
  /**
11978
12007
  * Disallow optional chaining on undeclared variables.
11979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
12008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
11980
12009
  */
11981
12010
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
11982
12011
  /**
11983
12012
  * Disallow `process.exit()`.
11984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
12013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
11985
12014
  */
11986
12015
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
11987
12016
  /**
11988
12017
  * Disallow comparisons made redundant by an equality check in the same logical AND.
11989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
12018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
11990
12019
  */
11991
12020
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
11992
12021
  /**
11993
12022
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
11994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
12023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
11995
12024
  */
11996
12025
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
11997
12026
  /**
11998
12027
  * Disallow selector syntax in DOM names.
11999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
12028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
12000
12029
  */
12001
12030
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
12002
12031
  /**
12003
12032
  * Disallow shorthand properties that override related longhand properties.
12004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
12033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
12005
12034
  */
12006
12035
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
12007
12036
  /**
12008
12037
  * Disallow passing single-element arrays to `Promise` methods.
12009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
12038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
12010
12039
  */
12011
12040
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
12012
12041
  /**
12013
12042
  * Disallow classes that only have static members.
12014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
12043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
12015
12044
  */
12016
12045
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
12017
12046
  /**
12018
12047
  * Prefer comparing values directly over subtracting and comparing to `0`.
12019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
12048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
12020
12049
  */
12021
12050
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
12022
12051
  /**
12023
12052
  * Disallow `then` property.
12024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
12053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
12025
12054
  */
12026
12055
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
12027
12056
  /**
12028
12057
  * Disallow assigning `this` to a variable.
12029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
12058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
12030
12059
  */
12031
12060
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
12032
12061
  /**
12033
12062
  * Disallow `this` outside of classes.
12034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
12063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
12035
12064
  */
12036
12065
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
12037
12066
  /**
12038
12067
  * Disallow assigning to top-level variables from inside functions.
12039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
12068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
12040
12069
  */
12041
12070
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
12042
12071
  /**
12043
12072
  * Disallow top-level side effects in exported modules.
12044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
12073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
12045
12074
  */
12046
12075
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
12047
12076
  /**
12048
12077
  * Disallow `all` as a transition property.
12049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
12078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
12050
12079
  */
12051
12080
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
12052
12081
  /**
12053
12082
  * Disallow comparing `undefined` using `typeof`.
12054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
12083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
12055
12084
  */
12056
12085
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
12057
12086
  /**
12058
12087
  * Disallow referencing methods without calling them.
12059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
12088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
12060
12089
  */
12061
12090
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
12062
12091
  /**
12063
12092
  * Require class members to be declared.
12064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
12093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
12065
12094
  */
12066
12095
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
12067
12096
  /**
12068
12097
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
12069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
12098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
12070
12099
  */
12071
12100
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
12072
12101
  /**
12073
12102
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
12074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
12103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
12075
12104
  */
12076
12105
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
12077
12106
  /**
12078
12107
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
12079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
12108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
12080
12109
  */
12081
12110
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
12082
12111
  /**
12083
12112
  * Disallow awaiting non-promise values.
12084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
12113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
12085
12114
  */
12086
12115
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
12087
12116
  /**
12088
12117
  * Disallow unnecessary comparisons against boolean literals.
12089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
12118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
12090
12119
  */
12091
12120
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
12092
12121
  /**
12093
12122
  * Disallow unnecessary options in `fetch()` and `new Request()`.
12094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
12123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
12095
12124
  */
12096
12125
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
12097
12126
  /**
12098
12127
  * Disallow unnecessary `globalThis` references.
12099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
12128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
12100
12129
  */
12101
12130
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
12102
12131
  /**
12103
12132
  * Disallow unnecessary nested ternary expressions.
12104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
12133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
12105
12134
  */
12106
12135
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
12107
12136
  /**
12108
12137
  * Enforce the use of built-in methods instead of unnecessary polyfills.
12109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
12138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
12110
12139
  */
12111
12140
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
12112
12141
  /**
12113
12142
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
12114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
12143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
12115
12144
  */
12116
12145
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
12117
12146
  /**
12118
12147
  * Disallow `Array#splice()` when simpler alternatives exist.
12119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
12148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
12120
12149
  */
12121
12150
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
12122
12151
  /**
12123
12152
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
12124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
12153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
12125
12154
  */
12126
12155
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
12127
12156
  /**
12128
12157
  * Disallow unreadable array destructuring.
12129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
12158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
12130
12159
  */
12131
12160
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
12132
12161
  /**
12133
12162
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
12134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
12163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
12135
12164
  */
12136
12165
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
12137
12166
  /**
12138
12167
  * Disallow unreadable IIFEs.
12139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
12168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
12140
12169
  */
12141
12170
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
12142
12171
  /**
12143
12172
  * Disallow unreadable `new` expressions.
12144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
12173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
12145
12174
  */
12146
12175
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
12147
12176
  /**
12148
12177
  * Disallow unreadable object destructuring.
12149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
12178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
12150
12179
  */
12151
12180
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
12152
12181
  /**
12153
12182
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
12154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
12183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
12155
12184
  */
12156
12185
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
12157
12186
  /**
12158
12187
  * Disallow unsafe DOM HTML APIs.
12159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
12188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
12160
12189
  */
12161
12190
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
12162
12191
  /**
12163
12192
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
12164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
12193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
12165
12194
  */
12166
12195
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
12167
12196
  /**
12168
12197
  * Disallow unsafe values as property keys.
12169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
12198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
12170
12199
  */
12171
12200
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
12201
+ /**
12202
+ * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
12203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
12204
+ */
12205
+ 'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
12172
12206
  /**
12173
12207
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
12174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
12208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
12175
12209
  */
12176
12210
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
12177
12211
  /**
12178
12212
  * Disallow ignoring the return value of selected array methods.
12179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
12213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
12180
12214
  */
12181
12215
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
12182
12216
  /**
12183
12217
  * Disallow unused object properties.
12184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
12218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
12185
12219
  */
12186
12220
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
12187
12221
  /**
12188
12222
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
12189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
12223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
12190
12224
  */
12191
12225
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
12192
12226
  /**
12193
12227
  * Disallow useless type coercions of values that are already of the target type.
12194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
12228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
12195
12229
  */
12196
12230
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
12197
12231
  /**
12198
12232
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
12199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
12233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
12200
12234
  */
12201
12235
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
12202
12236
  /**
12203
12237
  * Disallow useless compound assignments such as `x += 0`.
12204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
12238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
12205
12239
  */
12206
12240
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
12207
12241
  /**
12208
12242
  * Disallow useless concatenation of literals.
12209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
12243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
12210
12244
  */
12211
12245
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
12212
12246
  /**
12213
12247
  * Disallow useless `continue` statements.
12214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
12248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
12215
12249
  */
12216
12250
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
12217
12251
  /**
12218
12252
  * Disallow unnecessary existence checks before deletion.
12219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
12253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
12220
12254
  */
12221
12255
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
12222
12256
  /**
12223
12257
  * Disallow `else` after a statement that exits.
12224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
12258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
12225
12259
  */
12226
12260
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
12227
12261
  /**
12228
12262
  * Disallow unnecessary `Error.captureStackTrace(…)`.
12229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
12263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
12230
12264
  */
12231
12265
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
12232
12266
  /**
12233
12267
  * Disallow useless fallback when spreading in object literals.
12234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
12268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
12235
12269
  */
12236
12270
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
12237
12271
  /**
12238
12272
  * Disallow unnecessary `.toArray()` on iterators.
12239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
12273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
12240
12274
  */
12241
12275
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
12242
12276
  /**
12243
12277
  * Disallow useless array length check.
12244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
12278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
12245
12279
  */
12246
12280
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
12247
12281
  /**
12248
12282
  * Disallow unnecessary operands in logical expressions involving boolean literals.
12249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
12283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
12250
12284
  */
12251
12285
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
12252
12286
  /**
12253
12287
  * Disallow useless overrides of class methods.
12254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
12288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
12255
12289
  */
12256
12290
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
12257
12291
  /**
12258
12292
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
12259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
12293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
12260
12294
  */
12261
12295
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
12262
12296
  /**
12263
12297
  * Disallow redundant re-exports.
12264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
12298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
12265
12299
  */
12266
12300
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
12267
12301
  /**
12268
12302
  * Disallow simple recursive function calls that can be replaced with a loop.
12269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
12303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
12270
12304
  */
12271
12305
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
12272
12306
  /**
12273
12307
  * Disallow unnecessary spread.
12274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
12308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
12275
12309
  */
12276
12310
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
12277
12311
  /**
12278
12312
  * Disallow useless case in switch statements.
12279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
12313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
12280
12314
  */
12281
12315
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
12282
12316
  /**
12283
12317
  * Disallow useless template literal expressions.
12284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
12318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
12285
12319
  */
12286
12320
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
12287
12321
  /**
12288
12322
  * Disallow useless `undefined`.
12289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
12323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
12290
12324
  */
12291
12325
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
12292
12326
  /**
12293
12327
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
12294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
12328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
12295
12329
  */
12296
12330
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
12297
12331
  /**
12298
12332
  * Disallow number literals with zero fractions or dangling dots.
12299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
12333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
12300
12334
  */
12301
12335
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
12302
12336
  /**
12303
12337
  * Enforce proper case for numeric literals.
12304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
12338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
12305
12339
  */
12306
12340
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
12307
12341
  /**
12308
12342
  * Enforce the style of numeric separators by correctly grouping digits.
12309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
12343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
12310
12344
  */
12311
12345
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
12312
12346
  /**
12313
12347
  * Require assignment operator shorthand where possible.
12314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
12348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
12315
12349
  */
12316
12350
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
12317
12351
  /**
12318
12352
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
12319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
12353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
12320
12354
  */
12321
12355
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
12322
12356
  /**
12323
12357
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
12324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
12358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
12325
12359
  */
12326
12360
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
12327
12361
  /**
12328
12362
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
12329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
12363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
12330
12364
  */
12331
12365
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
12332
12366
  /**
12333
12367
  * Prefer an options object over a boolean in `.addEventListener()`.
12334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
12368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
12335
12369
  */
12336
12370
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
12337
12371
  /**
12338
12372
  * Prefer `AggregateError` when throwing collected errors.
12339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
12373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
12340
12374
  */
12341
12375
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
12342
12376
  /**
12343
12377
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
12344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
12378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
12345
12379
  */
12346
12380
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
12347
12381
  /**
12348
12382
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
12349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
12383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
12350
12384
  */
12351
12385
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
12352
12386
  /**
12353
12387
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
12354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
12388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
12355
12389
  */
12356
12390
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
12357
12391
  /**
12358
12392
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
12359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
12393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
12360
12394
  */
12361
12395
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
12362
12396
  /**
12363
12397
  * Prefer using the `Array.from()` mapping function argument.
12364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
12398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
12365
12399
  */
12366
12400
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
12367
12401
  /**
12368
12402
  * Prefer `Array.from({length}, …)` when creating range arrays.
12369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
12403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
12370
12404
  */
12371
12405
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
12372
12406
  /**
12373
12407
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
12374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
12408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
12375
12409
  */
12376
12410
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
12377
12411
  /**
12378
12412
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
12379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
12413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
12380
12414
  */
12381
12415
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
12382
12416
  /**
12383
12417
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
12384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
12418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
12385
12419
  */
12386
12420
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
12387
12421
  /**
12388
12422
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
12389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
12423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
12390
12424
  */
12391
12425
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
12392
12426
  /**
12393
12427
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
12394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
12428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
12395
12429
  */
12396
12430
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
12397
12431
  /**
12398
12432
  * Prefer `.at()` method for index access and `String#charAt()`.
12399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
12433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
12400
12434
  */
12401
12435
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
12402
12436
  /**
12403
12437
  * Prefer `await` over promise chaining.
12404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
12438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
12405
12439
  */
12406
12440
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
12407
12441
  /**
12408
12442
  * Prefer `BigInt` literals over the constructor.
12409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
12443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
12410
12444
  */
12411
12445
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
12412
12446
  /**
12413
12447
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
12414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
12448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
12415
12449
  */
12416
12450
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
12417
12451
  /**
12418
12452
  * Prefer block statements over IIFEs used only for scoping.
12419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
12453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
12420
12454
  */
12421
12455
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
12422
12456
  /**
12423
12457
  * Prefer directly returning boolean expressions over `if` statements.
12424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
12458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
12425
12459
  */
12426
12460
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
12427
12461
  /**
12428
12462
  * Prefer class field declarations over `this` assignments in constructors.
12429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
12463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
12430
12464
  */
12431
12465
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
12432
12466
  /**
12433
12467
  * Prefer using `Element#classList.toggle()` to toggle class names.
12434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
12468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
12435
12469
  */
12436
12470
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
12437
12471
  /**
12438
12472
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
12439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
12473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
12440
12474
  */
12441
12475
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
12442
12476
  /**
12443
12477
  * Prefer early continues over whole-loop conditional wrapping.
12444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
12478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
12445
12479
  */
12446
12480
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
12447
12481
  /**
12448
12482
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
12449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
12483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
12450
12484
  */
12451
12485
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
12452
12486
  /**
12453
12487
  * Prefer default parameters over reassignment.
12454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
12488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
12455
12489
  */
12456
12490
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
12457
12491
  /**
12458
12492
  * Prefer direct iteration over default iterator method calls.
12459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
12493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
12460
12494
  */
12461
12495
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
12462
12496
  /**
12463
12497
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
12464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
12498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
12465
12499
  */
12466
12500
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
12467
12501
  /**
12468
12502
  * Prefer `Element#append()` over `Node#appendChild()`.
12469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
12503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
12470
12504
  */
12471
12505
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
12472
12506
  /**
12473
12507
  * Renamed to `unicorn/dom-node-dataset`.
12474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
12508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
12475
12509
  * @deprecated
12476
12510
  */
12477
12511
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
12478
12512
  /**
12479
12513
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
12480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
12514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
12481
12515
  */
12482
12516
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
12483
12517
  /**
12484
12518
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
12485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
12519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
12486
12520
  */
12487
12521
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
12488
12522
  /**
12489
12523
  * Prefer `.replaceChildren()` when emptying DOM children.
12490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
12524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
12491
12525
  */
12492
12526
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
12493
12527
  /**
12494
12528
  * Prefer `.textContent` over `.innerText`.
12495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
12529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
12496
12530
  */
12497
12531
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
12498
12532
  /**
12499
12533
  * Prefer early returns over full-function conditional wrapping.
12500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
12534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
12501
12535
  */
12502
12536
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
12503
12537
  /**
12504
12538
  * Prefer `else if` over adjacent `if` statements with related conditions.
12505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
12539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
12506
12540
  */
12507
12541
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
12508
12542
  /**
12509
12543
  * Prefer `Error.isError()` when checking for errors.
12510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
12544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
12511
12545
  */
12512
12546
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
12513
12547
  /**
12514
12548
  * Prefer `EventTarget` over `EventEmitter`.
12515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
12549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
12516
12550
  */
12517
12551
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
12518
12552
  /**
12519
12553
  * Prefer explicit viewport units.
12520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
12554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
12521
12555
  */
12522
12556
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
12523
12557
  /**
12524
12558
  * Prefer `export…from` when re-exporting.
12525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
12559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
12526
12560
  */
12527
12561
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
12528
12562
  /**
12529
12563
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
12530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
12564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
12531
12565
  */
12532
12566
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
12533
12567
  /**
12534
12568
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
12535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
12569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
12536
12570
  */
12537
12571
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
12538
12572
  /**
12539
12573
  * Prefer global numeric constants over `Number` static properties.
12540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
12574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
12541
12575
  */
12542
12576
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
12543
12577
  /**
12544
12578
  * Prefer `globalThis` over `window`, `self`, and `global`.
12545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
12579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
12546
12580
  */
12547
12581
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
12548
12582
  /**
12549
12583
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
12550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
12584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
12551
12585
  */
12552
12586
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
12553
12587
  /**
12554
12588
  * Prefer `.has()` when checking existence.
12555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
12589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
12556
12590
  */
12557
12591
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
12558
12592
  /**
12559
12593
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
12560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
12594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
12561
12595
  */
12562
12596
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
12563
12597
  /**
12564
12598
  * Prefer HTTPS over HTTP.
12565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
12599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
12566
12600
  */
12567
- 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
12601
+ 'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
12568
12602
  /**
12569
12603
  * Prefer identifiers over string literals in import and export specifiers.
12570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
12604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
12571
12605
  */
12572
12606
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
12573
12607
  /**
12574
12608
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
12575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
12609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
12576
12610
  */
12577
12611
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
12578
12612
  /**
12579
12613
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
12580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
12614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
12581
12615
  */
12582
12616
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
12583
12617
  /**
12584
12618
  * Prefer `.includes()` over repeated equality comparisons.
12585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
12619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
12586
12620
  */
12587
12621
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
12588
12622
  /**
12589
12623
  * Prefer passing iterables directly to constructors instead of filling empty collections.
12590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
12624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
12591
12625
  */
12592
12626
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
12593
12627
  /**
12594
12628
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
12595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
12629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
12596
12630
  */
12597
12631
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
12598
12632
  /**
12599
12633
  * Prefer iterator helpers over temporary arrays from iterators.
12600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
12634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
12601
12635
  */
12602
12636
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
12603
12637
  /**
12604
12638
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
12605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
12639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
12606
12640
  */
12607
12641
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
12608
12642
  /**
12609
12643
  * Prefer moving `.toArray()` to the end of iterator helper chains.
12610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
12644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
12611
12645
  */
12612
12646
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
12613
12647
  /**
12614
12648
  * Renamed to `unicorn/consistent-json-file-read`.
12615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
12649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
12616
12650
  * @deprecated
12617
12651
  */
12618
12652
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
12619
12653
  /**
12620
12654
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
12621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
12655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
12622
12656
  */
12623
12657
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
12624
12658
  /**
12625
12659
  * Prefer `location.assign()` over assigning to `location.href`.
12626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
12660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
12627
12661
  */
12628
12662
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
12629
12663
  /**
12630
12664
  * Prefer using a logical operator over a ternary.
12631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
12665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
12632
12666
  */
12633
12667
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
12634
12668
  /**
12635
12669
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
12636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
12670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
12637
12671
  */
12638
12672
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
12639
12673
  /**
12640
12674
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
12641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
12675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
12642
12676
  */
12643
12677
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
12644
12678
  /**
12645
12679
  * Prefer `Math` constants over their approximate numeric values.
12646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
12680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
12647
12681
  */
12648
12682
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
12649
12683
  /**
12650
12684
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
12651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
12685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
12652
12686
  */
12653
12687
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
12654
12688
  /**
12655
12689
  * Prefer `Math.trunc()` for truncating numbers.
12656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
12690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
12657
12691
  */
12658
12692
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
12659
12693
  /**
12660
12694
  * Prefer moving ternaries into the minimal varying part of an expression.
12661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
12695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
12662
12696
  */
12663
12697
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
12664
12698
  /**
12665
12699
  * Prefer modern DOM APIs.
12666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
12700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
12667
12701
  */
12668
12702
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
12669
12703
  /**
12670
12704
  * Prefer modern `Math` APIs over legacy patterns.
12671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
12705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
12672
12706
  */
12673
12707
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
12674
12708
  /**
12675
12709
  * Prefer JavaScript modules (ESM) over CommonJS.
12676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
12710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
12677
12711
  */
12678
12712
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
12679
12713
  /**
12680
12714
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
12681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
12715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
12682
12716
  */
12683
12717
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
12684
12718
  /**
12685
12719
  * Prefer negative index over `.length - index` when possible.
12686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
12720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
12687
12721
  */
12688
12722
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
12689
12723
  /**
12690
12724
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
12691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
12725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
12692
12726
  */
12693
12727
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
12694
12728
  /**
12695
12729
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
12696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
12730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
12697
12731
  */
12698
12732
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
12699
12733
  /**
12700
12734
  * Prefer `Number.isSafeInteger()` over integer checks.
12701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
12735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
12702
12736
  */
12703
12737
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
12704
12738
  /**
12705
12739
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
12706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
12740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
12707
12741
  */
12708
12742
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
12709
12743
  /**
12710
12744
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
12711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
12745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
12712
12746
  */
12713
12747
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
12714
12748
  /**
12715
12749
  * Prefer object destructuring defaults over default object literals with spread.
12716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
12750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
12717
12751
  */
12718
12752
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
12719
12753
  /**
12720
12754
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
12721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
12755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
12722
12756
  */
12723
12757
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
12724
12758
  /**
12725
12759
  * Prefer the most specific `Object` iterable method.
12726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
12760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
12727
12761
  */
12728
12762
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
12729
12763
  /**
12730
12764
  * Prefer observer APIs over resize and scroll listeners with layout reads.
12731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
12765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
12732
12766
  */
12733
12767
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
12734
12768
  /**
12735
12769
  * Prefer omitting the `catch` binding parameter.
12736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
12770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
12737
12771
  */
12738
12772
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
12739
12773
  /**
12740
12774
  * Prefer `Path2D` for repeatedly drawn canvas paths.
12741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
12775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
12742
12776
  */
12743
12777
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
12744
12778
  /**
12745
12779
  * Prefer private class fields over the underscore-prefix convention.
12746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
12780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
12747
12781
  */
12748
12782
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
12749
12783
  /**
12750
12784
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
12751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
12785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
12752
12786
  */
12753
12787
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
12754
12788
  /**
12755
12789
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
12756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
12790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
12757
12791
  */
12758
12792
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
12759
12793
  /**
12760
12794
  * Prefer borrowing methods from the prototype instead of the instance.
12761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
12795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
12762
12796
  */
12763
12797
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
12764
12798
  /**
12765
12799
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
12766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
12800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
12767
12801
  */
12768
12802
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
12769
12803
  /**
12770
12804
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
12771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
12805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
12772
12806
  */
12773
12807
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
12774
12808
  /**
12775
12809
  * Prefer `Reflect.apply()` over `Function#apply()`.
12776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
12810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
12777
12811
  */
12778
12812
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
12779
12813
  /**
12780
12814
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
12781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
12815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
12782
12816
  */
12783
12817
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
12784
12818
  /**
12785
12819
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
12786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
12820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
12787
12821
  */
12788
12822
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
12789
12823
  /**
12790
12824
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
12791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
12825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
12792
12826
  */
12793
12827
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
12794
12828
  /**
12795
12829
  * Prefer `:scope` when using element query selector methods.
12796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
12830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
12797
12831
  */
12798
12832
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
12799
12833
  /**
12800
12834
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
12801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
12835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
12802
12836
  */
12803
12837
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
12804
12838
  /**
12805
12839
  * Prefer `Set` methods for Set operations.
12806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
12840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
12807
12841
  */
12808
12842
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
12809
12843
  /**
12810
12844
  * Prefer using `Set#size` instead of `Array#length`.
12811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
12845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
12812
12846
  */
12813
12847
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
12814
12848
  /**
12815
12849
  * Prefer arrow function properties over methods with a single return.
12816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
12850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
12817
12851
  */
12818
12852
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
12819
12853
  /**
12820
12854
  * Prefer simple conditions first in logical expressions.
12821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
12855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
12822
12856
  */
12823
12857
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
12824
12858
  /**
12825
12859
  * Prefer a simple comparison function for `Array#sort()`.
12826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
12860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
12827
12861
  */
12828
12862
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
12829
12863
  /**
12830
12864
  * Prefer simplified conditions.
12831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
12865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
12832
12866
  */
12833
12867
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
12834
12868
  /**
12835
12869
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
12836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
12870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
12837
12871
  */
12838
12872
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
12839
12873
  /**
12840
12874
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
12841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
12875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
12842
12876
  */
12843
12877
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
12844
12878
  /**
12845
12879
  * Prefer a single object destructuring declaration per local const source.
12846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
12880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
12847
12881
  */
12848
12882
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
12849
12883
  /**
12850
12884
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
12851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
12885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
12852
12886
  */
12853
12887
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
12854
12888
  /**
12855
12889
  * Prefer declaring variables in the smallest possible scope.
12856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
12890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
12857
12891
  */
12858
12892
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
12859
12893
  /**
12860
12894
  * Prefer `String#split()` with a limit.
12861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
12895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
12862
12896
  */
12863
12897
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
12864
12898
  /**
12865
12899
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
12866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
12900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
12867
12901
  */
12868
12902
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
12869
12903
  /**
12870
12904
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
12871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
12905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
12872
12906
  */
12873
12907
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
12874
12908
  /**
12875
12909
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
12876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
12910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
12877
12911
  */
12878
12912
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
12879
12913
  /**
12880
12914
  * Prefer using the `String.raw` tag to avoid escaping `\`.
12881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
12915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
12882
12916
  */
12883
12917
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
12884
12918
  /**
12885
12919
  * Prefer `String#repeat()` for repeated whitespace.
12886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
12920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
12887
12921
  */
12888
12922
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
12889
12923
  /**
12890
12924
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
12891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
12925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
12892
12926
  */
12893
12927
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
12894
12928
  /**
12895
12929
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
12896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
12930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
12897
12931
  */
12898
12932
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
12899
12933
  /**
12900
12934
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
12901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
12935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
12902
12936
  */
12903
12937
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
12904
12938
  /**
12905
12939
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
12906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
12940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
12907
12941
  */
12908
12942
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
12909
12943
  /**
12910
12944
  * Prefer using `structuredClone` to create a deep clone.
12911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
12945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
12912
12946
  */
12913
12947
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
12914
12948
  /**
12915
12949
  * Prefer `switch` over multiple `else-if`.
12916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
12950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
12917
12951
  */
12918
12952
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
12919
12953
  /**
12920
12954
  * Prefer `Temporal` over `Date`.
12921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
12955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
12922
12956
  */
12923
12957
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
12924
12958
  /**
12925
12959
  * Prefer ternary expressions over simple `if` statements that return or assign values.
12926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
12960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
12927
12961
  */
12928
12962
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
12929
12963
  /**
12930
12964
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
12931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
12965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
12932
12966
  */
12933
12967
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
12934
12968
  /**
12935
12969
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
12936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
12970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
12937
12971
  */
12938
12972
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
12939
12973
  /**
12940
12974
  * Prefer top-level await over top-level promises and async function calls.
12941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
12975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
12942
12976
  */
12943
12977
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
12944
12978
  /**
12945
12979
  * Enforce throwing `TypeError` in type checking conditions.
12946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
12980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
12947
12981
  */
12948
12982
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
12949
12983
  /**
12950
12984
  * Require type literals to be last in union types.
12951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
12985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
12952
12986
  */
12953
12987
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
12954
12988
  /**
12955
12989
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
12956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
12990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
12957
12991
  */
12958
12992
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
12959
12993
  /**
12960
12994
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
12961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
12995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
12962
12996
  */
12963
12997
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
12964
12998
  /**
12965
12999
  * Prefer Unicode code point escapes over legacy escape sequences.
12966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
13000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
12967
13001
  */
12968
13002
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
12969
13003
  /**
12970
13004
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
12971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
13005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
12972
13006
  */
12973
13007
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
12974
13008
  /**
12975
13009
  * Prefer `URL#href` over stringifying a `URL`.
12976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
13010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
12977
13011
  */
12978
13012
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
12979
13013
  /**
12980
13014
  * Prefer `URLSearchParams` over manually splitting query strings.
12981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
13015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
12982
13016
  */
12983
13017
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
12984
13018
  /**
12985
13019
  * Prefer putting the condition in the while statement.
12986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
13020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
12987
13021
  */
12988
13022
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
12989
13023
  /**
12990
13024
  * Renamed to `unicorn/name-replacements`.
12991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
13025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
12992
13026
  * @deprecated
12993
13027
  */
12994
13028
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
12995
13029
  /**
12996
13030
  * Enforce consistent relative URL style.
12997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
13031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
12998
13032
  */
12999
13033
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13000
13034
  /**
13001
13035
  * Enforce using the separator argument with `Array#join()`.
13002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
13036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
13003
13037
  */
13004
13038
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
13005
13039
  /**
13006
13040
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
13007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
13041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
13008
13042
  */
13009
13043
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
13010
13044
  /**
13011
13045
  * Require `CSS.escape()` for interpolated values in CSS selectors.
13012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
13046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
13013
13047
  */
13014
13048
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
13015
13049
  /**
13016
13050
  * Require configured YAML frontmatter fields.
13017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
13051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
13018
13052
  */
13019
13053
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
13020
13054
  /**
13021
13055
  * Require non-empty module attributes for imports and exports
13022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
13056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
13023
13057
  */
13024
13058
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
13025
13059
  /**
13026
13060
  * Require non-empty specifier list in import and export statements.
13027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
13061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
13028
13062
  */
13029
13063
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
13030
13064
  /**
13031
13065
  * Enforce using the digits argument with `Number#toFixed()`.
13032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13033
13067
  */
13034
13068
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
13035
13069
  /**
13036
13070
  * Require passive event listeners for high-frequency events.
13037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
13071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
13038
13072
  */
13039
13073
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
13040
13074
  /**
13041
13075
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
13076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
13043
13077
  */
13044
13078
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
13045
13079
  /**
13046
13080
  * Require boolean-returning Proxy traps to return booleans.
13047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
13081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
13048
13082
  */
13049
13083
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
13084
+ /**
13085
+ * Enforce a consistent style for single-line block comments.
13086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
13087
+ */
13088
+ 'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
13050
13089
  /**
13051
13090
  * Enforce better string content.
13052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
13091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
13053
13092
  */
13054
13093
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
13055
13094
  /**
13056
13095
  * Enforce consistent brace style for `case` clauses.
13057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
13096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
13058
13097
  */
13059
13098
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13060
13099
  /**
13061
13100
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
13062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
13101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
13063
13102
  */
13064
13103
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
13065
13104
  /**
13066
13105
  * Fix whitespace-insensitive template indentation.
13067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
13106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
13068
13107
  */
13069
13108
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
13070
13109
  /**
13071
13110
  * Enforce consistent case for text encoding identifiers.
13072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
13111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
13073
13112
  */
13074
13113
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13075
13114
  /**
13076
13115
  * Require `new` when creating an error.
13077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
13116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
13078
13117
  */
13079
13118
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
13080
13119
  /**
13081
13120
  * Limit the complexity of `try` blocks.
13082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
13121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
13083
13122
  */
13084
13123
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
13085
13124
  }
@@ -13087,7 +13126,9 @@ interface RuleOptions$2 {
13087
13126
  // ----- unicorn/catch-error-name -----
13088
13127
  type UnicornCatchErrorName = [] | [{
13089
13128
  name?: string;
13090
- ignore?: unknown[];
13129
+ ignore?: (string | {
13130
+ [k: string]: unknown | undefined;
13131
+ })[];
13091
13132
  }];
13092
13133
  // ----- unicorn/class-reference-in-static-methods -----
13093
13134
  type UnicornClassReferenceInStaticMethods = [] | [{
@@ -13107,11 +13148,19 @@ type UnicornCommentContent = [] | [{
13107
13148
  }];
13108
13149
  // ----- unicorn/consistent-boolean-name -----
13109
13150
  type UnicornConsistentBooleanName = [] | [{
13110
- checkProperties?: boolean;
13151
+ checkVariables?: ("always" | "prohibit" | "never");
13152
+ checkArguments?: ("always" | "prohibit" | "never");
13153
+ checkFunctions?: ("always" | "prohibit" | "never");
13154
+ checkMethods?: ("always" | "prohibit" | "never");
13155
+ checkFields?: ("always" | "prohibit" | "never");
13111
13156
  prefixes?: {
13112
13157
  [k: string]: boolean | undefined;
13113
13158
  };
13159
+ wrappers?: {
13160
+ [k: string]: string | undefined;
13161
+ };
13114
13162
  ignore?: unknown[];
13163
+ [k: string]: unknown;
13115
13164
  }];
13116
13165
  // ----- unicorn/consistent-class-member-order -----
13117
13166
  type UnicornConsistentClassMemberOrder = [] | [{
@@ -13145,6 +13194,7 @@ type UnicornConsistentFunctionScoping = [] | [{
13145
13194
  // ----- unicorn/consistent-function-style -----
13146
13195
  type UnicornConsistentFunctionStyle = [] | [{
13147
13196
  default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
13197
+ defaultExport?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
13148
13198
  namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
13149
13199
  namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
13150
13200
  callbacks?: ("function-expression" | "arrow-function" | "ignore");
@@ -13168,7 +13218,9 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
13168
13218
  // ----- unicorn/expiring-todo-comments -----
13169
13219
  type UnicornExpiringTodoComments = [] | [{
13170
13220
  terms?: string[];
13171
- ignore?: unknown[];
13221
+ ignore?: (string | {
13222
+ [k: string]: unknown | undefined;
13223
+ })[];
13172
13224
  checkDates?: boolean;
13173
13225
  checkDatesOnPullRequests?: boolean;
13174
13226
  allowWarningComments?: boolean;
@@ -13183,7 +13235,9 @@ type UnicornExplicitTimerDelay = [] | [("always" | "never")];
13183
13235
  // ----- unicorn/filename-case -----
13184
13236
  type UnicornFilenameCase = [] | [({
13185
13237
  case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
13186
- ignore?: unknown[];
13238
+ ignore?: (string | {
13239
+ [k: string]: unknown | undefined;
13240
+ })[];
13187
13241
  multipleFileExtensions?: boolean;
13188
13242
  checkDirectories?: boolean;
13189
13243
  } | {
@@ -13194,7 +13248,9 @@ type UnicornFilenameCase = [] | [({
13194
13248
  kebabCase?: boolean;
13195
13249
  pascalCase?: boolean;
13196
13250
  };
13197
- ignore?: unknown[];
13251
+ ignore?: (string | {
13252
+ [k: string]: unknown | undefined;
13253
+ })[];
13198
13254
  multipleFileExtensions?: boolean;
13199
13255
  checkDirectories?: boolean;
13200
13256
  })];
@@ -13231,6 +13287,8 @@ type UnicornIsolatedFunctions = [] | [{
13231
13287
  selectors?: string[];
13232
13288
  comments?: string[];
13233
13289
  }];
13290
+ // ----- unicorn/iteration-fallback-style -----
13291
+ type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
13234
13292
  // ----- unicorn/logical-assignment-operators -----
13235
13293
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
13236
13294
  enforceForIfStatements?: boolean;
@@ -13251,7 +13309,9 @@ type UnicornNameReplacements = [] | [{
13251
13309
  replacements?: _UnicornNameReplacements_NameReplacements;
13252
13310
  extendDefaultAllowList?: boolean;
13253
13311
  allowList?: _UnicornNameReplacements_BooleanObject;
13254
- ignore?: unknown[];
13312
+ ignore?: (string | {
13313
+ [k: string]: unknown | undefined;
13314
+ })[];
13255
13315
  }];
13256
13316
  type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
13257
13317
  interface _UnicornNameReplacements_NameReplacements {
@@ -13299,7 +13359,7 @@ type UnicornNoInvalidArgumentCount = [] | [{
13299
13359
  }];
13300
13360
  // ----- unicorn/no-keyword-prefix -----
13301
13361
  type UnicornNoKeywordPrefix = [] | [{
13302
- disallowedPrefixes?: [] | [string];
13362
+ disallowedPrefixes?: string[];
13303
13363
  checkProperties?: boolean;
13304
13364
  onlyCamelCase?: boolean;
13305
13365
  }];
@@ -13310,7 +13370,9 @@ type UnicornNoNegatedComparison = [] | [{
13310
13370
  // ----- unicorn/no-non-function-verb-prefix -----
13311
13371
  type UnicornNoNonFunctionVerbPrefix = [] | [{
13312
13372
  verbs?: string[];
13313
- ignore?: unknown[];
13373
+ ignore?: (string | {
13374
+ [k: string]: unknown | undefined;
13375
+ })[];
13314
13376
  }];
13315
13377
  // ----- unicorn/no-null -----
13316
13378
  type UnicornNoNull = [] | [{
@@ -13323,7 +13385,7 @@ type UnicornNoTypeofUndefined = [] | [{
13323
13385
  }];
13324
13386
  // ----- unicorn/no-unnecessary-polyfills -----
13325
13387
  type UnicornNoUnnecessaryPolyfills = [] | [{
13326
- targets?: (string | unknown[] | {
13388
+ targets?: (string | string[] | {
13327
13389
  [k: string]: unknown | undefined;
13328
13390
  });
13329
13391
  }];
@@ -13377,11 +13439,11 @@ type UnicornPreferArrayFind = [] | [{
13377
13439
  }];
13378
13440
  // ----- unicorn/prefer-array-flat -----
13379
13441
  type UnicornPreferArrayFlat = [] | [{
13380
- functions?: unknown[];
13442
+ functions?: string[];
13381
13443
  }];
13382
13444
  // ----- unicorn/prefer-at -----
13383
13445
  type UnicornPreferAt = [] | [{
13384
- getLastElementFunctions?: unknown[];
13446
+ getLastElementFunctions?: string[];
13385
13447
  checkAllIndexAccess?: boolean;
13386
13448
  }];
13387
13449
  // ----- unicorn/prefer-continue -----
@@ -13405,6 +13467,12 @@ type UnicornPreferExplicitViewportUnits = [] | [{
13405
13467
  type UnicornPreferExportFrom = [] | [{
13406
13468
  checkUsedVariables?: boolean;
13407
13469
  }];
13470
+ // ----- unicorn/prefer-https -----
13471
+ type UnicornPreferHttps = [] | [{
13472
+ ignore?: (string | {
13473
+ [k: string]: unknown | undefined;
13474
+ })[];
13475
+ }];
13408
13476
  // ----- unicorn/prefer-includes-over-repeated-comparisons -----
13409
13477
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
13410
13478
  minimumComparisons?: number;
@@ -13421,7 +13489,7 @@ type UnicornPreferNumberProperties = [] | [{
13421
13489
  }];
13422
13490
  // ----- unicorn/prefer-object-from-entries -----
13423
13491
  type UnicornPreferObjectFromEntries = [] | [{
13424
- functions?: unknown[];
13492
+ functions?: string[];
13425
13493
  }];
13426
13494
  // ----- unicorn/prefer-query-selector -----
13427
13495
  type UnicornPreferQuerySelector = [] | [{
@@ -13440,7 +13508,7 @@ type UnicornPreferSetHas = [] | [{
13440
13508
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
13441
13509
  // ----- unicorn/prefer-single-call -----
13442
13510
  type UnicornPreferSingleCall = [] | [{
13443
- ignore?: unknown[];
13511
+ ignore?: string[];
13444
13512
  }];
13445
13513
  // ----- unicorn/prefer-string-repeat -----
13446
13514
  type UnicornPreferStringRepeat = [] | [{
@@ -13448,7 +13516,7 @@ type UnicornPreferStringRepeat = [] | [{
13448
13516
  }];
13449
13517
  // ----- unicorn/prefer-structured-clone -----
13450
13518
  type UnicornPreferStructuredClone = [] | [{
13451
- functions?: unknown[];
13519
+ functions?: string[];
13452
13520
  }];
13453
13521
  // ----- unicorn/prefer-switch -----
13454
13522
  type UnicornPreferSwitch = [] | [{
@@ -13473,6 +13541,12 @@ type UnicornRequireCssEscape = [] | [{
13473
13541
  type UnicornRequireFrontmatterFields = [] | [{
13474
13542
  fields?: string[];
13475
13543
  }];
13544
+ // ----- unicorn/single-line-block-comment-style -----
13545
+ type UnicornSingleLineBlockCommentStyle = [] | [("multiline" | "single-line")] | [("multiline" | "single-line"), {
13546
+ ignore?: (string | {
13547
+ [k: string]: unknown | undefined;
13548
+ })[];
13549
+ }];
13476
13550
  // ----- unicorn/string-content -----
13477
13551
  type UnicornStringContent = [] | [{
13478
13552
  patterns?: {