@kitschpatrol/eslint-config 8.10.1 → 8.12.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
@@ -505,7 +505,6 @@ interface RuleOptions {
505
505
  curly?: Linter.RuleEntry<Curly>;
506
506
  /**
507
507
  * Transforms the negation of a conjunction !(A && B) into the equivalent !A
508
- *
509
508
  * || !B according to De Morgan’s law
510
509
  *
511
510
  * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
@@ -1632,7 +1631,7 @@ interface RuleOptions {
1632
1631
  *
1633
1632
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
1634
1633
  */
1635
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
1634
+ 'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
1636
1635
  /**
1637
1636
  * Reports invalid block tag names.
1638
1637
  *
@@ -8954,6 +8953,12 @@ interface RuleOptions {
8954
8953
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
8955
8954
  */
8956
8955
  'ts/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
8956
+ /**
8957
+ * Disallow assigning non-enum values to enum typed locations
8958
+ *
8959
+ * @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
8960
+ */
8961
+ 'ts/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
8957
8962
  /**
8958
8963
  * Disallow comparing an enum value with a non-enum value
8959
8964
  *
@@ -9302,2283 +9307,2465 @@ interface RuleOptions {
9302
9307
  /**
9303
9308
  * Prefer better DOM traversal APIs.
9304
9309
  *
9305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
9310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
9306
9311
  */
9307
9312
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
9308
9313
  /**
9309
9314
  * Removed. Prefer `eslint-plugin-regexp`
9310
9315
  *
9311
9316
  * @deprecated
9312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9313
9318
  */
9314
9319
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
9315
9320
  /**
9316
9321
  * Enforce a specific parameter name in catch clauses.
9317
9322
  *
9318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
9323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
9319
9324
  */
9320
9325
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
9321
9326
  /**
9322
9327
  * Enforce consistent class references in static methods.
9323
9328
  *
9324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
9329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
9325
9330
  */
9326
9331
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
9332
+ /**
9333
+ * Enforce consistent spacing before and after commas in JSON.
9334
+ *
9335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
9336
+ */
9337
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
9327
9338
  /**
9328
9339
  * Enforce better comment content.
9329
9340
  *
9330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
9341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
9331
9342
  */
9332
9343
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
9333
9344
  /**
9334
9345
  * Enforce a consistent return style for multiline arrow function bodies.
9335
9346
  *
9336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
9347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
9337
9348
  */
9338
9349
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
9339
9350
  /**
9340
9351
  * Enforce consistent assertion style with `node:assert`.
9341
9352
  *
9342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
9353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
9343
9354
  */
9344
9355
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
9345
9356
  /**
9346
9357
  * Enforce consistent naming for boolean names.
9347
9358
  *
9348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
9359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
9349
9360
  */
9350
9361
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
9351
9362
  /**
9352
9363
  * Enforce consistent class member order.
9353
9364
  *
9354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
9365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
9355
9366
  */
9356
9367
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
9357
9368
  /**
9358
9369
  * Enforce consistent spelling of compound words in identifiers.
9359
9370
  *
9360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
9371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
9361
9372
  */
9362
9373
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
9363
9374
  /**
9364
9375
  * Enforce consistent conditional object spread style.
9365
9376
  *
9366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
9377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
9367
9378
  */
9368
9379
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
9369
9380
  /**
9370
9381
  * Prefer passing `Date` directly to the constructor when cloning.
9371
9382
  *
9372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
9383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
9373
9384
  */
9374
9385
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
9375
9386
  /**
9376
9387
  * Use destructured variables over properties.
9377
9388
  *
9378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
9389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
9379
9390
  */
9380
9391
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
9381
9392
  /**
9382
9393
  * Prefer consistent types when spreading a ternary in an array literal.
9383
9394
  *
9384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
9395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
9385
9396
  */
9386
9397
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
9387
9398
  /**
9388
9399
  * Enforce consistent style for element existence checks with `indexOf()`,
9389
9400
  * `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
9390
9401
  *
9391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
9402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
9392
9403
  */
9393
9404
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
9394
9405
  /**
9395
9406
  * Enforce consistent decorator position on exported classes.
9396
9407
  *
9397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
9408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
9398
9409
  */
9399
9410
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
9400
9411
  /**
9401
9412
  * Move function definitions to the highest possible scope.
9402
9413
  *
9403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
9414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
9404
9415
  */
9405
9416
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
9406
9417
  /**
9407
9418
  * Enforce function syntax by role.
9408
9419
  *
9409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
9420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
9410
9421
  */
9411
9422
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
9412
9423
  /**
9413
9424
  * Enforce consistent JSON file reads before `JSON.parse()`.
9414
9425
  *
9415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
9426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
9416
9427
  */
9417
9428
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
9418
9429
  /**
9419
9430
  * Enforce consistent optional chaining for same-base member access.
9420
9431
  *
9421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
9432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
9422
9433
  */
9423
9434
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
9424
9435
  /**
9425
9436
  * Enforce consistent style for escaping `${` in template literals.
9426
9437
  *
9427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
9438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
9428
9439
  */
9429
9440
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
9430
9441
  /**
9431
9442
  * Enforce consistent labels on tuple type elements.
9432
9443
  *
9433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
9444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
9434
9445
  */
9435
9446
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
9436
9447
  /**
9437
9448
  * Enforce correct `Error` subclassing.
9438
9449
  *
9439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
9450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
9440
9451
  */
9441
9452
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
9442
9453
  /**
9443
9454
  * Enforce consistent default export declarations.
9444
9455
  *
9445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
9456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
9446
9457
  */
9447
9458
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
9448
9459
  /**
9449
9460
  * Enforce consistent style for DOM element dataset access.
9450
9461
  *
9451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
9462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
9452
9463
  */
9453
9464
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
9454
9465
  /**
9455
9466
  * Enforce no spaces between braces.
9456
9467
  *
9457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
9468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
9458
9469
  */
9459
9470
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
9460
9471
  /**
9461
9472
  * Enforce passing a `message` value when creating a built-in error.
9462
9473
  *
9463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
9474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
9464
9475
  */
9465
9476
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
9466
9477
  /**
9467
9478
  * Require escape sequences to use uppercase or lowercase values.
9468
9479
  *
9469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
9480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
9470
9481
  */
9471
9482
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
9472
9483
  /**
9473
9484
  * Add expiration conditions to TODO comments.
9474
9485
  *
9475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
9486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
9476
9487
  */
9477
9488
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
9478
9489
  /**
9479
9490
  * Enforce explicitly comparing the `length` or `size` property of a value.
9480
9491
  *
9481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
9492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
9482
9493
  */
9483
9494
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
9484
9495
  /**
9485
9496
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and
9486
9497
  * `setInterval()`.
9487
9498
  *
9488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
9499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
9489
9500
  */
9490
9501
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
9491
9502
  /**
9492
9503
  * Enforce a case style for filenames and directory names.
9493
9504
  *
9494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
9505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
9495
9506
  */
9496
9507
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
9497
9508
  /**
9498
9509
  * Require identifiers to match a specified regular expression.
9499
9510
  *
9500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
9511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
9501
9512
  */
9502
9513
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
9503
9514
  /**
9504
9515
  * Enforce specific import styles per module.
9505
9516
  *
9506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
9517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
9507
9518
  */
9508
9519
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
9520
+ /**
9521
+ * Enforce consistent indentation in JSON and CSS.
9522
+ *
9523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
9524
+ */
9525
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
9509
9526
  /**
9510
9527
  * Prevent usage of variables from outside the scope of isolated functions.
9511
9528
  *
9512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
9529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
9513
9530
  */
9514
9531
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
9515
9532
  /**
9516
9533
  * Enforce a consistent style for optional loop sources.
9517
9534
  *
9518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
9535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
9519
9536
  */
9520
9537
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
9538
+ /**
9539
+ * Enforce a case style for data keys.
9540
+ *
9541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
9542
+ */
9543
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
9521
9544
  /**
9522
9545
  * Require or disallow logical assignment operator shorthand
9523
9546
  *
9524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
9547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
9525
9548
  */
9526
9549
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
9527
9550
  /**
9528
9551
  * Limit the depth of nested calls.
9529
9552
  *
9530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
9553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
9531
9554
  */
9532
9555
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
9533
9556
  /**
9534
9557
  * Enforce replacements for variable, property, and filenames.
9535
9558
  *
9536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
9559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
9537
9560
  */
9538
9561
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
9539
9562
  /**
9540
9563
  * Enforce correct use of `new` for builtin constructors.
9541
9564
  *
9542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
9565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
9543
9566
  */
9544
9567
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
9545
9568
  /**
9546
9569
  * Enforce specifying rules to disable in `eslint-disable` comments.
9547
9570
  *
9548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
9571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
9549
9572
  */
9550
9573
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
9551
9574
  /**
9552
9575
  * Disallow recursive access to `this` within getters and setters.
9553
9576
  *
9554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
9577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
9555
9578
  */
9556
9579
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
9557
9580
  /**
9558
9581
  * Disallow bitwise operators where a logical operator was likely intended.
9559
9582
  *
9560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
9583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
9561
9584
  */
9562
9585
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
9563
9586
  /**
9564
9587
  * Disallow anonymous functions and classes as the default export.
9565
9588
  *
9566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
9589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
9567
9590
  */
9568
9591
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
9569
9592
  /**
9570
9593
  * Prevent passing a function reference directly to iterator methods.
9571
9594
  *
9572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
9595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
9573
9596
  */
9574
9597
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
9575
9598
  /**
9576
9599
  * Disallow array accumulation with `Array#concat()` in loops.
9577
9600
  *
9578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
9601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
9579
9602
  */
9580
9603
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
9581
9604
  /**
9582
9605
  * Disallow using reference values as `Array#fill()` values.
9583
9606
  *
9584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
9607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
9585
9608
  */
9586
9609
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
9587
9610
  /**
9588
9611
  * Disallow `.fill()` after `Array.from({length: …})`.
9589
9612
  *
9590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
9613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
9591
9614
  */
9592
9615
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
9593
9616
  /**
9594
9617
  * Disallow front-of-array mutation.
9595
9618
  *
9596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
9619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
9597
9620
  */
9598
9621
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
9599
9622
  /**
9600
9623
  * Disallow using the `this` argument in array methods.
9601
9624
  *
9602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
9625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
9603
9626
  */
9604
9627
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
9605
9628
  /**
9606
9629
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
9607
9630
  *
9608
9631
  * @deprecated
9609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9610
9633
  */
9611
9634
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
9612
9635
  /**
9613
9636
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
9614
9637
  *
9615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
9638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
9616
9639
  */
9617
9640
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
9618
9641
  /**
9619
9642
  * Prefer `Array#toReversed()` over `Array#reverse()`.
9620
9643
  *
9621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
9644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
9622
9645
  */
9623
9646
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
9624
9647
  /**
9625
9648
  * Prefer `Array#toSorted()` over `Array#sort()`.
9626
9649
  *
9627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
9650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
9628
9651
  */
9629
9652
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
9630
9653
  /**
9631
9654
  * Disallow sorting arrays to get the minimum or maximum value.
9632
9655
  *
9633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
9656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
9634
9657
  */
9635
9658
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
9636
9659
  /**
9637
9660
  * Prefer `Array#toSpliced()` over `Array#splice()`.
9638
9661
  *
9639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
9662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
9640
9663
  */
9641
9664
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
9642
9665
  /**
9643
- * Disallow asterisk prefixes in documentation comments.
9666
+ * Disallow asterisk prefixes in multiline comments.
9644
9667
  *
9645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9646
9669
  */
9647
9670
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
9648
9671
  /**
9649
9672
  * Disallow asynchronous callbacks in synchronous iterator helpers.
9650
9673
  *
9651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
9674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
9652
9675
  */
9653
9676
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
9654
9677
  /**
9655
9678
  * Disallow async functions as `Promise#finally()` callbacks.
9656
9679
  *
9657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
9680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
9658
9681
  */
9659
9682
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
9660
9683
  /**
9661
9684
  * Disallow member access from await expression.
9662
9685
  *
9663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
9686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
9664
9687
  */
9665
9688
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
9666
9689
  /**
9667
9690
  * Disallow using `await` in `Promise` method parameters.
9668
9691
  *
9669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
9692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
9670
9693
  */
9671
9694
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
9672
9695
  /**
9673
9696
  * Disallow barrel files.
9674
9697
  *
9675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
9698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
9676
9699
  */
9677
9700
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
9678
9701
  /**
9679
9702
  * Disallow unnecessary `Blob` to `File` conversion.
9680
9703
  *
9681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
9704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
9682
9705
  */
9683
9706
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
9684
9707
  /**
9685
9708
  * Disallow boolean-returning sort comparators.
9686
9709
  *
9687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
9710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
9688
9711
  */
9689
9712
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
9690
9713
  /**
9691
9714
  * Disallow `break` and optionally `continue` in nested loops and switches
9692
9715
  * inside loops.
9693
9716
  *
9694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
9717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
9695
9718
  */
9696
9719
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
9697
9720
  /**
9698
9721
  * Prefer drawing canvases directly instead of converting them to images.
9699
9722
  *
9700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
9723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
9701
9724
  */
9702
9725
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
9703
9726
  /**
9704
9727
  * Disallow chained comparisons such as `a < b < c`.
9705
9728
  *
9706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
9729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
9707
9730
  */
9708
9731
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
9709
9732
  /**
9710
9733
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with
9711
9734
  * bracket notation.
9712
9735
  *
9713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
9736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
9714
9737
  */
9715
9738
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
9716
9739
  /**
9717
9740
  * Disallow dynamic object property existence checks.
9718
9741
  *
9719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
9742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
9720
9743
  */
9721
9744
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
9745
+ /**
9746
+ * Disallow conflicting CSS query and HTML form constraints.
9747
+ *
9748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
9749
+ */
9750
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
9722
9751
  /**
9723
9752
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
9724
9753
  *
9725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
9754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
9726
9755
  */
9727
9756
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
9728
9757
  /**
9729
9758
  * Disallow confusing uses of `Array#with()`.
9730
9759
  *
9731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
9760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
9732
9761
  */
9733
9762
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
9734
9763
  /**
9735
9764
  * Do not use leading/trailing space between `console.log` parameters.
9736
9765
  *
9737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
9766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
9738
9767
  */
9739
9768
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
9740
9769
  /**
9741
9770
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
9742
9771
  *
9743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
9772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
9744
9773
  */
9745
9774
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
9746
9775
  /**
9747
9776
  * Disallow declarations before conditional early exits when they are only
9748
9777
  * used after the exit.
9749
9778
  *
9750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
9779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
9751
9780
  */
9752
9781
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
9753
9782
  /**
9754
- * Disallow deprecated CSS features.
9783
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
9755
9784
  *
9756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
9785
+ * @deprecated
9786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
9757
9787
  */
9758
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
9788
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
9759
9789
  /**
9760
9790
  * Do not use `document.cookie` directly.
9761
9791
  *
9762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
9792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
9763
9793
  */
9764
9794
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
9765
9795
  /**
9766
9796
  * Disallow two comparisons of the same operands that can be combined into
9767
9797
  * one.
9768
9798
  *
9769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
9799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
9770
9800
  */
9771
9801
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
9772
9802
  /**
9773
- * Disallow duplicate CSS selectors.
9803
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
9774
9804
  *
9775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
9805
+ * @deprecated
9806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
9776
9807
  */
9777
9808
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
9778
9809
  /**
9779
- * Disallow duplicate font family names.
9810
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
9780
9811
  *
9781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
9812
+ * @deprecated
9813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
9782
9814
  */
9783
9815
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
9784
9816
  /**
9785
9817
  * Disallow duplicate adjacent branches in if chains.
9786
9818
  *
9787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
9819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
9788
9820
  */
9789
9821
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
9790
9822
  /**
9791
9823
  * Disallow adjacent duplicate operands in logical expressions.
9792
9824
  *
9793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
9825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
9794
9826
  */
9795
9827
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
9796
9828
  /**
9797
9829
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop
9798
9830
  * headers.
9799
9831
  *
9800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
9832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
9801
9833
  */
9802
9834
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
9803
9835
  /**
9804
9836
  * Disallow duplicate values in `Set` constructor array literals.
9805
9837
  *
9806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
9838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
9807
9839
  */
9808
9840
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
9809
9841
  /**
9810
9842
  * Disallow empty files.
9811
9843
  *
9812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
9844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
9813
9845
  */
9814
9846
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
9847
+ /**
9848
+ * Disallow empty link text in Markdown.
9849
+ *
9850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
9851
+ */
9852
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
9815
9853
  /**
9816
9854
  * Disallow assigning to built-in error properties.
9817
9855
  *
9818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
9856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
9819
9857
  */
9820
9858
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
9821
9859
  /**
9822
9860
  * Disallow exports in scripts.
9823
9861
  *
9824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
9862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
9825
9863
  */
9826
9864
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
9827
9865
  /**
9828
9866
  * Prefer `for…of` over the `forEach` method.
9829
9867
  *
9830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
9868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
9831
9869
  */
9832
9870
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
9833
9871
  /**
9834
9872
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
9835
9873
  *
9836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
9874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
9837
9875
  */
9838
9876
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
9839
9877
  /**
9840
9878
  * Disallow assigning properties on the global object.
9841
9879
  *
9842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
9880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
9843
9881
  */
9844
9882
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
9845
9883
  /**
9846
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more
9847
- * cases.
9884
+ * Replaced by `unicorn/prefer-literal-ascii` and
9885
+ * `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
9848
9886
  *
9849
9887
  * @deprecated
9850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9851
9889
  */
9852
9890
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
9853
9891
  /**
9854
9892
  * Disallow immediate mutation after variable assignment.
9855
9893
  *
9856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
9894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
9857
9895
  */
9858
9896
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
9859
9897
  /**
9860
9898
  * Disallow impossible comparisons against `.length` or `.size`.
9861
9899
  *
9862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
9900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
9863
9901
  */
9864
9902
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
9903
+ /**
9904
+ * Disallow class accessors that hide an inherited getter or setter.
9905
+ *
9906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
9907
+ */
9908
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
9865
9909
  /**
9866
9910
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
9867
9911
  *
9868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
9912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
9869
9913
  */
9870
9914
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
9871
9915
  /**
9872
9916
  * Disallow incorrect template literal interpolation syntax.
9873
9917
  *
9874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9875
9919
  */
9876
9920
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
9921
+ /**
9922
+ * Disallow ineffective CSP directives in `<meta>` elements.
9923
+ *
9924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
9925
+ */
9926
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
9877
9927
  /**
9878
9928
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
9879
9929
  *
9880
9930
  * @deprecated
9881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9882
9932
  */
9883
9933
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
9884
9934
  /**
9885
9935
  * Disallow `instanceof` with built-in objects
9886
9936
  *
9887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
9937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
9888
9938
  */
9889
9939
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
9890
9940
  /**
9891
9941
  * Disallow calling functions and constructors with an invalid number of
9892
9942
  * arguments.
9893
9943
  *
9894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
9944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
9895
9945
  */
9896
9946
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
9947
+ /**
9948
+ * Disallow invalid values for HTML boolean attributes.
9949
+ *
9950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
9951
+ */
9952
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
9897
9953
  /**
9898
9954
  * Disallow comparing a single character from a string to a multi-character
9899
9955
  * string.
9900
9956
  *
9901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
9957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
9902
9958
  */
9903
9959
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
9960
+ /**
9961
+ * Disallow invalid DOM tokens.
9962
+ *
9963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
9964
+ */
9965
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
9904
9966
  /**
9905
9967
  * Disallow invalid options in `fetch()` and `new Request()`.
9906
9968
  *
9907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
9969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
9908
9970
  */
9909
9971
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
9910
9972
  /**
9911
9973
  * Disallow invalid `accept` values on file inputs.
9912
9974
  *
9913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
9975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
9914
9976
  */
9915
9977
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
9916
9978
  /**
9917
- * Disallow unknown media features and invalid values for known media
9918
- * features.
9979
+ * Disallow invalid subresource integrity metadata.
9980
+ *
9981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
9982
+ */
9983
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
9984
+ /**
9985
+ * Disallow invalid or ignored Intl options.
9919
9986
  *
9920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
9987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
9988
+ */
9989
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
9990
+ /**
9991
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
9992
+ *
9993
+ * @deprecated
9994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
9921
9995
  */
9922
9996
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
9997
+ /**
9998
+ * Disallow invalid property descriptors.
9999
+ *
10000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
10001
+ */
10002
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
9923
10003
  /**
9924
10004
  * Prevent calling `EventTarget#removeEventListener()` with the result of an
9925
10005
  * expression.
9926
10006
  *
9927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
10007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
9928
10008
  */
9929
10009
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
10010
+ /**
10011
+ * Disallow invalid options in `new Response()`, `Response.json()`, and
10012
+ * `Response.redirect()`.
10013
+ *
10014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
10015
+ */
10016
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
10017
+ /**
10018
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
10019
+ *
10020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
10021
+ */
10022
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
10023
+ /**
10024
+ * Disallow statically known invalid Temporal arithmetic.
10025
+ *
10026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
10027
+ */
10028
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
10029
+ /**
10030
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
10031
+ *
10032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
10033
+ */
10034
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
9930
10035
  /**
9931
10036
  * Disallow invalid implementations of well-known symbol methods.
9932
10037
  *
9933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
10038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
9934
10039
  */
9935
10040
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
10041
+ /**
10042
+ * Disallow `javascript:` URLs in Markdown.
10043
+ *
10044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
10045
+ */
10046
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
9936
10047
  /**
9937
10048
  * Disallow identifiers starting with `new` or `class`.
9938
10049
  *
9939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
10050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
9940
10051
  */
9941
10052
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
9942
10053
  /**
9943
10054
  * Disallow accessing `event.currentTarget` after the synchronous event
9944
10055
  * dispatch has finished.
9945
10056
  *
9946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
10057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
9947
10058
  */
9948
10059
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
9949
10060
  /**
9950
10061
  * Disallow event-control method calls after the synchronous event dispatch
9951
10062
  * has finished.
9952
10063
  *
9953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
10064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
9954
10065
  */
9955
10066
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
10067
+ /**
10068
+ * Disallow empty lines at the beginning of a file.
10069
+ *
10070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
10071
+ */
10072
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
9956
10073
  /**
9957
10074
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
9958
10075
  *
9959
10076
  * @deprecated
9960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
10077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9961
10078
  */
9962
10079
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
9963
10080
  /**
9964
10081
  * Disallow `if` statements as the only statement in `if` blocks without
9965
10082
  * `else`.
9966
10083
  *
9967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
10084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
9968
10085
  */
9969
10086
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
9970
10087
  /**
9971
10088
  * Disallow mutating a loop iterable during iteration.
9972
10089
  *
9973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
10090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
9974
10091
  */
9975
10092
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
10093
+ /**
10094
+ * Disallow numeric literals that lose precision when represented as IEEE 754
10095
+ * binary64 values.
10096
+ *
10097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
10098
+ */
10099
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
9976
10100
  /**
9977
10101
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
9978
10102
  *
9979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
10103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
9980
10104
  */
9981
10105
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
9982
10106
  /**
9983
10107
  * Disallow manually wrapped comments.
9984
10108
  *
9985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
10109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
9986
10110
  */
9987
10111
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
9988
10112
  /**
9989
10113
  * Disallow checking a Map key before accessing a different key.
9990
10114
  *
9991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
10115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
9992
10116
  */
9993
10117
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
9994
10118
  /**
9995
10119
  * Disallow misrefactored compound assignments where the target is duplicated
9996
10120
  * in the right-hand side.
9997
10121
  *
9998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
10122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
9999
10123
  */
10000
10124
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
10001
10125
  /**
10002
10126
  * Disallow references to missing local resources.
10003
10127
  *
10004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
10128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
10005
10129
  */
10006
10130
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
10007
10131
  /**
10008
10132
  * Disallow calling Promise executor resolver functions more than once on the
10009
10133
  * same execution path.
10010
10134
  *
10011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
10135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
10012
10136
  */
10013
10137
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
10014
10138
  /**
10015
10139
  * Disallow named usage of default import and export.
10016
10140
  *
10017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
10141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
10018
10142
  */
10019
10143
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
10020
10144
  /**
10021
10145
  * Disallow negated array predicate calls.
10022
10146
  *
10023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
10147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
10024
10148
  */
10025
10149
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
10026
10150
  /**
10027
10151
  * Disallow negated comparisons.
10028
10152
  *
10029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
10153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
10030
10154
  */
10031
10155
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
10032
10156
  /**
10033
10157
  * Disallow negated conditions.
10034
10158
  *
10035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
10159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
10036
10160
  */
10037
10161
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
10038
10162
  /**
10039
10163
  * Disallow negated expression in equality check.
10040
10164
  *
10041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
10165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
10042
10166
  */
10043
10167
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
10044
10168
  /**
10045
10169
  * Disallow nested ternary expressions.
10046
10170
  *
10047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
10171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
10048
10172
  */
10049
10173
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
10050
10174
  /**
10051
- * Disallow nesting under selector lists with mixed specificity.
10175
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
10052
10176
  *
10053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
10177
+ * @deprecated
10178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
10054
10179
  */
10055
10180
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
10056
10181
  /**
10057
10182
  * Disallow `new Array()`.
10058
10183
  *
10059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
10184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
10060
10185
  */
10061
10186
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
10062
10187
  /**
10063
10188
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the
10064
10189
  * deprecated `new Buffer()`.
10065
10190
  *
10066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
10191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
10067
10192
  */
10068
10193
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
10069
10194
  /**
10070
10195
  * Disallow non-function values with function-style verb prefixes.
10071
10196
  *
10072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
10197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
10073
10198
  */
10074
10199
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
10075
10200
  /**
10076
10201
  * Disallow non-standard properties on built-in objects.
10077
10202
  *
10078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
10203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
10079
10204
  */
10080
10205
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
10081
10206
  /**
10082
10207
  * Disallow the use of the `null` literal.
10083
10208
  *
10084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
10209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
10085
10210
  */
10086
10211
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
10087
10212
  /**
10088
10213
  * Disallow the use of objects as default parameters.
10089
10214
  *
10090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
10215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
10091
10216
  */
10092
10217
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
10093
10218
  /**
10094
10219
  * Disallow `Object` methods with `Map` or `Set`.
10095
10220
  *
10096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
10221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
10097
10222
  */
10098
10223
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
10099
10224
  /**
10100
10225
  * Disallow optional chaining on undeclared variables.
10101
10226
  *
10102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
10227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
10103
10228
  */
10104
10229
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
10230
+ /**
10231
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
10232
+ *
10233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
10234
+ */
10235
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
10105
10236
  /**
10106
10237
  * Disallow `process.exit()`.
10107
10238
  *
10108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
10239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
10109
10240
  */
10110
10241
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
10111
10242
  /**
10112
10243
  * Disallow comparisons made redundant by an equality check in the same
10113
10244
  * logical AND.
10114
10245
  *
10115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
10246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
10116
10247
  */
10117
10248
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
10118
10249
  /**
10119
- * Disallow nested style rules that do not modify the parent selector.
10250
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
10120
10251
  *
10121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
10252
+ * @deprecated
10253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
10122
10254
  */
10123
10255
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
10124
10256
  /**
10125
10257
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
10126
10258
  *
10127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
10259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
10128
10260
  */
10129
10261
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
10130
10262
  /**
10131
10263
  * Disallow selector syntax in DOM names.
10132
10264
  *
10133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
10265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
10134
10266
  */
10135
10267
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
10136
10268
  /**
10137
10269
  * Disallow shorthand properties that override related longhand properties.
10138
10270
  *
10139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
10271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
10140
10272
  */
10141
10273
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
10142
10274
  /**
10143
10275
  * Disallow passing single-element arrays to `Promise` methods.
10144
10276
  *
10145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
10277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
10146
10278
  */
10147
10279
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
10148
10280
  /**
10149
10281
  * Disallow classes that only have static members.
10150
10282
  *
10151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
10283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
10152
10284
  */
10153
10285
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
10154
10286
  /**
10155
10287
  * Prefer comparing values directly over subtracting and comparing to `0`.
10156
10288
  *
10157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
10289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
10158
10290
  */
10159
10291
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
10160
10292
  /**
10161
10293
  * Disallow `then` property.
10162
10294
  *
10163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
10295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
10164
10296
  */
10165
10297
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
10166
10298
  /**
10167
10299
  * Disallow assigning `this` to a variable.
10168
10300
  *
10169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
10301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
10170
10302
  */
10171
10303
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
10172
10304
  /**
10173
10305
  * Disallow `this` outside of classes.
10174
10306
  *
10175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
10307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
10176
10308
  */
10177
10309
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
10178
10310
  /**
10179
10311
  * Disallow assigning to top-level variables from inside functions.
10180
10312
  *
10181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
10313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
10182
10314
  */
10183
10315
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
10184
10316
  /**
10185
10317
  * Disallow top-level side effects in exported modules.
10186
10318
  *
10187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
10319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
10188
10320
  */
10189
10321
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
10190
10322
  /**
10191
10323
  * Disallow `all` as a transition property.
10192
10324
  *
10193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
10325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
10194
10326
  */
10195
10327
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
10196
10328
  /**
10197
10329
  * Disallow comparing `undefined` using `typeof`.
10198
10330
  *
10199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
10331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
10200
10332
  */
10201
10333
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
10202
10334
  /**
10203
10335
  * Disallow referencing methods without calling them.
10204
10336
  *
10205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
10337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
10206
10338
  */
10207
10339
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
10208
10340
  /**
10209
10341
  * Require class members to be declared.
10210
10342
  *
10211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
10343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
10212
10344
  */
10213
10345
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
10214
10346
  /**
10215
- * Disallow unknown and noncanonical CSS annotations.
10347
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
10216
10348
  *
10217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
10349
+ * @deprecated
10350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
10218
10351
  */
10219
10352
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
10220
10353
  /**
10221
- * Disallow unknown pseudo-class and pseudo-element selectors.
10354
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
10222
10355
  *
10223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
10356
+ * @deprecated
10357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
10224
10358
  */
10225
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
10359
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
10226
10360
  /**
10227
10361
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
10228
10362
  *
10229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10230
10364
  */
10231
10365
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
10232
10366
  /**
10233
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
10367
+ * Disallow unnecessary use of `Array#flatMap()`.
10234
10368
  *
10235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
10369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
10236
10370
  */
10237
10371
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
10238
10372
  /**
10239
10373
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount`
10240
10374
  * argument of `Array#{splice,toSpliced}()`.
10241
10375
  *
10242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
10376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
10243
10377
  */
10244
10378
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
10245
10379
  /**
10246
10380
  * Disallow awaiting non-promise values.
10247
10381
  *
10248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
10382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
10249
10383
  */
10250
10384
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
10251
10385
  /**
10252
10386
  * Disallow unnecessary comparisons against boolean literals.
10253
10387
  *
10254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10255
10389
  */
10256
10390
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
10257
10391
  /**
10258
10392
  * Disallow unnecessary options in `fetch()` and `new Request()`.
10259
10393
  *
10260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
10394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
10261
10395
  */
10262
10396
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
10263
10397
  /**
10264
10398
  * Disallow unnecessary `globalThis` references.
10265
10399
  *
10266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
10400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
10267
10401
  */
10268
10402
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
10269
10403
  /**
10270
10404
  * Disallow unnecessary nested ternary expressions.
10271
10405
  *
10272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
10406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
10273
10407
  */
10274
10408
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
10409
+ /**
10410
+ * Disallow parameters that receive the same value at every call.
10411
+ *
10412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
10413
+ */
10414
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
10275
10415
  /**
10276
10416
  * Enforce the use of built-in methods instead of unnecessary polyfills.
10277
10417
  *
10278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
10418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
10279
10419
  */
10280
10420
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
10281
10421
  /**
10282
10422
  * Disallow using `.length` or `Infinity` as the `end` argument of
10283
10423
  * `{Array,String,TypedArray}#slice()`.
10284
10424
  *
10285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
10425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
10286
10426
  */
10287
10427
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
10288
10428
  /**
10289
10429
  * Disallow `Array#splice()` when simpler alternatives exist.
10290
10430
  *
10291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
10431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
10292
10432
  */
10293
10433
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
10294
10434
  /**
10295
10435
  * Disallow `String#trim()` before `String#startsWith()` or
10296
10436
  * `String#endsWith()`.
10297
10437
  *
10298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
10438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
10299
10439
  */
10300
10440
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
10301
10441
  /**
10302
10442
  * Disallow unreadable array destructuring.
10303
10443
  *
10304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
10444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
10305
10445
  */
10306
10446
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
10307
10447
  /**
10308
10448
  * Disallow unreadable iterable expressions in `for…of` and `for await…of`
10309
10449
  * loop headers.
10310
10450
  *
10311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
10451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
10312
10452
  */
10313
10453
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
10314
10454
  /**
10315
10455
  * Disallow unreadable IIFEs.
10316
10456
  *
10317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
10457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
10318
10458
  */
10319
10459
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
10320
10460
  /**
10321
10461
  * Disallow unreadable `new` expressions.
10322
10462
  *
10323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
10463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
10324
10464
  */
10325
10465
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
10326
10466
  /**
10327
10467
  * Disallow unreadable object destructuring.
10328
10468
  *
10329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
10469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
10330
10470
  */
10331
10471
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
10332
10472
  /**
10333
10473
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
10334
10474
  *
10335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
10475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
10336
10476
  */
10337
10477
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
10338
10478
  /**
10339
10479
  * Disallow unsafe DOM HTML APIs.
10340
10480
  *
10341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
10481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
10342
10482
  */
10343
10483
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
10484
+ /**
10485
+ * Disallow known values that JSON serialization cannot represent faithfully.
10486
+ *
10487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
10488
+ */
10489
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
10344
10490
  /**
10345
10491
  * Disallow reading `.value` from `Promise.allSettled()` results without a
10346
10492
  * fulfilled status guard.
10347
10493
  *
10348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10349
10495
  */
10350
10496
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
10351
10497
  /**
10352
10498
  * Disallow unsafe values as property keys.
10353
10499
  *
10354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
10500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
10355
10501
  */
10356
10502
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
10357
10503
  /**
10358
10504
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite`
10359
10505
  * APIs.
10360
10506
  *
10361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
10507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
10362
10508
  */
10363
10509
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
10364
10510
  /**
10365
10511
  * Disallow non-literal replacement values in `String#replace()` and
10366
10512
  * `String#replaceAll()`.
10367
10513
  *
10368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
10514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
10369
10515
  */
10370
10516
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
10371
10517
  /**
10372
- * Disallow unscoped CSS nesting selectors.
10518
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
10373
10519
  *
10374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
10520
+ * @deprecated
10521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
10375
10522
  */
10376
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
10523
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
10377
10524
  /**
10378
10525
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more
10379
10526
  * cases.
10380
10527
  *
10381
10528
  * @deprecated
10382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
10529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
10383
10530
  */
10384
10531
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
10385
10532
  /**
10386
10533
  * Disallow ignoring the return value of selected built-in methods.
10387
10534
  *
10388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
10535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
10389
10536
  */
10390
10537
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
10391
10538
  /**
10392
10539
  * Disallow discarding lazy iterator helpers.
10393
10540
  *
10394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
10541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
10395
10542
  */
10396
10543
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
10397
10544
  /**
10398
10545
  * Disallow unused object properties.
10399
10546
  *
10400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
10547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
10401
10548
  */
10402
10549
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
10550
+ /**
10551
+ * Disallow passing full URLs to `URLSearchParams`.
10552
+ *
10553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
10554
+ */
10555
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
10403
10556
  /**
10404
10557
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
10405
10558
  *
10406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
10559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
10407
10560
  */
10408
10561
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
10409
10562
  /**
10410
10563
  * Disallow useless type coercions of values that are already of the target
10411
10564
  * type.
10412
10565
  *
10413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
10566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
10414
10567
  */
10415
10568
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
10416
10569
  /**
10417
10570
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or
10418
10571
  * `WeakMap`.
10419
10572
  *
10420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
10573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
10421
10574
  */
10422
10575
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
10423
10576
  /**
10424
10577
  * Disallow useless compound assignments such as `x += 0`.
10425
10578
  *
10426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
10579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
10427
10580
  */
10428
10581
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
10429
10582
  /**
10430
10583
  * Disallow useless concatenation of literals.
10431
10584
  *
10432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
10585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
10433
10586
  */
10434
10587
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
10435
10588
  /**
10436
10589
  * Disallow useless `continue` statements.
10437
10590
  *
10438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
10591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
10439
10592
  */
10440
10593
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
10441
10594
  /**
10442
10595
  * Disallow unnecessary existence checks before deletion.
10443
10596
  *
10444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
10597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
10445
10598
  */
10446
10599
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
10447
10600
  /**
10448
10601
  * Disallow `else` after a statement that exits.
10449
10602
  *
10450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
10603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
10451
10604
  */
10452
10605
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
10453
10606
  /**
10454
10607
  * Disallow unnecessary `Error.captureStackTrace(…)`.
10455
10608
  *
10456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10457
10610
  */
10458
10611
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
10459
10612
  /**
10460
10613
  * Disallow useless fallback when spreading in object literals.
10461
10614
  *
10462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
10615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
10463
10616
  */
10464
10617
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
10465
10618
  /**
10466
10619
  * Disallow unnecessary `.toArray()` on iterators.
10467
10620
  *
10468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
10621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
10469
10622
  */
10470
10623
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
10471
10624
  /**
10472
10625
  * Disallow useless array length check.
10473
10626
  *
10474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
10627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
10475
10628
  */
10476
10629
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
10477
10630
  /**
10478
10631
  * Disallow unnecessary operands in logical expressions involving boolean
10479
10632
  * literals.
10480
10633
  *
10481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
10634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
10482
10635
  */
10483
10636
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
10484
10637
  /**
10485
10638
  * Disallow useless overrides of class methods.
10486
10639
  *
10487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
10640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
10488
10641
  */
10489
10642
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
10490
10643
  /**
10491
10644
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions
10492
10645
  * or promise callbacks
10493
10646
  *
10494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
10647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
10495
10648
  */
10496
10649
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
10497
10650
  /**
10498
10651
  * Disallow redundant re-exports.
10499
10652
  *
10500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
10653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
10501
10654
  */
10502
10655
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
10503
10656
  /**
10504
10657
  * Disallow simple recursive function calls that can be replaced with a loop.
10505
10658
  *
10506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
10659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
10507
10660
  */
10508
10661
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
10509
10662
  /**
10510
10663
  * Disallow unnecessary `Set` construction around `Set` methods.
10511
10664
  *
10512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
10665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
10513
10666
  */
10514
10667
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
10515
10668
  /**
10516
10669
  * Disallow unnecessary spread.
10517
10670
  *
10518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
10671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
10519
10672
  */
10520
10673
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
10521
10674
  /**
10522
10675
  * Disallow useless case in switch statements.
10523
10676
  *
10524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
10677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
10525
10678
  */
10526
10679
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
10527
10680
  /**
10528
10681
  * Disallow useless template literal expressions.
10529
10682
  *
10530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
10683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
10531
10684
  */
10532
10685
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
10533
10686
  /**
10534
10687
  * Disallow useless `undefined`.
10535
10688
  *
10536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
10689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
10537
10690
  */
10538
10691
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
10539
10692
  /**
10540
10693
  * Disallow returning or exporting resources declared with `using`, including
10541
10694
  * through capturing functions.
10542
10695
  *
10543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
10696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
10544
10697
  */
10545
10698
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
10546
10699
  /**
10547
10700
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
10548
10701
  *
10549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
10702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
10550
10703
  */
10551
10704
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
10552
10705
  /**
10553
- * Disallow number literals with zero fractions or dangling dots.
10706
+ * Require consistent decimal numbers without redundant zeros.
10554
10707
  *
10555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
10708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
10556
10709
  */
10557
10710
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
10558
10711
  /**
10559
10712
  * Enforce proper case for numeric literals.
10560
10713
  *
10561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
10714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
10562
10715
  */
10563
10716
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
10564
10717
  /**
10565
10718
  * Enforce the style of numeric separators by correctly grouping digits.
10566
10719
  *
10567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
10720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
10568
10721
  */
10569
10722
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
10570
10723
  /**
10571
10724
  * Require assignment operator shorthand where possible.
10572
10725
  *
10573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
10726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
10574
10727
  */
10575
10728
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
10576
10729
  /**
10577
10730
  * Prefer `AbortSignal.any()` over manually forwarding abort events between
10578
10731
  * signals.
10579
10732
  *
10580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
10733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
10581
10734
  */
10582
10735
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
10583
10736
  /**
10584
10737
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController`
10585
10738
  * with `setTimeout()`.
10586
10739
  *
10587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
10740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
10588
10741
  */
10589
10742
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
10590
10743
  /**
10591
10744
  * Prefer `.addEventListener()` and `.removeEventListener()` over
10592
10745
  * `on`-functions.
10593
10746
  *
10594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
10747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
10595
10748
  */
10596
10749
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
10597
10750
  /**
10598
10751
  * Prefer an options object over a boolean in `.addEventListener()`.
10599
10752
  *
10600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
10753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
10601
10754
  */
10602
10755
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
10603
10756
  /**
10604
10757
  * Prefer `AggregateError` when throwing collected errors.
10605
10758
  *
10606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
10759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
10607
10760
  */
10608
10761
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
10609
10762
  /**
10610
10763
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from
10611
10764
  * `.filter(…)`.
10612
10765
  *
10613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
10766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
10614
10767
  */
10615
10768
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
10616
10769
  /**
10617
10770
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
10618
10771
  *
10619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
10772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
10620
10773
  */
10621
10774
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
10622
10775
  /**
10623
10776
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
10624
10777
  *
10625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
10778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
10626
10779
  */
10627
10780
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
10628
10781
  /**
10629
10782
  * Prefer `Array.fromAsync()` over array accumulation loops.
10630
10783
  *
10631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
10784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
10632
10785
  */
10633
10786
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
10634
10787
  /**
10635
10788
  * Prefer using the `Array.from()` mapping function argument.
10636
10789
  *
10637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
10790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
10638
10791
  */
10639
10792
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
10640
10793
  /**
10641
10794
  * Prefer `Array.from({length}, …)` when creating range arrays.
10642
10795
  *
10643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
10796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
10644
10797
  */
10645
10798
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
10646
10799
  /**
10647
10800
  * Prefer `Array#{indexOf,lastIndexOf}()` over
10648
10801
  * `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
10649
10802
  *
10650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
10803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
10651
10804
  */
10652
10805
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
10653
10806
  /**
10654
10807
  * Prefer iterating an array directly or with `Array#keys()` over
10655
10808
  * `Array#entries()` when the index or value is unused.
10656
10809
  *
10657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
10810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
10658
10811
  */
10659
10812
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
10660
10813
  /**
10661
10814
  * Prefer last-oriented array methods over `Array#reverse()` or
10662
10815
  * `Array#toReversed()` followed by a method.
10663
10816
  *
10664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
10817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
10665
10818
  */
10666
10819
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
10667
10820
  /**
10668
10821
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned
10669
10822
  * array.
10670
10823
  *
10671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
10824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
10672
10825
  */
10673
10826
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
10674
10827
  /**
10675
10828
  * Prefer `.some(…)` over `.filter(…).length` check and
10676
10829
  * `.{find,findLast,findIndex,findLastIndex}(…)`.
10677
10830
  *
10678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
10831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
10679
10832
  */
10680
10833
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
10681
10834
  /**
10682
10835
  * Prefer `.at()` method for index access and `String#charAt()`.
10683
10836
  *
10684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
10837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
10685
10838
  */
10686
10839
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
10687
10840
  /**
10688
10841
  * Prefer `await` over promise chaining.
10689
10842
  *
10690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
10843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
10691
10844
  */
10692
10845
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
10693
10846
  /**
10694
10847
  * Prefer `BigInt` literals over the constructor.
10695
10848
  *
10696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
10849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
10697
10850
  */
10698
10851
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
10699
10852
  /**
10700
10853
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and
10701
10854
  * `Blob#text()` over `FileReader#readAsText(…)`.
10702
10855
  *
10703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
10856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
10704
10857
  */
10705
10858
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
10706
10859
  /**
10707
10860
  * Prefer block statements over IIFEs used only for scoping.
10708
10861
  *
10709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
10862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
10710
10863
  */
10711
10864
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
10712
10865
  /**
10713
10866
  * Prefer directly returning boolean expressions over `if` statements.
10714
10867
  *
10715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
10868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
10716
10869
  */
10717
10870
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
10718
10871
  /**
10719
10872
  * Prefer class field declarations over `this` assignments in constructors.
10720
10873
  *
10721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
10874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
10722
10875
  */
10723
10876
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
10724
10877
  /**
10725
10878
  * Prefer using `Element#classList.toggle()` to toggle class names.
10726
10879
  *
10727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
10880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
10728
10881
  */
10729
10882
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
10730
10883
  /**
10731
10884
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and
10732
10885
  * `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
10733
10886
  *
10734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
10887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
10735
10888
  */
10736
10889
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
10737
10890
  /**
10738
10891
  * Prefer combining consecutive guards with identical exit statements.
10739
10892
  *
10740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
10893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
10741
10894
  */
10742
10895
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
10743
10896
  /**
10744
10897
  * Prefer early continues over conditionals wrapping the remainder of the loop
10745
10898
  * body.
10746
10899
  *
10747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
10900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
10748
10901
  */
10749
10902
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
10750
10903
  /**
10751
10904
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
10752
10905
  *
10753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
10906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
10754
10907
  */
10755
10908
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
10756
10909
  /**
10757
- * Prefer default parameters over reassignment.
10910
+ * Prefer default parameters and destructuring defaults over reassignment and
10911
+ * fallback expressions.
10758
10912
  *
10759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
10913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
10760
10914
  */
10761
10915
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
10762
10916
  /**
10763
10917
  * Prefer direct iteration over default iterator method calls.
10764
10918
  *
10765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
10919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
10766
10920
  */
10767
10921
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
10768
10922
  /**
10769
10923
  * Prefer using `using`/`await using` over manual `try`/`finally` resource
10770
10924
  * disposal.
10771
10925
  *
10772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
10926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
10773
10927
  */
10774
10928
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
10775
10929
  /**
10776
10930
  * Prefer `Element#append()` over `Node#appendChild()`.
10777
10931
  *
10778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
10932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
10779
10933
  */
10780
10934
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
10781
10935
  /**
10782
10936
  * Renamed to `unicorn/dom-node-dataset`.
10783
10937
  *
10784
10938
  * @deprecated
10785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10786
10940
  */
10787
10941
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
10788
10942
  /**
10789
10943
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
10790
10944
  *
10791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
10945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
10792
10946
  */
10793
10947
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
10794
10948
  /**
10795
10949
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
10796
10950
  *
10797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
10951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
10798
10952
  */
10799
10953
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
10800
10954
  /**
10801
10955
  * Prefer `.replaceChildren()` when replacing DOM children.
10802
10956
  *
10803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
10957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
10804
10958
  */
10805
10959
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
10806
10960
  /**
10807
10961
  * Prefer `.textContent` over `.innerText`.
10808
10962
  *
10809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
10963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
10810
10964
  */
10811
10965
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
10812
10966
  /**
10813
10967
  * Prefer early returns over conditionals wrapping the remainder of the
10814
10968
  * function body.
10815
10969
  *
10816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
10970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
10817
10971
  */
10818
10972
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
10819
10973
  /**
10820
10974
  * Prefer `else if` over adjacent `if` statements with related conditions.
10821
10975
  *
10822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
10976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
10823
10977
  */
10824
10978
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
10825
10979
  /**
10826
10980
  * Prefer `Error.isError()` when checking for errors.
10827
10981
  *
10828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
10982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
10829
10983
  */
10830
10984
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
10985
+ /**
10986
+ * Prefer escape sequences for irregular whitespace characters.
10987
+ *
10988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
10989
+ */
10990
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
10831
10991
  /**
10832
10992
  * Prefer `EventTarget` over `EventEmitter`.
10833
10993
  *
10834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
10994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
10835
10995
  */
10836
10996
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
10837
10997
  /**
10838
- * Prefer explicit viewport units.
10998
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
10839
10999
  *
10840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
11000
+ * @deprecated
11001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
10841
11002
  */
10842
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
11003
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
10843
11004
  /**
10844
11005
  * Prefer `export…from` when re-exporting.
10845
11006
  *
10846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
11007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
10847
11008
  */
10848
11009
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
10849
11010
  /**
10850
11011
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
10851
11012
  *
10852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
11013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
10853
11014
  */
10854
11015
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
10855
11016
  /**
10856
11017
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
10857
11018
  *
10858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
11019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
10859
11020
  */
10860
11021
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
10861
11022
  /**
10862
11023
  * Prefer global numeric constants over `Number` static properties.
10863
11024
  *
10864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
11025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
10865
11026
  */
10866
11027
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
10867
11028
  /**
10868
11029
  * Prefer `globalThis` over `window`, `self`, and `global`.
10869
11030
  *
10870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
11031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
10871
11032
  */
10872
11033
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
10873
11034
  /**
10874
11035
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
10875
11036
  *
10876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
11037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
10877
11038
  */
10878
11039
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
10879
11040
  /**
10880
11041
  * Prefer `.has()` when checking existence.
10881
11042
  *
10882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
11043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
10883
11044
  */
10884
11045
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
10885
11046
  /**
10886
11047
  * Prefer moving code shared by all branches of an `if` statement out of the
10887
11048
  * branches.
10888
11049
  *
10889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
11050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
10890
11051
  */
10891
11052
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
10892
11053
  /**
10893
11054
  * Prefer HTTPS over HTTP.
10894
11055
  *
10895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
11056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
10896
11057
  */
10897
11058
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
10898
11059
  /**
10899
11060
  * Prefer identifiers over string literals in import and export specifiers.
10900
11061
  *
10901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
11062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
10902
11063
  */
10903
11064
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
10904
11065
  /**
10905
11066
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting
10906
11067
  * file paths.
10907
11068
  *
10908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
11069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
10909
11070
  */
10910
11071
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
10911
11072
  /**
10912
11073
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and
10913
11074
  * `Array#some()` when checking for existence or non-existence.
10914
11075
  *
10915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
11076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
10916
11077
  */
10917
11078
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
10918
11079
  /**
10919
11080
  * Prefer `.includes()` over repeated equality comparisons.
10920
11081
  *
10921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
11082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10922
11083
  */
10923
11084
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
10924
11085
  /**
10925
11086
  * Prefer passing iterables directly to constructors instead of filling empty
10926
11087
  * collections.
10927
11088
  *
10928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
11089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
10929
11090
  */
10930
11091
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
10931
11092
  /**
10932
11093
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
10933
11094
  *
10934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
11095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
10935
11096
  */
10936
11097
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
10937
11098
  /**
10938
11099
  * Prefer iterator helpers over temporary arrays from iterators.
10939
11100
  *
10940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
11101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
10941
11102
  */
10942
11103
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
10943
11104
  /**
10944
11105
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
10945
11106
  *
10946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
11107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
10947
11108
  */
10948
11109
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
10949
11110
  /**
10950
11111
  * Prefer moving `.toArray()` to the end of iterator helper chains.
10951
11112
  *
10952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
11113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
10953
11114
  */
10954
11115
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
10955
11116
  /**
10956
11117
  * Prefer `Iterator.zip()` over parallel-array indexing.
10957
11118
  *
10958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
11119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
10959
11120
  */
10960
11121
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
10961
11122
  /**
10962
11123
  * Prefer JSON imports over reading and parsing JSON files.
10963
11124
  *
10964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
11125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
10965
11126
  */
10966
11127
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
10967
11128
  /**
10968
11129
  * Renamed to `unicorn/consistent-json-file-read`.
10969
11130
  *
10970
11131
  * @deprecated
10971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
11132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10972
11133
  */
10973
11134
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
10974
11135
  /**
10975
11136
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
10976
11137
  *
10977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
11138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
10978
11139
  */
10979
11140
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
11141
+ /**
11142
+ * Prefer literal printable ASCII characters over escape sequences.
11143
+ *
11144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
11145
+ */
11146
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
10980
11147
  /**
10981
11148
  * Prefer `location.assign()` over assigning to `location.href`.
10982
11149
  *
10983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
11150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
10984
11151
  */
10985
11152
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
10986
11153
  /**
10987
11154
  * Prefer using a logical operator over a ternary.
10988
11155
  *
10989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
11156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
10990
11157
  */
10991
11158
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
10992
11159
  /**
10993
11160
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a
10994
11161
  * map.
10995
11162
  *
10996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
11163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
10997
11164
  */
10998
11165
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
10999
11166
  /**
11000
11167
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric
11001
11168
  * range checks.
11002
11169
  *
11003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
11170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
11004
11171
  */
11005
11172
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
11006
11173
  /**
11007
11174
  * Prefer `Math` constants over their approximate numeric values.
11008
11175
  *
11009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
11176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
11010
11177
  */
11011
11178
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
11012
11179
  /**
11013
11180
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
11014
11181
  *
11015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
11182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
11016
11183
  */
11017
11184
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
11018
11185
  /**
11019
11186
  * Prefer `Math.trunc()` for truncating numbers.
11020
11187
  *
11021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
11188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
11022
11189
  */
11023
11190
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
11024
11191
  /**
11025
- * Prefer modern media feature range syntax.
11192
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
11026
11193
  *
11027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
11194
+ * @deprecated
11195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
11028
11196
  */
11029
11197
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
11030
11198
  /**
11031
11199
  * Prefer moving ternaries into the minimal varying part of an expression.
11032
11200
  *
11033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
11201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
11034
11202
  */
11035
11203
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
11036
11204
  /**
11037
11205
  * Prefer modern DOM APIs.
11038
11206
  *
11039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
11207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
11040
11208
  */
11041
11209
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
11042
11210
  /**
11043
11211
  * Prefer modern `Math` APIs over legacy patterns.
11044
11212
  *
11045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
11213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
11046
11214
  */
11047
11215
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
11048
11216
  /**
11049
11217
  * Prefer JavaScript modules (ESM) over CommonJS.
11050
11218
  *
11051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
11219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
11052
11220
  */
11053
11221
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
11054
11222
  /**
11055
11223
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol`
11056
11224
  * directly.
11057
11225
  *
11058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
11226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
11059
11227
  */
11060
11228
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
11061
11229
  /**
11062
11230
  * Prefer negative index over `.length - index` when possible.
11063
11231
  *
11064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
11232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
11065
11233
  */
11066
11234
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
11067
11235
  /**
11068
11236
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
11069
11237
  *
11070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
11238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
11071
11239
  */
11072
11240
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
11073
11241
  /**
11074
11242
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
11075
11243
  *
11076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
11244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
11077
11245
  */
11078
11246
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
11079
11247
  /**
11080
11248
  * Prefer `Number.isSafeInteger()` over integer checks.
11081
11249
  *
11082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
11250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
11083
11251
  */
11084
11252
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
11085
11253
  /**
11086
11254
  * Prefer `Number` static methods over global functions and optionally static
11087
11255
  * properties over global constants.
11088
11256
  *
11089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
11257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
11090
11258
  */
11091
11259
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
11092
11260
  /**
11093
11261
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()`
11094
11262
  * calls.
11095
11263
  *
11096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
11264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
11097
11265
  */
11098
11266
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
11099
11267
  /**
11100
11268
  * Prefer object destructuring defaults over default object literals with
11101
11269
  * spread.
11102
11270
  *
11103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
11271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
11104
11272
  */
11105
11273
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
11106
11274
  /**
11107
11275
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs
11108
11276
  * into an object.
11109
11277
  *
11110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
11278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
11111
11279
  */
11112
11280
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
11113
11281
  /**
11114
11282
  * Prefer the most specific `Object` iterable method.
11115
11283
  *
11116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
11284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
11117
11285
  */
11118
11286
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
11119
11287
  /**
11120
11288
  * Prefer observer APIs over resize and scroll listeners with layout reads.
11121
11289
  *
11122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
11290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
11123
11291
  */
11124
11292
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
11125
11293
  /**
11126
11294
  * Prefer omitting the `catch` binding parameter.
11127
11295
  *
11128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
11296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
11129
11297
  */
11130
11298
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
11131
11299
  /**
11132
11300
  * Prefer `Path2D` for repeatedly drawn canvas paths.
11133
11301
  *
11134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
11302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
11135
11303
  */
11136
11304
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
11137
11305
  /**
11138
11306
  * Prefer private class fields over the underscore-prefix convention.
11139
11307
  *
11140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
11308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
11141
11309
  */
11142
11310
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
11311
+ /**
11312
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new
11313
+ * Promise()` calls.
11314
+ *
11315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
11316
+ */
11317
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
11143
11318
  /**
11144
11319
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
11145
11320
  *
11146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
11321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
11147
11322
  */
11148
11323
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
11149
11324
  /**
11150
11325
  * Prefer `Promise.withResolvers()` when extracting resolver functions from
11151
11326
  * `new Promise()`.
11152
11327
  *
11153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
11328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
11154
11329
  */
11155
11330
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
11156
11331
  /**
11157
11332
  * Prefer borrowing methods from the prototype instead of the instance.
11158
11333
  *
11159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
11334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
11160
11335
  */
11161
11336
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
11162
11337
  /**
11163
11338
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query
11164
11339
  * methods.
11165
11340
  *
11166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
11341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
11167
11342
  */
11168
11343
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
11169
11344
  /**
11170
11345
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and
11171
11346
  * `setTimeout(…, 0)`.
11172
11347
  *
11173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
11348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
11174
11349
  */
11175
11350
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
11176
11351
  /**
11177
11352
  * Prefer `Reflect.apply()` over `Function#apply()`.
11178
11353
  *
11179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
11354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
11180
11355
  */
11181
11356
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
11182
11357
  /**
11183
11358
  * Prefer `RegExp.escape()` for escaping strings to use in regular
11184
11359
  * expressions.
11185
11360
  *
11186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
11361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
11187
11362
  */
11188
11363
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
11189
11364
  /**
11190
11365
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and
11191
11366
  * `RegExp#exec()`.
11192
11367
  *
11193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
11368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
11194
11369
  */
11195
11370
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
11196
11371
  /**
11197
11372
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
11198
11373
  *
11199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
11374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
11200
11375
  */
11201
11376
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
11202
11377
  /**
11203
11378
  * Prefer `:scope` when using element query selector methods.
11204
11379
  *
11205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
11380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
11206
11381
  */
11207
11382
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
11208
11383
  /**
11209
11384
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or
11210
11385
  * non-existence.
11211
11386
  *
11212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
11387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
11213
11388
  */
11214
11389
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
11215
11390
  /**
11216
11391
  * Prefer `Set` methods for Set operations.
11217
11392
  *
11218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
11393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
11219
11394
  */
11220
11395
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
11221
11396
  /**
11222
11397
  * Prefer using `Set#size` instead of `Array#length`.
11223
11398
  *
11224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
11399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
11225
11400
  */
11226
11401
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
11227
11402
  /**
11228
11403
  * Prefer arrow function properties over methods with a single return.
11229
11404
  *
11230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
11405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
11231
11406
  */
11232
11407
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
11408
+ /**
11409
+ * Prefer shorter alternatives to Unicode escape sequences.
11410
+ *
11411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
11412
+ */
11413
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
11233
11414
  /**
11234
11415
  * Prefer simple conditions first in logical expressions.
11235
11416
  *
11236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
11417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
11237
11418
  */
11238
11419
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
11239
11420
  /**
11240
11421
  * Prefer a simple comparison function for `Array#sort()`.
11241
11422
  *
11242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
11423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
11243
11424
  */
11244
11425
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
11245
11426
  /**
11246
11427
  * Prefer simplified conditions.
11247
11428
  *
11248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
11429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
11249
11430
  */
11250
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
11431
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
11251
11432
  /**
11252
11433
  * Prefer a single `Array#some()` or `Array#every()` with a combined
11253
11434
  * predicate.
11254
11435
  *
11255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
11436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
11256
11437
  */
11257
11438
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
11258
11439
  /**
11259
11440
  * Enforce combining multiple `Array#{push,unshift}()`,
11260
11441
  * `Element#classList.{add,remove}()`, and `importScripts()` into one call.
11261
11442
  *
11262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
11443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
11263
11444
  */
11264
11445
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
11265
11446
  /**
11266
11447
  * Prefer a single object destructuring declaration per local const source.
11267
11448
  *
11268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
11449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
11269
11450
  */
11270
11451
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
11271
11452
  /**
11272
11453
  * Enforce combining multiple single-character replacements into a single
11273
11454
  * `String#replaceAll()` with a regular expression.
11274
11455
  *
11275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
11456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
11276
11457
  */
11277
11458
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
11278
11459
  /**
11279
11460
  * Prefer declaring variables in the smallest possible scope.
11280
11461
  *
11281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
11462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
11282
11463
  */
11283
11464
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
11284
11465
  /**
11285
11466
  * Prefer `String#split()` with a limit.
11286
11467
  *
11287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
11468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
11288
11469
  */
11289
11470
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
11290
11471
  /**
11291
11472
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`,
11292
11473
  * `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
11293
11474
  *
11294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
11475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
11295
11476
  */
11296
11477
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
11297
11478
  /**
11298
11479
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
11299
11480
  *
11300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
11481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
11301
11482
  */
11302
11483
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
11303
11484
  /**
11304
11485
  * Prefer `String#padStart()` and `String#padEnd()` over manual string
11305
11486
  * padding.
11306
11487
  *
11307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
11488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
11308
11489
  */
11309
11490
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
11310
11491
  /**
11311
11492
  * Prefer using the `String.raw` tag to avoid escaping `\`.
11312
11493
  *
11313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
11494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
11314
11495
  */
11315
11496
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
11316
11497
  /**
11317
11498
  * Prefer `String#repeat()` for repeated whitespace.
11318
11499
  *
11319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
11500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
11320
11501
  */
11321
11502
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
11322
11503
  /**
11323
11504
  * Prefer `String#replaceAll()` over regex searches with the global flag and
11324
11505
  * `String#split().join()`.
11325
11506
  *
11326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
11507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
11327
11508
  */
11328
11509
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
11329
11510
  /**
11330
11511
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
11331
11512
  *
11332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
11513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
11333
11514
  */
11334
11515
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
11335
11516
  /**
11336
11517
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes,
11337
11518
  * `String#indexOf() === 0`, and slice checks.
11338
11519
  *
11339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
11520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
11340
11521
  */
11341
11522
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
11342
11523
  /**
11343
11524
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` /
11344
11525
  * `String#trimRight()`.
11345
11526
  *
11346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
11527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
11347
11528
  */
11348
11529
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
11349
11530
  /**
11350
11531
  * Prefer using `structuredClone` to create a deep clone.
11351
11532
  *
11352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
11533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
11353
11534
  */
11354
11535
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
11355
11536
  /**
11356
11537
  * Prefer `switch` over multiple `else-if`.
11357
11538
  *
11358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
11539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
11359
11540
  */
11360
11541
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
11361
11542
  /**
11362
11543
  * Prefer `Temporal` over `Date`.
11363
11544
  *
11364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
11545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
11365
11546
  */
11366
11547
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
11367
11548
  /**
11368
11549
  * Prefer direct Temporal conversion methods.
11369
11550
  *
11370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
11551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
11371
11552
  */
11372
11553
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
11373
11554
  /**
11374
11555
  * Prefer ternary expressions over simple `if` statements that return or
11375
11556
  * assign values.
11376
11557
  *
11377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
11558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
11378
11559
  */
11379
11560
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
11380
11561
  /**
11381
11562
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
11382
11563
  *
11383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
11564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
11384
11565
  */
11385
11566
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
11386
11567
  /**
11387
11568
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
11388
11569
  *
11389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
11570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
11390
11571
  */
11391
11572
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
11392
11573
  /**
11393
11574
  * Prefer top-level await over top-level promises and async function calls.
11394
11575
  *
11395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
11576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
11396
11577
  */
11397
11578
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
11398
11579
  /**
11399
11580
  * Enforce throwing `TypeError` in type checking conditions.
11400
11581
  *
11401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
11582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
11402
11583
  */
11403
11584
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
11404
11585
  /**
11405
11586
  * Require type literals to be last in union types.
11406
11587
  *
11407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
11588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
11408
11589
  */
11409
11590
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
11410
11591
  /**
11411
11592
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy
11412
11593
  * base64 conversions and manual postprocessing.
11413
11594
  *
11414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
11595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
11415
11596
  */
11416
11597
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
11417
11598
  /**
11418
11599
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and
11419
11600
  * Buffer hex conversions.
11420
11601
  *
11421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
11602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
11422
11603
  */
11423
11604
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
11424
11605
  /**
11425
11606
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
11426
11607
  *
11427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
11608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
11428
11609
  */
11429
11610
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
11430
11611
  /**
11431
11612
  * Prefer Unicode code point escapes over legacy escape sequences.
11432
11613
  *
11433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11434
11615
  */
11435
11616
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
11436
11617
  /**
11437
11618
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for
11438
11619
  * validation.
11439
11620
  *
11440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
11621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
11441
11622
  */
11442
11623
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
11443
11624
  /**
11444
11625
  * Prefer `URL#href` over stringifying a `URL`.
11445
11626
  *
11446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
11627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
11447
11628
  */
11448
11629
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
11449
11630
  /**
11450
11631
  * Prefer `URLSearchParams` over manually splitting query strings.
11451
11632
  *
11452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
11633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
11453
11634
  */
11454
11635
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
11455
11636
  /**
11456
11637
  * Prefer putting the condition in the while statement.
11457
11638
  *
11458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
11639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
11459
11640
  */
11460
11641
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
11461
11642
  /**
11462
11643
  * Renamed to `unicorn/name-replacements`.
11463
11644
  *
11464
11645
  * @deprecated
11465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11466
11647
  */
11467
11648
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
11468
11649
  /**
11469
11650
  * Enforce consistent relative URL style.
11470
11651
  *
11471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
11652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
11472
11653
  */
11473
11654
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
11474
11655
  /**
11475
11656
  * Enforce using the separator argument with `Array#join()`.
11476
11657
  *
11477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
11658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
11478
11659
  */
11479
11660
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
11480
11661
  /**
11481
11662
  * Require a compare function when calling `Array#sort()` or
11482
11663
  * `Array#toSorted()`.
11483
11664
  *
11484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
11665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
11485
11666
  */
11486
11667
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
11487
11668
  /**
11488
11669
  * Require `CSS.escape()` for interpolated values in CSS selectors.
11489
11670
  *
11490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
11671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
11491
11672
  */
11492
11673
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
11493
11674
  /**
11494
11675
  * Require configured YAML frontmatter fields.
11495
11676
  *
11496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
11677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
11497
11678
  */
11498
11679
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
11499
11680
  /**
11500
11681
  * Require non-empty module attributes for imports and exports
11501
11682
  *
11502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
11683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
11503
11684
  */
11504
11685
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
11505
11686
  /**
11506
11687
  * Require non-empty specifier list in import and export statements.
11507
11688
  *
11508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
11689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
11509
11690
  */
11510
11691
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
11511
11692
  /**
11512
11693
  * Enforce using the digits argument with `Number#toFixed()`.
11513
11694
  *
11514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11515
11696
  */
11516
11697
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
11517
11698
  /**
11518
11699
  * Require passive event listeners for high-frequency events.
11519
11700
  *
11520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
11701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
11521
11702
  */
11522
11703
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
11523
11704
  /**
11524
11705
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
11525
11706
  *
11526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
11707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
11527
11708
  */
11528
11709
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
11529
11710
  /**
11530
11711
  * Require boolean-returning Proxy traps to return booleans.
11531
11712
  *
11532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
11713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
11533
11714
  */
11534
11715
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
11716
+ /**
11717
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
11718
+ *
11719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
11720
+ */
11721
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
11535
11722
  /**
11536
11723
  * Enforce a consistent style for single-line block comments.
11537
11724
  *
11538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
11725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
11539
11726
  */
11540
11727
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
11541
11728
  /**
11542
11729
  * Enforce better string content.
11543
11730
  *
11544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
11731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
11545
11732
  */
11546
11733
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
11547
11734
  /**
11548
11735
  * Enforce consistent brace style for `case` clauses.
11549
11736
  *
11550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
11737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
11551
11738
  */
11552
11739
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
11553
11740
  /**
11554
11741
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case`
11555
11742
  * clauses.
11556
11743
  *
11557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
11744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
11558
11745
  */
11559
11746
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
11560
11747
  /**
11561
11748
  * Fix whitespace-insensitive template indentation.
11562
11749
  *
11563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
11750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
11564
11751
  */
11565
11752
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
11566
11753
  /**
11567
11754
  * Enforce consistent case for text encoding identifiers.
11568
11755
  *
11569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
11756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
11570
11757
  */
11571
11758
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
11572
11759
  /**
11573
11760
  * Require `new` when creating an error.
11574
11761
  *
11575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
11762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
11576
11763
  */
11577
11764
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
11578
11765
  /**
11579
11766
  * Limit the complexity of `try` blocks.
11580
11767
  *
11581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
11768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
11582
11769
  */
11583
11770
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
11584
11771
  /**
@@ -12742,6 +12929,7 @@ type JsdocCheckExamples = [] | [{
12742
12929
  // ----- jsdoc/check-indentation -----
12743
12930
  type JsdocCheckIndentation = [] | [{
12744
12931
  allowIndentedSections?: boolean;
12932
+ allowNoSpaceAfterAsterisk?: boolean;
12745
12933
  excludeTags?: string[];
12746
12934
  }];
12747
12935
  // ----- jsdoc/check-line-alignment -----
@@ -12777,6 +12965,10 @@ type JsdocCheckParamNames = [] | [{
12777
12965
  type JsdocCheckPropertyNames = [] | [{
12778
12966
  enableFixer?: boolean;
12779
12967
  }];
12968
+ // ----- jsdoc/check-syntax -----
12969
+ type JsdocCheckSyntax = [] | [{
12970
+ enableFixer?: boolean;
12971
+ }];
12780
12972
  // ----- jsdoc/check-tag-names -----
12781
12973
  type JsdocCheckTagNames = [] | [{
12782
12974
  definedTags?: string[];
@@ -13161,7 +13353,6 @@ type JsdocRequireTags = [] | [{
13161
13353
  tags?: (string | {
13162
13354
  context?: string;
13163
13355
  tag?: string;
13164
- [k: string]: unknown | undefined;
13165
13356
  })[];
13166
13357
  }];
13167
13358
  // ----- jsdoc/require-template -----
@@ -21260,6 +21451,11 @@ interface _UnicornImportStyle_ModuleStyles {
21260
21451
  interface _UnicornImportStyle_BooleanObject {
21261
21452
  [k: string]: boolean | undefined;
21262
21453
  }
21454
+ // ----- unicorn/indent -----
21455
+ type UnicornIndent = [] | [{
21456
+ indent?: 'tab' | number;
21457
+ tabWidth?: number;
21458
+ }];
21263
21459
  // ----- unicorn/isolated-functions -----
21264
21460
  type UnicornIsolatedFunctions = [] | [{
21265
21461
  overrideGlobals?: {
@@ -21271,6 +21467,15 @@ type UnicornIsolatedFunctions = [] | [{
21271
21467
  }];
21272
21468
  // ----- unicorn/iteration-fallback-style -----
21273
21469
  type UnicornIterationFallbackStyle = [] | ['guard' | 'fallback'];
21470
+ // ----- unicorn/key-name-casing -----
21471
+ type UnicornKeyNameCasing = [] | [{
21472
+ camelCase?: boolean;
21473
+ PascalCase?: boolean;
21474
+ SCREAMING_SNAKE_CASE?: boolean;
21475
+ 'kebab-case'?: boolean;
21476
+ snake_case?: boolean;
21477
+ ignore?: string[];
21478
+ }];
21274
21479
  // ----- unicorn/logical-assignment-operators -----
21275
21480
  type UnicornLogicalAssignmentOperators = ([] | ['always'] | ['always', {
21276
21481
  enforceForIfStatements?: boolean;
@@ -21325,10 +21530,6 @@ type UnicornNoArraySort = [] | [{
21325
21530
  type UnicornNoBreakInNestedLoop = [] | [{
21326
21531
  checkContinue?: boolean;
21327
21532
  }];
21328
- // ----- unicorn/no-deprecated-css-features -----
21329
- type UnicornNoDeprecatedCssFeatures = [] | [{
21330
- allow?: string[];
21331
- }];
21332
21533
  // ----- unicorn/no-empty-file -----
21333
21534
  type UnicornNoEmptyFile = [] | [{
21334
21535
  allowComments?: boolean;
@@ -21377,9 +21578,9 @@ type UnicornNoNull = [] | [{
21377
21578
  type UnicornNoTypeofUndefined = [] | [{
21378
21579
  checkGlobalVariables?: boolean;
21379
21580
  }];
21380
- // ----- unicorn/no-unknown-pseudo-selectors -----
21381
- type UnicornNoUnknownPseudoSelectors = [] | [{
21382
- allow?: string[];
21581
+ // ----- unicorn/no-unnecessary-parameters -----
21582
+ type UnicornNoUnnecessaryParameters = [] | [{
21583
+ minimumCallCount?: number;
21383
21584
  }];
21384
21585
  // ----- unicorn/no-unnecessary-polyfills -----
21385
21586
  type UnicornNoUnnecessaryPolyfills = [] | [{
@@ -21391,10 +21592,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
21391
21592
  type UnicornNoUnreadableArrayDestructuring = [] | [{
21392
21593
  maximumIgnoredElements?: number;
21393
21594
  }];
21394
- // ----- unicorn/no-unscoped-css-nesting-selector -----
21395
- type UnicornNoUnscopedCssNestingSelector = [] | [{
21396
- scopingRootAtRules?: string[];
21397
- }];
21398
21595
  // ----- unicorn/no-useless-undefined -----
21399
21596
  type UnicornNoUselessUndefined = [] | [{
21400
21597
  checkArguments?: boolean;
@@ -21451,6 +21648,7 @@ type UnicornPreferAt = [] | [{
21451
21648
  // ----- unicorn/prefer-combined-guards -----
21452
21649
  type UnicornPreferCombinedGuards = [] | [{
21453
21650
  checkCompoundConditions?: boolean;
21651
+ checkMultiStatementBodies?: boolean;
21454
21652
  }];
21455
21653
  // ----- unicorn/prefer-continue -----
21456
21654
  type UnicornPreferContinue = [] | [{
@@ -21467,10 +21665,6 @@ type UnicornPreferEarlyReturn = [] | [{
21467
21665
  maximumStatements?: number;
21468
21666
  checkShortBodies?: boolean;
21469
21667
  }];
21470
- // ----- unicorn/prefer-explicit-viewport-units -----
21471
- type UnicornPreferExplicitViewportUnits = [] | [{
21472
- unit?: 'dvh' | 'svh' | 'lvh';
21473
- }];
21474
21668
  // ----- unicorn/prefer-export-from -----
21475
21669
  type UnicornPreferExportFrom = [] | [{
21476
21670
  checkUsedVariables?: boolean;
@@ -21514,6 +21708,10 @@ type UnicornPreferSetHas = [] | [{
21514
21708
  }];
21515
21709
  // ----- unicorn/prefer-short-arrow-method -----
21516
21710
  type UnicornPreferShortArrowMethod = [] | ['always' | 'consistent-as-needed'];
21711
+ // ----- unicorn/prefer-simplified-conditions -----
21712
+ type UnicornPreferSimplifiedConditions = [] | [{
21713
+ negatedConditions?: 'simplify' | 'expand';
21714
+ }];
21517
21715
  // ----- unicorn/prefer-single-call -----
21518
21716
  type UnicornPreferSingleCall = [] | [{
21519
21717
  ignore?: string[];
@@ -21835,7 +22033,7 @@ type Yoda = [] | ['always' | 'never'] | ['always' | 'never', {
21835
22033
  onlyEquality?: boolean;
21836
22034
  }];
21837
22035
  // Names of all the configs
21838
- type ConfigNames = 'kp/astro/setup' | 'kp/astro/component' | 'kp/astro/rules' | 'kp/astro/script-ts' | 'kp/disables/stylelint-config' | 'kp/disables/prettier' | 'kp/extra-file-extensions' | 'kp/html-script' | 'kp/html/setup' | 'kp/html' | 'kp/html/markdown-code-blocks' | 'kp/ignores' | 'kp/js/rules' | 'kp/js/cjs' | 'kp/json/setup' | 'kp/json/rules-json' | 'kp/json/rules-jsonc' | 'kp/json/rules-json5' | 'kp/json/rules' | 'kp/json/rules-settings' | 'kp/json/rules-package' | 'kp/json/rules-tsconfig' | 'kp/json/rules-overrides' | 'kp/jsx/rules' | 'kp/markdown/remark' | 'kp/markdown/code-blocks' | 'kp/mdx/remark' | 'kp/mdx/code-blocks' | 'kp/react/setup' | 'kp/react/rules' | 'kp/react/disable-type-aware' | 'kp/svelte/setup' | 'kp/svelte/scripts' | 'kp/svelte/component' | 'kp/svelte/rules' | 'kp/svelte/sveltekit-routes' | 'kp/svelte/sveltekit-app' | 'kp/svelte/modules' | 'kp/test/setup' | 'kp/test/rules' | 'kp/toml/setup' | 'kp/toml/rules' | 'kp/ts/rules' | 'kp/ts/dts' | 'kp/tsx/rules' | 'kp/yaml/setup' | 'kp/yaml/rules';
22036
+ type ConfigNames = 'kp/astro/setup' | 'kp/astro/component' | 'kp/astro/rules' | 'kp/astro/script-ts' | 'kp/disables/config-files' | 'kp/disables/stylelint-config' | 'kp/disables/prettier' | 'kp/extra-file-extensions' | 'kp/html-script' | 'kp/html/setup' | 'kp/html' | 'kp/html/markdown-code-blocks' | 'kp/ignores' | 'kp/js/rules' | 'kp/js/cjs' | 'kp/json/setup' | 'kp/json/rules-json' | 'kp/json/rules-jsonc' | 'kp/json/rules-json5' | 'kp/json/rules' | 'kp/json/rules-settings' | 'kp/json/rules-package' | 'kp/json/rules-tsconfig' | 'kp/json/rules-overrides' | 'kp/jsx/rules' | 'kp/markdown/remark' | 'kp/markdown/code-blocks' | 'kp/markdown/agent-skills' | 'kp/markdown/agent-skills-code-blocks' | 'kp/mdx/remark' | 'kp/mdx/code-blocks' | 'kp/react/setup' | 'kp/react/rules' | 'kp/react/disable-type-aware' | 'kp/svelte/setup' | 'kp/svelte/scripts' | 'kp/svelte/component' | 'kp/svelte/rules' | 'kp/svelte/sveltekit-routes' | 'kp/svelte/sveltekit-app' | 'kp/svelte/modules' | 'kp/test/setup' | 'kp/test/rules' | 'kp/toml/setup' | 'kp/toml/rules' | 'kp/ts/rules' | 'kp/ts/dts' | 'kp/tsx/rules' | 'kp/yaml/setup' | 'kp/yaml/rules';
21839
22037
  //#endregion
21840
22038
  //#region src/types.d.ts
21841
22039
  type Awaitable<T> = Promise<T> | T;
@@ -22124,6 +22322,7 @@ export declare function react(options?: OptionsOverrides & OptionsTsconfigRootDi
22124
22322
  //#endregion
22125
22323
  //#region src/configs/svelte.d.ts
22126
22324
  export declare function svelte(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware & {
22325
+ packageRootDirectory?: string;
22127
22326
  typeAwareJavaScript?: boolean;
22128
22327
  }): Promise<TypedFlatConfigItem[]>;
22129
22328
  //#endregion
@@ -22174,6 +22373,9 @@ export declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
22174
22373
  export declare const GLOB_MDX_CODE = "**/*.mdx/**/*.?([cm])[jt]s?(x)";
22175
22374
  export declare const GLOB_MARKDOWN_HTML_CODE = "**/*.md/**/*.htm?(l)";
22176
22375
  export declare const GLOB_MDX_HTML_CODE = "**/*.mdx/**/*.htm?(l)";
22376
+ export declare const GLOB_AGENT_SKILL = "**/skills/*/SKILL.md";
22377
+ export declare const GLOB_AGENT_SKILL_MARKDOWN_CODE = "**/skills/**/*.md/**/*.?([cm])[jt]s?(x)";
22378
+ export declare const GLOB_CONFIG_FILES: string[];
22177
22379
  export declare const GLOB_TESTS: string[];
22178
22380
  export declare const GLOB_ALL_SRC: string[];
22179
22381
  export declare const GLOB_EXCLUDE: string[];