@shayanthenerd/eslint-config 0.33.0 → 0.34.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.
@@ -2047,6 +2047,11 @@ export interface ESLintSchema {
2047
2047
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
2048
2048
  */
2049
2049
  '@typescript-eslint/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
2050
+ /**
2051
+ * Disallow assigning non-enum values to enum typed locations
2052
+ * @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
2053
+ */
2054
+ '@typescript-eslint/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
2050
2055
  /**
2051
2056
  * Disallow comparing an enum value with a non-enum value
2052
2057
  * @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
@@ -2899,6 +2904,121 @@ export interface ESLintSchema {
2899
2904
  * @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
2900
2905
  */
2901
2906
  'css/use-layers'?: Linter.RuleEntry<CssUseLayers>;
2907
+ /**
2908
+ * Enforce lowercase CSS syntax.
2909
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/lowercase.md
2910
+ */
2911
+ 'cssicorn/lowercase'?: Linter.RuleEntry<[]>;
2912
+ /**
2913
+ * Disallow declarations after nested rules.
2914
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-declarations-after-nested-rules.md
2915
+ */
2916
+ 'cssicorn/no-declarations-after-nested-rules'?: Linter.RuleEntry<[]>;
2917
+ /**
2918
+ * Disallow deprecated CSS features.
2919
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-deprecated-features.md
2920
+ */
2921
+ 'cssicorn/no-deprecated-features'?: Linter.RuleEntry<CssicornNoDeprecatedFeatures>;
2922
+ /**
2923
+ * Disallow lower-specificity selectors from following higher-specificity selectors that set the same property.
2924
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-descending-specificity.md
2925
+ */
2926
+ 'cssicorn/no-descending-specificity'?: Linter.RuleEntry<[]>;
2927
+ /**
2928
+ * Disallow duplicate font family names.
2929
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-font-family-names.md
2930
+ */
2931
+ 'cssicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
2932
+ /**
2933
+ * Disallow duplicate properties within CSS declaration blocks.
2934
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-properties.md
2935
+ */
2936
+ 'cssicorn/no-duplicate-properties'?: Linter.RuleEntry<[]>;
2937
+ /**
2938
+ * Disallow duplicate CSS selectors.
2939
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-selectors.md
2940
+ */
2941
+ 'cssicorn/no-duplicate-selectors'?: Linter.RuleEntry<[]>;
2942
+ /**
2943
+ * Disallow unknown media features and invalid values for known media features.
2944
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-invalid-media-features.md
2945
+ */
2946
+ 'cssicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
2947
+ /**
2948
+ * Disallow nesting under selector lists with mixed specificity.
2949
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-nesting-with-mixed-specificity.md
2950
+ */
2951
+ 'cssicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
2952
+ /**
2953
+ * Disallow longhand properties that can be combined into a shorthand.
2954
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-longhand-properties.md
2955
+ */
2956
+ 'cssicorn/no-redundant-longhand-properties'?: Linter.RuleEntry<CssicornNoRedundantLonghandProperties>;
2957
+ /**
2958
+ * Disallow nested style rules that do not modify the parent selector.
2959
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-nested-style-rules.md
2960
+ */
2961
+ 'cssicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
2962
+ /**
2963
+ * Disallow redundant values in CSS shorthand properties.
2964
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-shorthand-values.md
2965
+ */
2966
+ 'cssicorn/no-redundant-shorthand-values'?: Linter.RuleEntry<[]>;
2967
+ /**
2968
+ * Disallow self-references in CSS custom properties.
2969
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-self-referencing-custom-properties.md
2970
+ */
2971
+ 'cssicorn/no-self-referencing-custom-properties'?: Linter.RuleEntry<[]>;
2972
+ /**
2973
+ * Disallow unknown animations.
2974
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-animations.md
2975
+ */
2976
+ 'cssicorn/no-unknown-animations'?: Linter.RuleEntry<[]>;
2977
+ /**
2978
+ * Disallow unknown and noncanonical CSS annotations.
2979
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-annotations.md
2980
+ */
2981
+ 'cssicorn/no-unknown-annotations'?: Linter.RuleEntry<[]>;
2982
+ /**
2983
+ * Disallow unknown pseudo-class and pseudo-element selectors.
2984
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-pseudo-selectors.md
2985
+ */
2986
+ 'cssicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<CssicornNoUnknownPseudoSelectors>;
2987
+ /**
2988
+ * Disallow unscoped CSS nesting selectors.
2989
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unscoped-nesting-selector.md
2990
+ */
2991
+ 'cssicorn/no-unscoped-nesting-selector'?: Linter.RuleEntry<CssicornNoUnscopedNestingSelector>;
2992
+ /**
2993
+ * Disallow units on zero CSS lengths.
2994
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-zero-length-unit.md
2995
+ */
2996
+ 'cssicorn/no-zero-length-unit'?: Linter.RuleEntry<[]>;
2997
+ /**
2998
+ * Prefer explicit viewport units.
2999
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-explicit-viewport-units.md
3000
+ */
3001
+ 'cssicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<CssicornPreferExplicitViewportUnits>;
3002
+ /**
3003
+ * Prefer modern media feature range syntax.
3004
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-media-feature-range-syntax.md
3005
+ */
3006
+ 'cssicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
3007
+ /**
3008
+ * Prefer modern CSS color and pseudo-element syntax.
3009
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-modern-syntax.md
3010
+ */
3011
+ 'cssicorn/prefer-modern-syntax'?: Linter.RuleEntry<[]>;
3012
+ /**
3013
+ * Prefer short hexadecimal color notation.
3014
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-short-hex-color.md
3015
+ */
3016
+ 'cssicorn/prefer-short-hex-color'?: Linter.RuleEntry<[]>;
3017
+ /**
3018
+ * Require descriptors in CSS `@property` rules.
3019
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/require-property-descriptors.md
3020
+ */
3021
+ 'cssicorn/require-property-descriptors'?: Linter.RuleEntry<[]>;
2902
3022
  /**
2903
3023
  * Enforce consistent brace style for all control statements
2904
3024
  * @see https://eslint.org/docs/latest/rules/curly
@@ -6350,1841 +6470,1992 @@ export interface ESLintSchema {
6350
6470
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6351
6471
  /**
6352
6472
  * Prefer better DOM traversal APIs.
6353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
6473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
6354
6474
  */
6355
6475
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6356
6476
  /**
6357
6477
  * Removed. Prefer `eslint-plugin-regexp`
6358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6359
6479
  * @deprecated
6360
6480
  */
6361
6481
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6362
6482
  /**
6363
6483
  * Enforce a specific parameter name in catch clauses.
6364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
6484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
6365
6485
  */
6366
6486
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6367
6487
  /**
6368
6488
  * Enforce consistent class references in static methods.
6369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
6489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
6370
6490
  */
6371
6491
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
6492
+ /**
6493
+ * Enforce consistent spacing before and after commas in JSON.
6494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
6495
+ */
6496
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
6372
6497
  /**
6373
6498
  * Enforce better comment content.
6374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
6499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
6375
6500
  */
6376
6501
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6377
6502
  /**
6378
6503
  * Enforce a consistent return style for multiline arrow function bodies.
6379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
6504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
6380
6505
  */
6381
6506
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
6382
6507
  /**
6383
6508
  * Enforce consistent assertion style with `node:assert`.
6384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
6509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
6385
6510
  */
6386
6511
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6387
6512
  /**
6388
6513
  * Enforce consistent naming for boolean names.
6389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
6514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
6390
6515
  */
6391
6516
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
6392
6517
  /**
6393
6518
  * Enforce consistent class member order.
6394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
6519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
6395
6520
  */
6396
6521
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
6397
6522
  /**
6398
6523
  * Enforce consistent spelling of compound words in identifiers.
6399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
6524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
6400
6525
  */
6401
6526
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
6402
6527
  /**
6403
6528
  * Enforce consistent conditional object spread style.
6404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
6405
6530
  */
6406
6531
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6407
6532
  /**
6408
6533
  * Prefer passing `Date` directly to the constructor when cloning.
6409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
6410
6535
  */
6411
6536
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6412
6537
  /**
6413
6538
  * Use destructured variables over properties.
6414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
6539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
6415
6540
  */
6416
6541
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6417
6542
  /**
6418
6543
  * Prefer consistent types when spreading a ternary in an array literal.
6419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
6544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
6420
6545
  */
6421
6546
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6422
6547
  /**
6423
6548
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
6549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
6425
6550
  */
6426
6551
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6427
6552
  /**
6428
6553
  * Enforce consistent decorator position on exported classes.
6429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
6554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
6430
6555
  */
6431
6556
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6432
6557
  /**
6433
6558
  * Move function definitions to the highest possible scope.
6434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
6559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
6435
6560
  */
6436
6561
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6437
6562
  /**
6438
6563
  * Enforce function syntax by role.
6439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
6564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
6440
6565
  */
6441
6566
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
6442
6567
  /**
6443
6568
  * Enforce consistent JSON file reads before `JSON.parse()`.
6444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
6569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
6445
6570
  */
6446
6571
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
6447
6572
  /**
6448
6573
  * Enforce consistent optional chaining for same-base member access.
6449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
6574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
6450
6575
  */
6451
6576
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6452
6577
  /**
6453
6578
  * Enforce consistent style for escaping `${` in template literals.
6454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
6579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
6455
6580
  */
6456
6581
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6457
6582
  /**
6458
6583
  * Enforce consistent labels on tuple type elements.
6459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
6584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
6460
6585
  */
6461
6586
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6462
6587
  /**
6463
6588
  * Enforce correct `Error` subclassing.
6464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
6589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
6465
6590
  */
6466
6591
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6467
6592
  /**
6468
6593
  * Enforce consistent default export declarations.
6469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
6594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
6470
6595
  */
6471
6596
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
6472
6597
  /**
6473
6598
  * Enforce consistent style for DOM element dataset access.
6474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
6599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
6475
6600
  */
6476
6601
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6477
6602
  /**
6478
6603
  * Enforce no spaces between braces.
6479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
6604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
6480
6605
  */
6481
6606
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6482
6607
  /**
6483
6608
  * Enforce passing a `message` value when creating a built-in error.
6484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
6609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
6485
6610
  */
6486
6611
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6487
6612
  /**
6488
6613
  * Require escape sequences to use uppercase or lowercase values.
6489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
6614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
6490
6615
  */
6491
6616
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6492
6617
  /**
6493
6618
  * Add expiration conditions to TODO comments.
6494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
6619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
6495
6620
  */
6496
6621
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6497
6622
  /**
6498
6623
  * Enforce explicitly comparing the `length` or `size` property of a value.
6499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
6624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
6500
6625
  */
6501
6626
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6502
6627
  /**
6503
6628
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
6504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
6629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
6505
6630
  */
6506
6631
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
6507
6632
  /**
6508
6633
  * Enforce a case style for filenames and directory names.
6509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
6634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
6510
6635
  */
6511
6636
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6512
6637
  /**
6513
6638
  * Require identifiers to match a specified regular expression.
6514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
6639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
6515
6640
  */
6516
6641
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6517
6642
  /**
6518
6643
  * Enforce specific import styles per module.
6519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
6644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
6520
6645
  */
6521
6646
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6647
+ /**
6648
+ * Enforce consistent indentation in JSON and CSS.
6649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
6650
+ */
6651
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
6522
6652
  /**
6523
6653
  * Prevent usage of variables from outside the scope of isolated functions.
6524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
6654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
6525
6655
  */
6526
6656
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6527
6657
  /**
6528
6658
  * Enforce a consistent style for optional loop sources.
6529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
6659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
6530
6660
  */
6531
6661
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
6662
+ /**
6663
+ * Enforce a case style for data keys.
6664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
6665
+ */
6666
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
6532
6667
  /**
6533
6668
  * Require or disallow logical assignment operator shorthand
6534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
6669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
6535
6670
  */
6536
6671
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
6537
6672
  /**
6538
6673
  * Limit the depth of nested calls.
6539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
6674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
6540
6675
  */
6541
6676
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
6542
6677
  /**
6543
6678
  * Enforce replacements for variable, property, and filenames.
6544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
6679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
6545
6680
  */
6546
6681
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
6547
6682
  /**
6548
6683
  * Enforce correct use of `new` for builtin constructors.
6549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
6684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
6550
6685
  */
6551
6686
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6552
6687
  /**
6553
6688
  * Enforce specifying rules to disable in `eslint-disable` comments.
6554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
6689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
6555
6690
  */
6556
6691
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6557
6692
  /**
6558
6693
  * Disallow recursive access to `this` within getters and setters.
6559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
6694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
6560
6695
  */
6561
6696
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6562
6697
  /**
6563
6698
  * Disallow bitwise operators where a logical operator was likely intended.
6564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
6699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
6565
6700
  */
6566
6701
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6567
6702
  /**
6568
6703
  * Disallow anonymous functions and classes as the default export.
6569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
6704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
6570
6705
  */
6571
6706
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6572
6707
  /**
6573
6708
  * Prevent passing a function reference directly to iterator methods.
6574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
6709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
6575
6710
  */
6576
6711
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6577
6712
  /**
6578
6713
  * Disallow array accumulation with `Array#concat()` in loops.
6579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
6714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
6580
6715
  */
6581
6716
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
6582
6717
  /**
6583
6718
  * Disallow using reference values as `Array#fill()` values.
6584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
6719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
6585
6720
  */
6586
6721
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
6587
6722
  /**
6588
6723
  * Disallow `.fill()` after `Array.from({length: …})`.
6589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
6724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
6590
6725
  */
6591
6726
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
6592
6727
  /**
6593
6728
  * Disallow front-of-array mutation.
6594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
6729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
6595
6730
  */
6596
6731
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6597
6732
  /**
6598
6733
  * Disallow using the `this` argument in array methods.
6599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
6734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
6600
6735
  */
6601
6736
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6602
6737
  /**
6603
6738
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6605
6740
  * @deprecated
6606
6741
  */
6607
6742
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6608
6743
  /**
6609
6744
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
6611
6746
  */
6612
6747
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6613
6748
  /**
6614
6749
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
6616
6751
  */
6617
6752
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6618
6753
  /**
6619
6754
  * Prefer `Array#toSorted()` over `Array#sort()`.
6620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
6621
6756
  */
6622
6757
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6623
6758
  /**
6624
6759
  * Disallow sorting arrays to get the minimum or maximum value.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
6626
6761
  */
6627
6762
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
6628
6763
  /**
6629
6764
  * Prefer `Array#toSpliced()` over `Array#splice()`.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
6765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
6631
6766
  */
6632
6767
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
6633
6768
  /**
6634
- * Disallow asterisk prefixes in documentation comments.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6769
+ * Disallow asterisk prefixes in multiline comments.
6770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6636
6771
  */
6637
6772
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
6638
6773
  /**
6639
6774
  * Disallow asynchronous callbacks in synchronous iterator helpers.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
6775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
6641
6776
  */
6642
6777
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
6643
6778
  /**
6644
6779
  * Disallow async functions as `Promise#finally()` callbacks.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
6780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
6646
6781
  */
6647
6782
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
6648
6783
  /**
6649
6784
  * Disallow member access from await expression.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
6785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
6651
6786
  */
6652
6787
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6653
6788
  /**
6654
6789
  * Disallow using `await` in `Promise` method parameters.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
6790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
6656
6791
  */
6657
6792
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6658
6793
  /**
6659
6794
  * Disallow barrel files.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
6795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
6661
6796
  */
6662
6797
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
6663
6798
  /**
6664
6799
  * Disallow unnecessary `Blob` to `File` conversion.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
6800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
6666
6801
  */
6667
6802
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
6668
6803
  /**
6669
6804
  * Disallow boolean-returning sort comparators.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
6805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
6671
6806
  */
6672
6807
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
6673
6808
  /**
6674
6809
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
6675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
6810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
6676
6811
  */
6677
6812
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
6678
6813
  /**
6679
6814
  * Prefer drawing canvases directly instead of converting them to images.
6680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
6815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
6681
6816
  */
6682
6817
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
6683
6818
  /**
6684
6819
  * Disallow chained comparisons such as `a < b < c`.
6685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
6820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
6686
6821
  */
6687
6822
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
6688
6823
  /**
6689
6824
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
6690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
6825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
6691
6826
  */
6692
6827
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
6693
6828
  /**
6694
6829
  * Disallow dynamic object property existence checks.
6695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
6830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
6696
6831
  */
6697
6832
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
6833
+ /**
6834
+ * Disallow conflicting CSS query and HTML form constraints.
6835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
6836
+ */
6837
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
6698
6838
  /**
6699
6839
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
6700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
6840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
6701
6841
  */
6702
6842
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
6703
6843
  /**
6704
6844
  * Disallow confusing uses of `Array#with()`.
6705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
6845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
6706
6846
  */
6707
6847
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
6708
6848
  /**
6709
6849
  * Do not use leading/trailing space between `console.log` parameters.
6710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
6850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
6711
6851
  */
6712
6852
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6713
6853
  /**
6714
6854
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
6715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
6855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
6716
6856
  */
6717
6857
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
6718
6858
  /**
6719
6859
  * Disallow declarations before conditional early exits when they are only used after the exit.
6720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
6860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
6721
6861
  */
6722
6862
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
6723
6863
  /**
6724
- * Disallow deprecated CSS features.
6725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
6864
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
6865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
6866
+ * @deprecated
6726
6867
  */
6727
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
6868
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
6728
6869
  /**
6729
6870
  * Do not use `document.cookie` directly.
6730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
6871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
6731
6872
  */
6732
6873
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6733
6874
  /**
6734
6875
  * Disallow two comparisons of the same operands that can be combined into one.
6735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
6876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
6736
6877
  */
6737
6878
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
6738
6879
  /**
6739
- * Disallow duplicate CSS selectors.
6740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
6880
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
6881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
6882
+ * @deprecated
6741
6883
  */
6742
6884
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
6743
6885
  /**
6744
- * Disallow duplicate font family names.
6745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
6886
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
6887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
6888
+ * @deprecated
6746
6889
  */
6747
6890
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
6748
6891
  /**
6749
6892
  * Disallow duplicate adjacent branches in if chains.
6750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
6893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
6751
6894
  */
6752
6895
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
6753
6896
  /**
6754
6897
  * Disallow adjacent duplicate operands in logical expressions.
6755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
6898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
6756
6899
  */
6757
6900
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
6758
6901
  /**
6759
6902
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
6760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
6903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
6761
6904
  */
6762
6905
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
6763
6906
  /**
6764
6907
  * Disallow duplicate values in `Set` constructor array literals.
6765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
6908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
6766
6909
  */
6767
6910
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
6768
6911
  /**
6769
6912
  * Disallow empty files.
6770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
6913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
6771
6914
  */
6772
6915
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
6916
+ /**
6917
+ * Disallow empty link text in Markdown.
6918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
6919
+ */
6920
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
6773
6921
  /**
6774
6922
  * Disallow assigning to built-in error properties.
6775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
6923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
6776
6924
  */
6777
6925
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
6778
6926
  /**
6779
6927
  * Disallow exports in scripts.
6780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
6928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
6781
6929
  */
6782
6930
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
6783
6931
  /**
6784
6932
  * Prefer `for…of` over the `forEach` method.
6785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
6933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
6786
6934
  */
6787
6935
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
6788
6936
  /**
6789
6937
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
6938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
6791
6939
  */
6792
6940
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6793
6941
  /**
6794
6942
  * Disallow assigning properties on the global object.
6795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
6943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
6796
6944
  */
6797
6945
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
6798
6946
  /**
6799
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
6800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6947
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
6948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6801
6949
  * @deprecated
6802
6950
  */
6803
6951
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6804
6952
  /**
6805
6953
  * Disallow immediate mutation after variable assignment.
6806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
6954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
6807
6955
  */
6808
6956
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
6809
6957
  /**
6810
6958
  * Disallow impossible comparisons against `.length` or `.size`.
6811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
6959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
6812
6960
  */
6813
6961
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
6962
+ /**
6963
+ * Disallow class accessors that hide an inherited getter or setter.
6964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
6965
+ */
6966
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
6814
6967
  /**
6815
6968
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
6816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
6969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
6817
6970
  */
6818
6971
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
6819
6972
  /**
6820
6973
  * Disallow incorrect template literal interpolation syntax.
6821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6822
6975
  */
6823
6976
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
6977
+ /**
6978
+ * Disallow ineffective CSP directives in `<meta>` elements.
6979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
6980
+ */
6981
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
6824
6982
  /**
6825
6983
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6827
6985
  * @deprecated
6828
6986
  */
6829
6987
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6830
6988
  /**
6831
6989
  * Disallow `instanceof` with built-in objects
6832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
6990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
6833
6991
  */
6834
6992
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6835
6993
  /**
6836
6994
  * Disallow calling functions and constructors with an invalid number of arguments.
6837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
6995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
6838
6996
  */
6839
6997
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
6998
+ /**
6999
+ * Disallow invalid values for HTML boolean attributes.
7000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
7001
+ */
7002
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
6840
7003
  /**
6841
7004
  * Disallow comparing a single character from a string to a multi-character string.
6842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
7005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
6843
7006
  */
6844
7007
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7008
+ /**
7009
+ * Disallow invalid DOM tokens.
7010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
7011
+ */
7012
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
6845
7013
  /**
6846
7014
  * Disallow invalid options in `fetch()` and `new Request()`.
6847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
7015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
6848
7016
  */
6849
7017
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6850
7018
  /**
6851
7019
  * Disallow invalid `accept` values on file inputs.
6852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
7020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
6853
7021
  */
6854
7022
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
6855
7023
  /**
6856
- * Disallow unknown media features and invalid values for known media features.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
7024
+ * Disallow invalid subresource integrity metadata.
7025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
7026
+ */
7027
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
7028
+ /**
7029
+ * Disallow invalid or ignored Intl options.
7030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
7031
+ */
7032
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
7033
+ /**
7034
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
7035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
7036
+ * @deprecated
6858
7037
  */
6859
7038
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
7039
+ /**
7040
+ * Disallow invalid property descriptors.
7041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
7042
+ */
7043
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
6860
7044
  /**
6861
7045
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
7046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
6863
7047
  */
6864
7048
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7049
+ /**
7050
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
7051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
7052
+ */
7053
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
7054
+ /**
7055
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
7056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
7057
+ */
7058
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
7059
+ /**
7060
+ * Disallow statically known invalid Temporal arithmetic.
7061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
7062
+ */
7063
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
7064
+ /**
7065
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
7066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
7067
+ */
7068
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
6865
7069
  /**
6866
7070
  * Disallow invalid implementations of well-known symbol methods.
6867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6868
7072
  */
6869
7073
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7074
+ /**
7075
+ * Disallow `javascript:` URLs in Markdown.
7076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
7077
+ */
7078
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
6870
7079
  /**
6871
7080
  * Disallow identifiers starting with `new` or `class`.
6872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
7081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
6873
7082
  */
6874
7083
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6875
7084
  /**
6876
7085
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
6877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
7086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
6878
7087
  */
6879
7088
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
6880
7089
  /**
6881
7090
  * Disallow event-control method calls after the synchronous event dispatch has finished.
6882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
7091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
6883
7092
  */
6884
7093
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7094
+ /**
7095
+ * Disallow empty lines at the beginning of a file.
7096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
7097
+ */
7098
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
6885
7099
  /**
6886
7100
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6888
7102
  * @deprecated
6889
7103
  */
6890
7104
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6891
7105
  /**
6892
7106
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
6894
7108
  */
6895
7109
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6896
7110
  /**
6897
7111
  * Disallow mutating a loop iterable during iteration.
6898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
7112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
6899
7113
  */
6900
7114
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7115
+ /**
7116
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
7117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
7118
+ */
7119
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
6901
7120
  /**
6902
7121
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
7122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
6904
7123
  */
6905
7124
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6906
7125
  /**
6907
7126
  * Disallow manually wrapped comments.
6908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
7127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
6909
7128
  */
6910
7129
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
6911
7130
  /**
6912
7131
  * Disallow checking a Map key before accessing a different key.
6913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
7132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
6914
7133
  */
6915
7134
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
6916
7135
  /**
6917
7136
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
6918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
7137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
6919
7138
  */
6920
7139
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
6921
7140
  /**
6922
7141
  * Disallow references to missing local resources.
6923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
7142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
6924
7143
  */
6925
7144
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
6926
7145
  /**
6927
7146
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
6928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
6929
7148
  */
6930
7149
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
6931
7150
  /**
6932
7151
  * Disallow named usage of default import and export.
6933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
7152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
6934
7153
  */
6935
7154
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6936
7155
  /**
6937
7156
  * Disallow negated array predicate calls.
6938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
7157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
6939
7158
  */
6940
7159
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
6941
7160
  /**
6942
7161
  * Disallow negated comparisons.
6943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
7162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
6944
7163
  */
6945
7164
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
6946
7165
  /**
6947
7166
  * Disallow negated conditions.
6948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
7167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
6949
7168
  */
6950
7169
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6951
7170
  /**
6952
7171
  * Disallow negated expression in equality check.
6953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
7172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
6954
7173
  */
6955
7174
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6956
7175
  /**
6957
7176
  * Disallow nested ternary expressions.
6958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
7177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
6959
7178
  */
6960
7179
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6961
7180
  /**
6962
- * Disallow nesting under selector lists with mixed specificity.
6963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
7181
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
7182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
7183
+ * @deprecated
6964
7184
  */
6965
7185
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
6966
7186
  /**
6967
7187
  * Disallow `new Array()`.
6968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
7188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
6969
7189
  */
6970
7190
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6971
7191
  /**
6972
7192
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
7193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
6974
7194
  */
6975
7195
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6976
7196
  /**
6977
7197
  * Disallow non-function values with function-style verb prefixes.
6978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
7198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
6979
7199
  */
6980
7200
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
6981
7201
  /**
6982
7202
  * Disallow non-standard properties on built-in objects.
6983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
7203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
6984
7204
  */
6985
7205
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
6986
7206
  /**
6987
7207
  * Disallow the use of the `null` literal.
6988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
7208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
6989
7209
  */
6990
7210
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6991
7211
  /**
6992
7212
  * Disallow the use of objects as default parameters.
6993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
7213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
6994
7214
  */
6995
7215
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6996
7216
  /**
6997
7217
  * Disallow `Object` methods with `Map` or `Set`.
6998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
7218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
6999
7219
  */
7000
7220
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7001
7221
  /**
7002
7222
  * Disallow optional chaining on undeclared variables.
7003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7004
7224
  */
7005
7225
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7226
+ /**
7227
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
7228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
7229
+ */
7230
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
7006
7231
  /**
7007
7232
  * Disallow `process.exit()`.
7008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
7233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
7009
7234
  */
7010
7235
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7011
7236
  /**
7012
7237
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
7238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
7014
7239
  */
7015
7240
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7016
7241
  /**
7017
- * Disallow nested style rules that do not modify the parent selector.
7018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
7242
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
7243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
7244
+ * @deprecated
7019
7245
  */
7020
7246
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
7021
7247
  /**
7022
7248
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
7249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
7024
7250
  */
7025
7251
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7026
7252
  /**
7027
7253
  * Disallow selector syntax in DOM names.
7028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
7254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
7029
7255
  */
7030
7256
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7031
7257
  /**
7032
7258
  * Disallow shorthand properties that override related longhand properties.
7033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
7259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
7034
7260
  */
7035
7261
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7036
7262
  /**
7037
7263
  * Disallow passing single-element arrays to `Promise` methods.
7038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
7264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
7039
7265
  */
7040
7266
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7041
7267
  /**
7042
7268
  * Disallow classes that only have static members.
7043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
7269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
7044
7270
  */
7045
7271
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7046
7272
  /**
7047
7273
  * Prefer comparing values directly over subtracting and comparing to `0`.
7048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
7274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
7049
7275
  */
7050
7276
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7051
7277
  /**
7052
7278
  * Disallow `then` property.
7053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
7279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
7054
7280
  */
7055
7281
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7056
7282
  /**
7057
7283
  * Disallow assigning `this` to a variable.
7058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
7284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
7059
7285
  */
7060
7286
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7061
7287
  /**
7062
7288
  * Disallow `this` outside of classes.
7063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
7289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
7064
7290
  */
7065
7291
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7066
7292
  /**
7067
7293
  * Disallow assigning to top-level variables from inside functions.
7068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
7294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
7069
7295
  */
7070
7296
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7071
7297
  /**
7072
7298
  * Disallow top-level side effects in exported modules.
7073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
7299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
7074
7300
  */
7075
7301
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7076
7302
  /**
7077
7303
  * Disallow `all` as a transition property.
7078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
7304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
7079
7305
  */
7080
7306
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7081
7307
  /**
7082
7308
  * Disallow comparing `undefined` using `typeof`.
7083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
7309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
7084
7310
  */
7085
7311
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7086
7312
  /**
7087
7313
  * Disallow referencing methods without calling them.
7088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
7314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
7089
7315
  */
7090
7316
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7091
7317
  /**
7092
7318
  * Require class members to be declared.
7093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
7319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
7094
7320
  */
7095
7321
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7096
7322
  /**
7097
- * Disallow unknown and noncanonical CSS annotations.
7098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
7323
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
7324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
7325
+ * @deprecated
7099
7326
  */
7100
7327
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
7101
7328
  /**
7102
- * Disallow unknown pseudo-class and pseudo-element selectors.
7103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
7329
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
7330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
7331
+ * @deprecated
7104
7332
  */
7105
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
7333
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
7106
7334
  /**
7107
7335
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7109
7337
  */
7110
7338
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7111
7339
  /**
7112
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
7340
+ * Disallow unnecessary use of `Array#flatMap()`.
7341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
7114
7342
  */
7115
7343
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7116
7344
  /**
7117
7345
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
7346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
7119
7347
  */
7120
7348
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7121
7349
  /**
7122
7350
  * Disallow awaiting non-promise values.
7123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
7351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
7124
7352
  */
7125
7353
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7126
7354
  /**
7127
7355
  * Disallow unnecessary comparisons against boolean literals.
7128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7129
7357
  */
7130
7358
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7131
7359
  /**
7132
7360
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
7361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
7134
7362
  */
7135
7363
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7136
7364
  /**
7137
7365
  * Disallow unnecessary `globalThis` references.
7138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
7366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
7139
7367
  */
7140
7368
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7141
7369
  /**
7142
7370
  * Disallow unnecessary nested ternary expressions.
7143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
7371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
7144
7372
  */
7145
7373
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7374
+ /**
7375
+ * Disallow parameters that receive the same value at every call.
7376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
7377
+ */
7378
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
7146
7379
  /**
7147
7380
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
7381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
7149
7382
  */
7150
7383
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7151
7384
  /**
7152
7385
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
7386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
7154
7387
  */
7155
7388
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7156
7389
  /**
7157
7390
  * Disallow `Array#splice()` when simpler alternatives exist.
7158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
7391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
7159
7392
  */
7160
7393
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7161
7394
  /**
7162
7395
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
7396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
7164
7397
  */
7165
7398
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7166
7399
  /**
7167
7400
  * Disallow unreadable array destructuring.
7168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
7401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
7169
7402
  */
7170
7403
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7171
7404
  /**
7172
7405
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
7406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
7174
7407
  */
7175
7408
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7176
7409
  /**
7177
7410
  * Disallow unreadable IIFEs.
7178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
7411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
7179
7412
  */
7180
7413
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7181
7414
  /**
7182
7415
  * Disallow unreadable `new` expressions.
7183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
7416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
7184
7417
  */
7185
7418
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7186
7419
  /**
7187
7420
  * Disallow unreadable object destructuring.
7188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
7421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
7189
7422
  */
7190
7423
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7191
7424
  /**
7192
7425
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
7426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
7194
7427
  */
7195
7428
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7196
7429
  /**
7197
7430
  * Disallow unsafe DOM HTML APIs.
7198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
7431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
7199
7432
  */
7200
7433
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7434
+ /**
7435
+ * Disallow known values that JSON serialization cannot represent faithfully.
7436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
7437
+ */
7438
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
7201
7439
  /**
7202
7440
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7204
7442
  */
7205
7443
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7206
7444
  /**
7207
7445
  * Disallow unsafe values as property keys.
7208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
7446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
7209
7447
  */
7210
7448
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7211
7449
  /**
7212
7450
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7214
7452
  */
7215
7453
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7216
7454
  /**
7217
7455
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
7456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
7219
7457
  */
7220
7458
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7221
7459
  /**
7222
- * Disallow unscoped CSS nesting selectors.
7223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
7460
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
7461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
7462
+ * @deprecated
7224
7463
  */
7225
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
7464
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
7226
7465
  /**
7227
7466
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
7228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
7229
7468
  * @deprecated
7230
7469
  */
7231
7470
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7232
7471
  /**
7233
7472
  * Disallow ignoring the return value of selected built-in methods.
7234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
7473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
7235
7474
  */
7236
7475
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
7237
7476
  /**
7238
7477
  * Disallow discarding lazy iterator helpers.
7239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
7478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
7240
7479
  */
7241
7480
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
7242
7481
  /**
7243
7482
  * Disallow unused object properties.
7244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
7483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
7245
7484
  */
7246
7485
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7486
+ /**
7487
+ * Disallow passing full URLs to `URLSearchParams`.
7488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
7489
+ */
7490
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
7247
7491
  /**
7248
7492
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
7493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
7250
7494
  */
7251
7495
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7252
7496
  /**
7253
7497
  * Disallow useless type coercions of values that are already of the target type.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
7498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
7255
7499
  */
7256
7500
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7257
7501
  /**
7258
7502
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
7503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
7260
7504
  */
7261
7505
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7262
7506
  /**
7263
7507
  * Disallow useless compound assignments such as `x += 0`.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
7508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
7265
7509
  */
7266
7510
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7267
7511
  /**
7268
7512
  * Disallow useless concatenation of literals.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
7513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
7270
7514
  */
7271
7515
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7272
7516
  /**
7273
7517
  * Disallow useless `continue` statements.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
7518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
7275
7519
  */
7276
7520
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7277
7521
  /**
7278
7522
  * Disallow unnecessary existence checks before deletion.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
7523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
7280
7524
  */
7281
7525
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7282
7526
  /**
7283
7527
  * Disallow `else` after a statement that exits.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
7528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
7285
7529
  */
7286
7530
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7287
7531
  /**
7288
7532
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7290
7534
  */
7291
7535
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7292
7536
  /**
7293
7537
  * Disallow useless fallback when spreading in object literals.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
7538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
7295
7539
  */
7296
7540
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7297
7541
  /**
7298
7542
  * Disallow unnecessary `.toArray()` on iterators.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
7543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
7300
7544
  */
7301
7545
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7302
7546
  /**
7303
7547
  * Disallow useless array length check.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
7548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
7305
7549
  */
7306
7550
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7307
7551
  /**
7308
7552
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
7553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
7310
7554
  */
7311
7555
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7312
7556
  /**
7313
7557
  * Disallow useless overrides of class methods.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
7558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
7315
7559
  */
7316
7560
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7317
7561
  /**
7318
7562
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
7563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
7320
7564
  */
7321
7565
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7322
7566
  /**
7323
7567
  * Disallow redundant re-exports.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
7568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
7325
7569
  */
7326
7570
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
7327
7571
  /**
7328
7572
  * Disallow simple recursive function calls that can be replaced with a loop.
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
7573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
7330
7574
  */
7331
7575
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7332
7576
  /**
7333
7577
  * Disallow unnecessary `Set` construction around `Set` methods.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
7578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
7335
7579
  */
7336
7580
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
7337
7581
  /**
7338
7582
  * Disallow unnecessary spread.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
7583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
7340
7584
  */
7341
7585
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7342
7586
  /**
7343
7587
  * Disallow useless case in switch statements.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
7588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
7345
7589
  */
7346
7590
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7347
7591
  /**
7348
7592
  * Disallow useless template literal expressions.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
7593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
7350
7594
  */
7351
7595
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7352
7596
  /**
7353
7597
  * Disallow useless `undefined`.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
7598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
7355
7599
  */
7356
7600
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7357
7601
  /**
7358
7602
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
7603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
7360
7604
  */
7361
7605
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
7362
7606
  /**
7363
7607
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
7608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
7365
7609
  */
7366
7610
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7367
7611
  /**
7368
- * Disallow number literals with zero fractions or dangling dots.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
7612
+ * Require consistent decimal numbers without redundant zeros.
7613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
7370
7614
  */
7371
7615
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7372
7616
  /**
7373
7617
  * Enforce proper case for numeric literals.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
7618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
7375
7619
  */
7376
7620
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7377
7621
  /**
7378
7622
  * Enforce the style of numeric separators by correctly grouping digits.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
7623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
7380
7624
  */
7381
7625
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7382
7626
  /**
7383
7627
  * Require assignment operator shorthand where possible.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
7628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
7385
7629
  */
7386
7630
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7387
7631
  /**
7388
7632
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
7390
7634
  */
7391
7635
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7392
7636
  /**
7393
7637
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
7395
7639
  */
7396
7640
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7397
7641
  /**
7398
7642
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
7400
7644
  */
7401
7645
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7402
7646
  /**
7403
7647
  * Prefer an options object over a boolean in `.addEventListener()`.
7404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
7405
7649
  */
7406
7650
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7407
7651
  /**
7408
7652
  * Prefer `AggregateError` when throwing collected errors.
7409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
7410
7654
  */
7411
7655
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7412
7656
  /**
7413
7657
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
7415
7659
  */
7416
7660
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7417
7661
  /**
7418
7662
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
7420
7664
  */
7421
7665
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7422
7666
  /**
7423
7667
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
7425
7669
  */
7426
7670
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7427
7671
  /**
7428
7672
  * Prefer `Array.fromAsync()` over array accumulation loops.
7429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
7430
7674
  */
7431
7675
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7432
7676
  /**
7433
7677
  * Prefer using the `Array.from()` mapping function argument.
7434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
7435
7679
  */
7436
7680
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7437
7681
  /**
7438
7682
  * Prefer `Array.from({length}, …)` when creating range arrays.
7439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
7440
7684
  */
7441
7685
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7442
7686
  /**
7443
7687
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
7445
7689
  */
7446
7690
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7447
7691
  /**
7448
7692
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
7450
7694
  */
7451
7695
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7452
7696
  /**
7453
7697
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
7455
7699
  */
7456
7700
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7457
7701
  /**
7458
7702
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
7460
7704
  */
7461
7705
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7462
7706
  /**
7463
7707
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
7708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
7465
7709
  */
7466
7710
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7467
7711
  /**
7468
7712
  * Prefer `.at()` method for index access and `String#charAt()`.
7469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
7713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
7470
7714
  */
7471
7715
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7472
7716
  /**
7473
7717
  * Prefer `await` over promise chaining.
7474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
7718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
7475
7719
  */
7476
7720
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7477
7721
  /**
7478
7722
  * Prefer `BigInt` literals over the constructor.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
7723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
7480
7724
  */
7481
7725
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7482
7726
  /**
7483
7727
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
7728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
7485
7729
  */
7486
7730
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7487
7731
  /**
7488
7732
  * Prefer block statements over IIFEs used only for scoping.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
7733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
7490
7734
  */
7491
7735
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7492
7736
  /**
7493
7737
  * Prefer directly returning boolean expressions over `if` statements.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
7738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
7495
7739
  */
7496
7740
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7497
7741
  /**
7498
7742
  * Prefer class field declarations over `this` assignments in constructors.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
7743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
7500
7744
  */
7501
7745
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7502
7746
  /**
7503
7747
  * Prefer using `Element#classList.toggle()` to toggle class names.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
7748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
7505
7749
  */
7506
7750
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7507
7751
  /**
7508
7752
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
7753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
7510
7754
  */
7511
7755
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7512
7756
  /**
7513
7757
  * Prefer combining consecutive guards with identical exit statements.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
7758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
7515
7759
  */
7516
7760
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
7517
7761
  /**
7518
7762
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
7763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
7520
7764
  */
7521
7765
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7522
7766
  /**
7523
7767
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
7768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
7525
7769
  */
7526
7770
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7527
7771
  /**
7528
- * Prefer default parameters over reassignment.
7529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
7772
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
7773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
7530
7774
  */
7531
7775
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7532
7776
  /**
7533
7777
  * Prefer direct iteration over default iterator method calls.
7534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
7778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
7535
7779
  */
7536
7780
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
7537
7781
  /**
7538
7782
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
7539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
7783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
7540
7784
  */
7541
7785
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7542
7786
  /**
7543
7787
  * Prefer `Element#append()` over `Node#appendChild()`.
7544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
7788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
7545
7789
  */
7546
7790
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7547
7791
  /**
7548
7792
  * Renamed to `unicorn/dom-node-dataset`.
7549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7550
7794
  * @deprecated
7551
7795
  */
7552
7796
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7553
7797
  /**
7554
7798
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
7799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
7556
7800
  */
7557
7801
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
7558
7802
  /**
7559
7803
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
7804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
7561
7805
  */
7562
7806
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7563
7807
  /**
7564
7808
  * Prefer `.replaceChildren()` when replacing DOM children.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
7809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
7566
7810
  */
7567
7811
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7568
7812
  /**
7569
7813
  * Prefer `.textContent` over `.innerText`.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
7814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
7571
7815
  */
7572
7816
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7573
7817
  /**
7574
7818
  * Prefer early returns over conditionals wrapping the remainder of the function body.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
7819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
7576
7820
  */
7577
7821
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
7578
7822
  /**
7579
7823
  * Prefer `else if` over adjacent `if` statements with related conditions.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
7824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
7581
7825
  */
7582
7826
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7583
7827
  /**
7584
7828
  * Prefer `Error.isError()` when checking for errors.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
7829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
7586
7830
  */
7587
7831
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7832
+ /**
7833
+ * Prefer escape sequences for irregular whitespace characters.
7834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
7835
+ */
7836
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
7588
7837
  /**
7589
7838
  * Prefer `EventTarget` over `EventEmitter`.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
7839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
7591
7840
  */
7592
7841
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7593
7842
  /**
7594
- * Prefer explicit viewport units.
7595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
7843
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
7844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
7845
+ * @deprecated
7596
7846
  */
7597
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
7847
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
7598
7848
  /**
7599
7849
  * Prefer `export…from` when re-exporting.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
7850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
7601
7851
  */
7602
7852
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7603
7853
  /**
7604
7854
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
7855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
7606
7856
  */
7607
7857
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7608
7858
  /**
7609
7859
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
7860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
7611
7861
  */
7612
7862
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
7613
7863
  /**
7614
7864
  * Prefer global numeric constants over `Number` static properties.
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
7865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
7616
7866
  */
7617
7867
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7618
7868
  /**
7619
7869
  * Prefer `globalThis` over `window`, `self`, and `global`.
7620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
7870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
7621
7871
  */
7622
7872
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7623
7873
  /**
7624
7874
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
7625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
7875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
7626
7876
  */
7627
7877
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
7628
7878
  /**
7629
7879
  * Prefer `.has()` when checking existence.
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
7880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
7631
7881
  */
7632
7882
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
7633
7883
  /**
7634
7884
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
7635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
7885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
7636
7886
  */
7637
7887
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7638
7888
  /**
7639
7889
  * Prefer HTTPS over HTTP.
7640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
7890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
7641
7891
  */
7642
7892
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
7643
7893
  /**
7644
7894
  * Prefer identifiers over string literals in import and export specifiers.
7645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7646
7896
  */
7647
7897
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7648
7898
  /**
7649
7899
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
7900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
7651
7901
  */
7652
7902
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7653
7903
  /**
7654
7904
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
7905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
7656
7906
  */
7657
7907
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7658
7908
  /**
7659
7909
  * Prefer `.includes()` over repeated equality comparisons.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7661
7911
  */
7662
7912
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
7663
7913
  /**
7664
7914
  * Prefer passing iterables directly to constructors instead of filling empty collections.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
7915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
7666
7916
  */
7667
7917
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7668
7918
  /**
7669
7919
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
7920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
7671
7921
  */
7672
7922
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
7673
7923
  /**
7674
7924
  * Prefer iterator helpers over temporary arrays from iterators.
7675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
7925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
7676
7926
  */
7677
7927
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
7678
7928
  /**
7679
7929
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
7680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
7930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
7681
7931
  */
7682
7932
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7683
7933
  /**
7684
7934
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7686
7936
  */
7687
7937
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7688
7938
  /**
7689
7939
  * Prefer `Iterator.zip()` over parallel-array indexing.
7690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
7940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
7691
7941
  */
7692
7942
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
7693
7943
  /**
7694
7944
  * Prefer JSON imports over reading and parsing JSON files.
7695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
7945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
7696
7946
  */
7697
7947
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
7698
7948
  /**
7699
7949
  * Renamed to `unicorn/consistent-json-file-read`.
7700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7701
7951
  * @deprecated
7702
7952
  */
7703
7953
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7704
7954
  /**
7705
7955
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
7707
7957
  */
7708
7958
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7959
+ /**
7960
+ * Prefer literal printable ASCII characters over escape sequences.
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
7962
+ */
7963
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
7709
7964
  /**
7710
7965
  * Prefer `location.assign()` over assigning to `location.href`.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
7712
7967
  */
7713
7968
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7714
7969
  /**
7715
7970
  * Prefer using a logical operator over a ternary.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7717
7972
  */
7718
7973
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7719
7974
  /**
7720
7975
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
7722
7977
  */
7723
7978
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7724
7979
  /**
7725
7980
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
7727
7982
  */
7728
7983
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
7729
7984
  /**
7730
7985
  * Prefer `Math` constants over their approximate numeric values.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
7732
7987
  */
7733
7988
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7734
7989
  /**
7735
7990
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
7737
7992
  */
7738
7993
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7739
7994
  /**
7740
7995
  * Prefer `Math.trunc()` for truncating numbers.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
7742
7997
  */
7743
7998
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7744
7999
  /**
7745
- * Prefer modern media feature range syntax.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
8000
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
8002
+ * @deprecated
7747
8003
  */
7748
8004
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
7749
8005
  /**
7750
8006
  * Prefer moving ternaries into the minimal varying part of an expression.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
8007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
7752
8008
  */
7753
8009
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
7754
8010
  /**
7755
8011
  * Prefer modern DOM APIs.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
8012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
7757
8013
  */
7758
8014
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7759
8015
  /**
7760
8016
  * Prefer modern `Math` APIs over legacy patterns.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
8017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
7762
8018
  */
7763
8019
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7764
8020
  /**
7765
8021
  * Prefer JavaScript modules (ESM) over CommonJS.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
8022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
7767
8023
  */
7768
8024
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7769
8025
  /**
7770
8026
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
8027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
7772
8028
  */
7773
8029
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7774
8030
  /**
7775
8031
  * Prefer negative index over `.length - index` when possible.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
8032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
7777
8033
  */
7778
8034
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7779
8035
  /**
7780
8036
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
8037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
7782
8038
  */
7783
8039
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7784
8040
  /**
7785
8041
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
8042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
7787
8043
  */
7788
8044
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
7789
8045
  /**
7790
8046
  * Prefer `Number.isSafeInteger()` over integer checks.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
8047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
7792
8048
  */
7793
8049
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
7794
8050
  /**
7795
8051
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
8052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
7797
8053
  */
7798
8054
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7799
8055
  /**
7800
8056
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
7801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
8057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
7802
8058
  */
7803
8059
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
7804
8060
  /**
7805
8061
  * Prefer object destructuring defaults over default object literals with spread.
7806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
8062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
7807
8063
  */
7808
8064
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7809
8065
  /**
7810
8066
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
8067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
7812
8068
  */
7813
8069
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7814
8070
  /**
7815
8071
  * Prefer the most specific `Object` iterable method.
7816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
7817
8073
  */
7818
8074
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
7819
8075
  /**
7820
8076
  * Prefer observer APIs over resize and scroll listeners with layout reads.
7821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
7822
8078
  */
7823
8079
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7824
8080
  /**
7825
8081
  * Prefer omitting the `catch` binding parameter.
7826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
7827
8083
  */
7828
8084
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7829
8085
  /**
7830
8086
  * Prefer `Path2D` for repeatedly drawn canvas paths.
7831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
7832
8088
  */
7833
8089
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
7834
8090
  /**
7835
8091
  * Prefer private class fields over the underscore-prefix convention.
7836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
7837
8093
  */
7838
8094
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8095
+ /**
8096
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
8098
+ */
8099
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
7839
8100
  /**
7840
8101
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
7841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
7842
8103
  */
7843
8104
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
7844
8105
  /**
7845
8106
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
7846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
7847
8108
  */
7848
8109
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7849
8110
  /**
7850
8111
  * Prefer borrowing methods from the prototype instead of the instance.
7851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
7852
8113
  */
7853
8114
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7854
8115
  /**
7855
8116
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
7856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
7857
8118
  */
7858
8119
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
7859
8120
  /**
7860
8121
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
7861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
7862
8123
  */
7863
8124
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7864
8125
  /**
7865
8126
  * Prefer `Reflect.apply()` over `Function#apply()`.
7866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
7867
8128
  */
7868
8129
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7869
8130
  /**
7870
8131
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
7871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
7872
8133
  */
7873
8134
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
7874
8135
  /**
7875
8136
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
7876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
7877
8138
  */
7878
8139
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7879
8140
  /**
7880
8141
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
7882
8143
  */
7883
8144
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
7884
8145
  /**
7885
8146
  * Prefer `:scope` when using element query selector methods.
7886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
7887
8148
  */
7888
8149
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7889
8150
  /**
7890
8151
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
7892
8153
  */
7893
8154
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
7894
8155
  /**
7895
8156
  * Prefer `Set` methods for Set operations.
7896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
7897
8158
  */
7898
8159
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
7899
8160
  /**
7900
8161
  * Prefer using `Set#size` instead of `Array#length`.
7901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
8162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
7902
8163
  */
7903
8164
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7904
8165
  /**
7905
8166
  * Prefer arrow function properties over methods with a single return.
7906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
8167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
7907
8168
  */
7908
8169
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8170
+ /**
8171
+ * Prefer shorter alternatives to Unicode escape sequences.
8172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
8173
+ */
8174
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
7909
8175
  /**
7910
8176
  * Prefer simple conditions first in logical expressions.
7911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
8177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
7912
8178
  */
7913
8179
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
7914
8180
  /**
7915
8181
  * Prefer a simple comparison function for `Array#sort()`.
7916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
8182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
7917
8183
  */
7918
8184
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
7919
8185
  /**
7920
8186
  * Prefer simplified conditions.
7921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
8187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
7922
8188
  */
7923
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8189
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
7924
8190
  /**
7925
8191
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
7926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
8192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
7927
8193
  */
7928
8194
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
7929
8195
  /**
7930
8196
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
8197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
7932
8198
  */
7933
8199
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7934
8200
  /**
7935
8201
  * Prefer a single object destructuring declaration per local const source.
7936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
8202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
7937
8203
  */
7938
8204
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
7939
8205
  /**
7940
8206
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
7941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
8207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
7942
8208
  */
7943
8209
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
7944
8210
  /**
7945
8211
  * Prefer declaring variables in the smallest possible scope.
7946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
8212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
7947
8213
  */
7948
8214
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
7949
8215
  /**
7950
8216
  * Prefer `String#split()` with a limit.
7951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
8217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
7952
8218
  */
7953
8219
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
7954
8220
  /**
7955
8221
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
7956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
8222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
7957
8223
  */
7958
8224
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7959
8225
  /**
7960
8226
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
7961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
8227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
7962
8228
  */
7963
8229
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
7964
8230
  /**
7965
8231
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
7966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
8232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
7967
8233
  */
7968
8234
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7969
8235
  /**
7970
8236
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
8237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
7972
8238
  */
7973
8239
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7974
8240
  /**
7975
8241
  * Prefer `String#repeat()` for repeated whitespace.
7976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
8242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
7977
8243
  */
7978
8244
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
7979
8245
  /**
7980
8246
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
7981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
8247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
7982
8248
  */
7983
8249
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7984
8250
  /**
7985
8251
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
8252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
7987
8253
  */
7988
8254
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7989
8255
  /**
7990
8256
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
7991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
8257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
7992
8258
  */
7993
8259
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7994
8260
  /**
7995
8261
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
8262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
7997
8263
  */
7998
8264
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7999
8265
  /**
8000
8266
  * Prefer using `structuredClone` to create a deep clone.
8001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
8267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
8002
8268
  */
8003
8269
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8004
8270
  /**
8005
8271
  * Prefer `switch` over multiple `else-if`.
8006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
8272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
8007
8273
  */
8008
8274
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8009
8275
  /**
8010
8276
  * Prefer `Temporal` over `Date`.
8011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
8277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
8012
8278
  */
8013
8279
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8014
8280
  /**
8015
8281
  * Prefer direct Temporal conversion methods.
8016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
8282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
8017
8283
  */
8018
8284
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
8019
8285
  /**
8020
8286
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
8287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
8022
8288
  */
8023
8289
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8024
8290
  /**
8025
8291
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
8292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
8027
8293
  */
8028
8294
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8029
8295
  /**
8030
8296
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
8297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
8032
8298
  */
8033
8299
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8034
8300
  /**
8035
8301
  * Prefer top-level await over top-level promises and async function calls.
8036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
8302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
8037
8303
  */
8038
8304
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8039
8305
  /**
8040
8306
  * Enforce throwing `TypeError` in type checking conditions.
8041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
8307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
8042
8308
  */
8043
8309
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8044
8310
  /**
8045
8311
  * Require type literals to be last in union types.
8046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
8312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
8047
8313
  */
8048
8314
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8049
8315
  /**
8050
8316
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
8051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
8317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
8052
8318
  */
8053
8319
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8054
8320
  /**
8055
8321
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
8056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
8322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
8057
8323
  */
8058
8324
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
8059
8325
  /**
8060
8326
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
8327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
8062
8328
  */
8063
8329
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8064
8330
  /**
8065
8331
  * Prefer Unicode code point escapes over legacy escape sequences.
8066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8067
8333
  */
8068
8334
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8069
8335
  /**
8070
8336
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
8337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
8072
8338
  */
8073
8339
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8074
8340
  /**
8075
8341
  * Prefer `URL#href` over stringifying a `URL`.
8076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
8342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
8077
8343
  */
8078
8344
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8079
8345
  /**
8080
8346
  * Prefer `URLSearchParams` over manually splitting query strings.
8081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
8347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
8082
8348
  */
8083
8349
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8084
8350
  /**
8085
8351
  * Prefer putting the condition in the while statement.
8086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
8352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
8087
8353
  */
8088
8354
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8089
8355
  /**
8090
8356
  * Renamed to `unicorn/name-replacements`.
8091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8092
8358
  * @deprecated
8093
8359
  */
8094
8360
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8095
8361
  /**
8096
8362
  * Enforce consistent relative URL style.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
8098
8364
  */
8099
8365
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8100
8366
  /**
8101
8367
  * Enforce using the separator argument with `Array#join()`.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
8103
8369
  */
8104
8370
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8105
8371
  /**
8106
8372
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
8108
8374
  */
8109
8375
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8110
8376
  /**
8111
8377
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
8113
8379
  */
8114
8380
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8115
8381
  /**
8116
8382
  * Require configured YAML frontmatter fields.
8117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
8118
8384
  */
8119
8385
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8120
8386
  /**
8121
8387
  * Require non-empty module attributes for imports and exports
8122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
8123
8389
  */
8124
8390
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8125
8391
  /**
8126
8392
  * Require non-empty specifier list in import and export statements.
8127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
8128
8394
  */
8129
8395
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8130
8396
  /**
8131
8397
  * Enforce using the digits argument with `Number#toFixed()`.
8132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8133
8399
  */
8134
8400
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8135
8401
  /**
8136
8402
  * Require passive event listeners for high-frequency events.
8137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
8138
8404
  */
8139
8405
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8140
8406
  /**
8141
8407
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
8143
8409
  */
8144
8410
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8145
8411
  /**
8146
8412
  * Require boolean-returning Proxy traps to return booleans.
8147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
8148
8414
  */
8149
8415
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8416
+ /**
8417
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
8419
+ */
8420
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
8150
8421
  /**
8151
8422
  * Enforce a consistent style for single-line block comments.
8152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
8153
8424
  */
8154
8425
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8155
8426
  /**
8156
8427
  * Enforce better string content.
8157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
8158
8429
  */
8159
8430
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8160
8431
  /**
8161
8432
  * Enforce consistent brace style for `case` clauses.
8162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
8163
8434
  */
8164
8435
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8165
8436
  /**
8166
8437
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
8168
8439
  */
8169
8440
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8170
8441
  /**
8171
8442
  * Fix whitespace-insensitive template indentation.
8172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
8173
8444
  */
8174
8445
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8175
8446
  /**
8176
8447
  * Enforce consistent case for text encoding identifiers.
8177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
8178
8449
  */
8179
8450
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8180
8451
  /**
8181
8452
  * Require `new` when creating an error.
8182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
8183
8454
  */
8184
8455
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8185
8456
  /**
8186
8457
  * Limit the complexity of `try` blocks.
8187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
8188
8459
  */
8189
8460
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8190
8461
  /**
@@ -10258,12 +10529,6 @@ export interface ESLintSchema {
10258
10529
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-schema-with-is-optional.md
10259
10530
  */
10260
10531
  'zod/no-schema-with-is-optional'?: Linter.RuleEntry<[]>;
10261
- /**
10262
- * Disallow usage of `z.string().uuid()` in favor of the dedicated `z.uuid()` schema
10263
- * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-string-schema-with-uuid.md
10264
- * @deprecated
10265
- */
10266
- 'zod/no-string-schema-with-uuid'?: Linter.RuleEntry<[]>;
10267
10532
  /**
10268
10533
  * Disallow throwing errors directly inside Zod refine callbacks
10269
10534
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-throw-in-refine.md
@@ -16688,6 +16953,26 @@ type CssUseLayers = [] | [{
16688
16953
  requireImportLayers?: boolean;
16689
16954
  layerNamePattern?: string;
16690
16955
  }];
16956
+ // ----- cssicorn/no-deprecated-features -----
16957
+ type CssicornNoDeprecatedFeatures = [] | [{
16958
+ allow?: string[];
16959
+ }];
16960
+ // ----- cssicorn/no-redundant-longhand-properties -----
16961
+ type CssicornNoRedundantLonghandProperties = [] | [{
16962
+ ignoreShorthands?: ("animation" | "animation-range" | "background" | "border" | "border-block" | "border-block-color" | "border-block-end" | "border-block-start" | "border-block-style" | "border-block-width" | "border-bottom" | "border-color" | "border-image" | "border-inline" | "border-inline-color" | "border-inline-end" | "border-inline-start" | "border-inline-style" | "border-inline-width" | "border-left" | "border-radius" | "border-right" | "border-style" | "border-top" | "border-width" | "column-rule" | "columns" | "flex" | "flex-flow" | "font" | "font-synthesis" | "font-variant" | "gap" | "grid" | "grid-area" | "grid-column" | "grid-gap" | "grid-row" | "grid-template" | "inset" | "inset-block" | "inset-inline" | "list-style" | "margin" | "margin-block" | "margin-inline" | "mask" | "mask-border" | "outline" | "overflow" | "overscroll-behavior" | "padding" | "padding-block" | "padding-inline" | "place-content" | "place-items" | "place-self" | "scroll-margin" | "scroll-margin-block" | "scroll-margin-inline" | "scroll-padding" | "scroll-padding-block" | "scroll-padding-inline" | "text-decoration" | "text-emphasis" | "transition")[];
16963
+ }];
16964
+ // ----- cssicorn/no-unknown-pseudo-selectors -----
16965
+ type CssicornNoUnknownPseudoSelectors = [] | [{
16966
+ allow?: string[];
16967
+ }];
16968
+ // ----- cssicorn/no-unscoped-nesting-selector -----
16969
+ type CssicornNoUnscopedNestingSelector = [] | [{
16970
+ scopingRootAtRules?: string[];
16971
+ }];
16972
+ // ----- cssicorn/prefer-explicit-viewport-units -----
16973
+ type CssicornPreferExplicitViewportUnits = [] | [{
16974
+ unit?: ("dvh" | "svh" | "lvh");
16975
+ }];
16691
16976
  // ----- curly -----
16692
16977
  type Curly = ([] | ["all"] | [] | [("multi" | "multi-line" | "multi-or-nest")] | [("multi" | "multi-line" | "multi-or-nest"), "consistent"]);
16693
16978
  // ----- cypress/unsafe-to-chain-command -----
@@ -22065,6 +22350,11 @@ interface _UnicornImportStyle_ModuleStyles {
22065
22350
  interface _UnicornImportStyle_BooleanObject {
22066
22351
  [k: string]: boolean | undefined;
22067
22352
  }
22353
+ // ----- unicorn/indent -----
22354
+ type UnicornIndent = [] | [{
22355
+ indent?: ("tab" | number);
22356
+ tabWidth?: number;
22357
+ }];
22068
22358
  // ----- unicorn/isolated-functions -----
22069
22359
  type UnicornIsolatedFunctions = [] | [{
22070
22360
  overrideGlobals?: {
@@ -22076,6 +22366,15 @@ type UnicornIsolatedFunctions = [] | [{
22076
22366
  }];
22077
22367
  // ----- unicorn/iteration-fallback-style -----
22078
22368
  type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
22369
+ // ----- unicorn/key-name-casing -----
22370
+ type UnicornKeyNameCasing = [] | [{
22371
+ camelCase?: boolean;
22372
+ PascalCase?: boolean;
22373
+ SCREAMING_SNAKE_CASE?: boolean;
22374
+ "kebab-case"?: boolean;
22375
+ snake_case?: boolean;
22376
+ ignore?: string[];
22377
+ }];
22079
22378
  // ----- unicorn/logical-assignment-operators -----
22080
22379
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
22081
22380
  enforceForIfStatements?: boolean;
@@ -22130,10 +22429,6 @@ type UnicornNoArraySort = [] | [{
22130
22429
  type UnicornNoBreakInNestedLoop = [] | [{
22131
22430
  checkContinue?: boolean;
22132
22431
  }];
22133
- // ----- unicorn/no-deprecated-css-features -----
22134
- type UnicornNoDeprecatedCssFeatures = [] | [{
22135
- allow?: string[];
22136
- }];
22137
22432
  // ----- unicorn/no-empty-file -----
22138
22433
  type UnicornNoEmptyFile = [] | [{
22139
22434
  allowComments?: boolean;
@@ -22182,9 +22477,9 @@ type UnicornNoNull = [] | [{
22182
22477
  type UnicornNoTypeofUndefined = [] | [{
22183
22478
  checkGlobalVariables?: boolean;
22184
22479
  }];
22185
- // ----- unicorn/no-unknown-pseudo-selectors -----
22186
- type UnicornNoUnknownPseudoSelectors = [] | [{
22187
- allow?: string[];
22480
+ // ----- unicorn/no-unnecessary-parameters -----
22481
+ type UnicornNoUnnecessaryParameters = [] | [{
22482
+ minimumCallCount?: number;
22188
22483
  }];
22189
22484
  // ----- unicorn/no-unnecessary-polyfills -----
22190
22485
  type UnicornNoUnnecessaryPolyfills = [] | [{
@@ -22196,10 +22491,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
22196
22491
  type UnicornNoUnreadableArrayDestructuring = [] | [{
22197
22492
  maximumIgnoredElements?: number;
22198
22493
  }];
22199
- // ----- unicorn/no-unscoped-css-nesting-selector -----
22200
- type UnicornNoUnscopedCssNestingSelector = [] | [{
22201
- scopingRootAtRules?: string[];
22202
- }];
22203
22494
  // ----- unicorn/no-useless-undefined -----
22204
22495
  type UnicornNoUselessUndefined = [] | [{
22205
22496
  checkArguments?: boolean;
@@ -22256,6 +22547,7 @@ type UnicornPreferAt = [] | [{
22256
22547
  // ----- unicorn/prefer-combined-guards -----
22257
22548
  type UnicornPreferCombinedGuards = [] | [{
22258
22549
  checkCompoundConditions?: boolean;
22550
+ checkMultiStatementBodies?: boolean;
22259
22551
  }];
22260
22552
  // ----- unicorn/prefer-continue -----
22261
22553
  type UnicornPreferContinue = [] | [{
@@ -22272,10 +22564,6 @@ type UnicornPreferEarlyReturn = [] | [{
22272
22564
  maximumStatements?: number;
22273
22565
  checkShortBodies?: boolean;
22274
22566
  }];
22275
- // ----- unicorn/prefer-explicit-viewport-units -----
22276
- type UnicornPreferExplicitViewportUnits = [] | [{
22277
- unit?: ("dvh" | "svh" | "lvh");
22278
- }];
22279
22567
  // ----- unicorn/prefer-export-from -----
22280
22568
  type UnicornPreferExportFrom = [] | [{
22281
22569
  checkUsedVariables?: boolean;
@@ -22319,6 +22607,10 @@ type UnicornPreferSetHas = [] | [{
22319
22607
  }];
22320
22608
  // ----- unicorn/prefer-short-arrow-method -----
22321
22609
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
22610
+ // ----- unicorn/prefer-simplified-conditions -----
22611
+ type UnicornPreferSimplifiedConditions = [] | [{
22612
+ negatedConditions?: ("simplify" | "expand");
22613
+ }];
22322
22614
  // ----- unicorn/prefer-single-call -----
22323
22615
  type UnicornPreferSingleCall = [] | [{
22324
22616
  ignore?: string[];