@kitschpatrol/eslint-config 8.7.0 → 8.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -505,7 +505,6 @@ interface RuleOptions {
505
505
  curly?: Linter.RuleEntry<Curly>;
506
506
  /**
507
507
  * Transforms the negation of a conjunction !(A && B) into the equivalent !A
508
- *
509
508
  * || !B according to De Morgan’s law
510
509
  *
511
510
  * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
@@ -1786,6 +1785,11 @@ interface RuleOptions {
1786
1785
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1787
1786
  */
1788
1787
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1788
+ /**
1789
+ * Reports redundant @type tags that match or broaden the naturally inferred
1790
+ * TypeScript type.
1791
+ */
1792
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1789
1793
  /**
1790
1794
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1791
1795
  *
@@ -2116,6 +2120,13 @@ interface RuleOptions {
2116
2120
  * @see https://eslint-plugin-package-json.dev/rules/order-properties
2117
2121
  */
2118
2122
  'json-package/order-properties'?: Linter.RuleEntry<JsonPackageOrderProperties>;
2123
+ /**
2124
+ * Require that dependencies declared with workspace protocol use a rolling
2125
+ * workspace spec instead of a specific semver range.
2126
+ *
2127
+ * @see https://eslint-plugin-package-json.dev/rules/prefer-rolling-workspace-spec
2128
+ */
2129
+ 'json-package/prefer-rolling-workspace-spec'?: Linter.RuleEntry<JsonPackagePreferRollingWorkspaceSpec>;
2119
2130
  /**
2120
2131
  * Enforce either object or shorthand declaration for repository.
2121
2132
  *
@@ -5211,9 +5222,9 @@ interface RuleOptions {
5211
5222
  */
5212
5223
  'react/globals'?: Linter.RuleEntry<[]>;
5213
5224
  /**
5214
- * Validates against passing functions that mutate captured local variables
5215
- * into frozen contexts such as JSX props, hook arguments, and hook return
5216
- * values.
5225
+ * Validates against mutating props, state, and other immutable values,
5226
+ * including through functions passed into frozen contexts such as JSX props,
5227
+ * hook arguments, and hook return values.
5217
5228
  *
5218
5229
  * @see https://eslint-react.xyz/docs/rules/immutability
5219
5230
  */
@@ -5674,9 +5685,9 @@ interface RuleOptions {
5674
5685
  */
5675
5686
  'react/x-globals'?: Linter.RuleEntry<[]>;
5676
5687
  /**
5677
- * Validates against passing functions that mutate captured local variables
5678
- * into frozen contexts such as JSX props, hook arguments, and hook return
5679
- * values.
5688
+ * Validates against mutating props, state, and other immutable values,
5689
+ * including through functions passed into frozen contexts such as JSX props,
5690
+ * hook arguments, and hook return values.
5680
5691
  *
5681
5692
  * @see https://eslint-react.xyz/docs/rules/immutability
5682
5693
  */
@@ -8670,6 +8681,12 @@ interface RuleOptions {
8670
8681
  * @see https://typescript-eslint.io/rules/no-for-in-array
8671
8682
  */
8672
8683
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>;
8684
+ /**
8685
+ * Disallow type operations that resolve to the "empty object" type
8686
+ *
8687
+ * @see https://typescript-eslint.io/rules/no-generated-empty-object-type
8688
+ */
8689
+ 'ts/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
8673
8690
  /**
8674
8691
  * Disallow the use of `eval()`-like functions
8675
8692
  *
@@ -9263,519 +9280,519 @@ interface RuleOptions {
9263
9280
  /**
9264
9281
  * Prefer better DOM traversal APIs.
9265
9282
  *
9266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
9283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
9267
9284
  */
9268
9285
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
9269
9286
  /**
9270
9287
  * Removed. Prefer `eslint-plugin-regexp`
9271
9288
  *
9272
9289
  * @deprecated
9273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9274
9291
  */
9275
9292
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
9276
9293
  /**
9277
9294
  * Enforce a specific parameter name in catch clauses.
9278
9295
  *
9279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
9296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
9280
9297
  */
9281
9298
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
9282
9299
  /**
9283
9300
  * Enforce consistent class references in static methods.
9284
9301
  *
9285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
9302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
9286
9303
  */
9287
9304
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
9288
9305
  /**
9289
9306
  * Enforce better comment content.
9290
9307
  *
9291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
9308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
9292
9309
  */
9293
9310
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
9294
9311
  /**
9295
9312
  * Enforce a consistent return style for multiline arrow function bodies.
9296
9313
  *
9297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
9314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
9298
9315
  */
9299
9316
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
9300
9317
  /**
9301
9318
  * Enforce consistent assertion style with `node:assert`.
9302
9319
  *
9303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
9320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
9304
9321
  */
9305
9322
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
9306
9323
  /**
9307
9324
  * Enforce consistent naming for boolean names.
9308
9325
  *
9309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
9326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
9310
9327
  */
9311
9328
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
9312
9329
  /**
9313
9330
  * Enforce consistent class member order.
9314
9331
  *
9315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
9332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
9316
9333
  */
9317
9334
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
9318
9335
  /**
9319
9336
  * Enforce consistent spelling of compound words in identifiers.
9320
9337
  *
9321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
9338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
9322
9339
  */
9323
9340
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
9324
9341
  /**
9325
9342
  * Enforce consistent conditional object spread style.
9326
9343
  *
9327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
9344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
9328
9345
  */
9329
9346
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
9330
9347
  /**
9331
9348
  * Prefer passing `Date` directly to the constructor when cloning.
9332
9349
  *
9333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
9350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
9334
9351
  */
9335
9352
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
9336
9353
  /**
9337
9354
  * Use destructured variables over properties.
9338
9355
  *
9339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
9356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
9340
9357
  */
9341
9358
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
9342
9359
  /**
9343
9360
  * Prefer consistent types when spreading a ternary in an array literal.
9344
9361
  *
9345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
9362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
9346
9363
  */
9347
9364
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
9348
9365
  /**
9349
9366
  * Enforce consistent style for element existence checks with `indexOf()`,
9350
9367
  * `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
9351
9368
  *
9352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
9369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
9353
9370
  */
9354
9371
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
9355
9372
  /**
9356
9373
  * Enforce consistent decorator position on exported classes.
9357
9374
  *
9358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
9375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
9359
9376
  */
9360
9377
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
9361
9378
  /**
9362
9379
  * Move function definitions to the highest possible scope.
9363
9380
  *
9364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
9381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
9365
9382
  */
9366
9383
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
9367
9384
  /**
9368
9385
  * Enforce function syntax by role.
9369
9386
  *
9370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
9387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
9371
9388
  */
9372
9389
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
9373
9390
  /**
9374
9391
  * Enforce consistent JSON file reads before `JSON.parse()`.
9375
9392
  *
9376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
9393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
9377
9394
  */
9378
9395
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
9379
9396
  /**
9380
9397
  * Enforce consistent optional chaining for same-base member access.
9381
9398
  *
9382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
9399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
9383
9400
  */
9384
9401
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
9385
9402
  /**
9386
9403
  * Enforce consistent style for escaping `${` in template literals.
9387
9404
  *
9388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
9405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
9389
9406
  */
9390
9407
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
9391
9408
  /**
9392
9409
  * Enforce consistent labels on tuple type elements.
9393
9410
  *
9394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
9411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
9395
9412
  */
9396
9413
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
9397
9414
  /**
9398
9415
  * Enforce correct `Error` subclassing.
9399
9416
  *
9400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
9417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
9401
9418
  */
9402
9419
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
9403
9420
  /**
9404
9421
  * Enforce consistent default export declarations.
9405
9422
  *
9406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
9423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
9407
9424
  */
9408
9425
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
9409
9426
  /**
9410
9427
  * Enforce consistent style for DOM element dataset access.
9411
9428
  *
9412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
9429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
9413
9430
  */
9414
9431
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
9415
9432
  /**
9416
9433
  * Enforce no spaces between braces.
9417
9434
  *
9418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
9435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
9419
9436
  */
9420
9437
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
9421
9438
  /**
9422
9439
  * Enforce passing a `message` value when creating a built-in error.
9423
9440
  *
9424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
9441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
9425
9442
  */
9426
9443
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
9427
9444
  /**
9428
9445
  * Require escape sequences to use uppercase or lowercase values.
9429
9446
  *
9430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
9447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
9431
9448
  */
9432
9449
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
9433
9450
  /**
9434
9451
  * Add expiration conditions to TODO comments.
9435
9452
  *
9436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
9453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
9437
9454
  */
9438
9455
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
9439
9456
  /**
9440
9457
  * Enforce explicitly comparing the `length` or `size` property of a value.
9441
9458
  *
9442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
9459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
9443
9460
  */
9444
9461
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
9445
9462
  /**
9446
9463
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and
9447
9464
  * `setInterval()`.
9448
9465
  *
9449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
9466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
9450
9467
  */
9451
9468
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
9452
9469
  /**
9453
9470
  * Enforce a case style for filenames and directory names.
9454
9471
  *
9455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
9472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
9456
9473
  */
9457
9474
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
9458
9475
  /**
9459
9476
  * Require identifiers to match a specified regular expression.
9460
9477
  *
9461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
9478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
9462
9479
  */
9463
9480
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
9464
9481
  /**
9465
9482
  * Enforce specific import styles per module.
9466
9483
  *
9467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
9484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
9468
9485
  */
9469
9486
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
9470
9487
  /**
9471
9488
  * Prevent usage of variables from outside the scope of isolated functions.
9472
9489
  *
9473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
9490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
9474
9491
  */
9475
9492
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
9476
9493
  /**
9477
9494
  * Enforce a consistent style for optional loop sources.
9478
9495
  *
9479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
9496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
9480
9497
  */
9481
9498
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
9482
9499
  /**
9483
9500
  * Require or disallow logical assignment operator shorthand
9484
9501
  *
9485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
9502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
9486
9503
  */
9487
9504
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
9488
9505
  /**
9489
9506
  * Limit the depth of nested calls.
9490
9507
  *
9491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
9508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
9492
9509
  */
9493
9510
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
9494
9511
  /**
9495
9512
  * Enforce replacements for variable, property, and filenames.
9496
9513
  *
9497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
9514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
9498
9515
  */
9499
9516
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
9500
9517
  /**
9501
9518
  * Enforce correct use of `new` for builtin constructors.
9502
9519
  *
9503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
9520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
9504
9521
  */
9505
9522
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
9506
9523
  /**
9507
9524
  * Enforce specifying rules to disable in `eslint-disable` comments.
9508
9525
  *
9509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
9526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
9510
9527
  */
9511
9528
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
9512
9529
  /**
9513
9530
  * Disallow recursive access to `this` within getters and setters.
9514
9531
  *
9515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
9532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
9516
9533
  */
9517
9534
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
9518
9535
  /**
9519
9536
  * Disallow bitwise operators where a logical operator was likely intended.
9520
9537
  *
9521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
9538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
9522
9539
  */
9523
9540
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
9524
9541
  /**
9525
9542
  * Disallow anonymous functions and classes as the default export.
9526
9543
  *
9527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
9544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
9528
9545
  */
9529
9546
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
9530
9547
  /**
9531
9548
  * Prevent passing a function reference directly to iterator methods.
9532
9549
  *
9533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
9550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
9534
9551
  */
9535
9552
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
9536
9553
  /**
9537
9554
  * Disallow array accumulation with `Array#concat()` in loops.
9538
9555
  *
9539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
9556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
9540
9557
  */
9541
9558
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
9542
9559
  /**
9543
9560
  * Disallow using reference values as `Array#fill()` values.
9544
9561
  *
9545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
9562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
9546
9563
  */
9547
9564
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
9548
9565
  /**
9549
9566
  * Disallow `.fill()` after `Array.from({length: …})`.
9550
9567
  *
9551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
9568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
9552
9569
  */
9553
9570
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
9554
9571
  /**
9555
9572
  * Disallow front-of-array mutation.
9556
9573
  *
9557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
9574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
9558
9575
  */
9559
9576
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
9560
9577
  /**
9561
9578
  * Disallow using the `this` argument in array methods.
9562
9579
  *
9563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
9580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
9564
9581
  */
9565
9582
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
9566
9583
  /**
9567
9584
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
9568
9585
  *
9569
9586
  * @deprecated
9570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9571
9588
  */
9572
9589
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
9573
9590
  /**
9574
9591
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
9575
9592
  *
9576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
9593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
9577
9594
  */
9578
9595
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
9579
9596
  /**
9580
9597
  * Prefer `Array#toReversed()` over `Array#reverse()`.
9581
9598
  *
9582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
9599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
9583
9600
  */
9584
9601
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
9585
9602
  /**
9586
9603
  * Prefer `Array#toSorted()` over `Array#sort()`.
9587
9604
  *
9588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
9605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
9589
9606
  */
9590
9607
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
9591
9608
  /**
9592
9609
  * Disallow sorting arrays to get the minimum or maximum value.
9593
9610
  *
9594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
9611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
9595
9612
  */
9596
9613
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
9597
9614
  /**
9598
9615
  * Prefer `Array#toSpliced()` over `Array#splice()`.
9599
9616
  *
9600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
9617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
9601
9618
  */
9602
9619
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
9603
9620
  /**
9604
9621
  * Disallow asterisk prefixes in documentation comments.
9605
9622
  *
9606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9607
9624
  */
9608
9625
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
9609
9626
  /**
9610
9627
  * Disallow async functions as `Promise#finally()` callbacks.
9611
9628
  *
9612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
9629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
9613
9630
  */
9614
9631
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
9615
9632
  /**
9616
9633
  * Disallow member access from await expression.
9617
9634
  *
9618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
9635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
9619
9636
  */
9620
9637
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
9621
9638
  /**
9622
9639
  * Disallow using `await` in `Promise` method parameters.
9623
9640
  *
9624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
9641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
9625
9642
  */
9626
9643
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
9627
9644
  /**
9628
9645
  * Disallow barrel files.
9629
9646
  *
9630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
9647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
9631
9648
  */
9632
9649
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
9633
9650
  /**
9634
9651
  * Disallow unnecessary `Blob` to `File` conversion.
9635
9652
  *
9636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
9653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
9637
9654
  */
9638
9655
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
9639
9656
  /**
9640
9657
  * Disallow boolean-returning sort comparators.
9641
9658
  *
9642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
9659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
9643
9660
  */
9644
9661
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
9645
9662
  /**
9646
9663
  * Disallow `break` and `continue` in nested loops and switches inside loops.
9647
9664
  *
9648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
9665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
9649
9666
  */
9650
9667
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
9651
9668
  /**
9652
9669
  * Prefer drawing canvases directly instead of converting them to images.
9653
9670
  *
9654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
9671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
9655
9672
  */
9656
9673
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
9657
9674
  /**
9658
9675
  * Disallow chained comparisons such as `a < b < c`.
9659
9676
  *
9660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
9677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
9661
9678
  */
9662
9679
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
9663
9680
  /**
9664
9681
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with
9665
9682
  * bracket notation.
9666
9683
  *
9667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
9684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
9668
9685
  */
9669
9686
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
9670
9687
  /**
9671
9688
  * Disallow dynamic object property existence checks.
9672
9689
  *
9673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
9690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
9674
9691
  */
9675
9692
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
9676
9693
  /**
9677
9694
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
9678
9695
  *
9679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
9696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
9680
9697
  */
9681
9698
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
9682
9699
  /**
9683
9700
  * Disallow confusing uses of `Array#with()`.
9684
9701
  *
9685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
9702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
9686
9703
  */
9687
9704
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
9688
9705
  /**
9689
9706
  * Do not use leading/trailing space between `console.log` parameters.
9690
9707
  *
9691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
9708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
9692
9709
  */
9693
9710
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
9694
9711
  /**
9695
9712
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
9696
9713
  *
9697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
9714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
9698
9715
  */
9699
9716
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
9700
9717
  /**
9701
9718
  * Disallow declarations before conditional early exits when they are only
9702
9719
  * used after the exit.
9703
9720
  *
9704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
9721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
9705
9722
  */
9706
9723
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
9707
9724
  /**
9708
9725
  * Do not use `document.cookie` directly.
9709
9726
  *
9710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
9727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
9711
9728
  */
9712
9729
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
9713
9730
  /**
9714
9731
  * Disallow two comparisons of the same operands that can be combined into
9715
9732
  * one.
9716
9733
  *
9717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
9734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
9718
9735
  */
9719
9736
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
9720
9737
  /**
9721
9738
  * Disallow duplicate adjacent branches in if chains.
9722
9739
  *
9723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
9740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
9724
9741
  */
9725
9742
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
9726
9743
  /**
9727
9744
  * Disallow adjacent duplicate operands in logical expressions.
9728
9745
  *
9729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
9746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
9730
9747
  */
9731
9748
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
9732
9749
  /**
9733
9750
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop
9734
9751
  * headers.
9735
9752
  *
9736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
9753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
9737
9754
  */
9738
9755
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
9739
9756
  /**
9740
9757
  * Disallow duplicate values in `Set` constructor array literals.
9741
9758
  *
9742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
9759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
9743
9760
  */
9744
9761
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
9745
9762
  /**
9746
9763
  * Disallow empty files.
9747
9764
  *
9748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
9765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
9749
9766
  */
9750
9767
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
9751
9768
  /**
9752
9769
  * Disallow assigning to built-in error properties.
9753
9770
  *
9754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
9771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
9755
9772
  */
9756
9773
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
9757
9774
  /**
9758
9775
  * Disallow exports in scripts.
9759
9776
  *
9760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
9777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
9761
9778
  */
9762
9779
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
9763
9780
  /**
9764
9781
  * Prefer `for…of` over the `forEach` method.
9765
9782
  *
9766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
9783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
9767
9784
  */
9768
9785
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
9769
9786
  /**
9770
9787
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
9771
9788
  *
9772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
9789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
9773
9790
  */
9774
9791
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
9775
9792
  /**
9776
9793
  * Disallow assigning properties on the global object.
9777
9794
  *
9778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
9795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
9779
9796
  */
9780
9797
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
9781
9798
  /**
@@ -9783,1635 +9800,1635 @@ interface RuleOptions {
9783
9800
  * cases.
9784
9801
  *
9785
9802
  * @deprecated
9786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9787
9804
  */
9788
9805
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
9789
9806
  /**
9790
9807
  * Disallow immediate mutation after variable assignment.
9791
9808
  *
9792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
9809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
9793
9810
  */
9794
9811
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
9795
9812
  /**
9796
9813
  * Disallow impossible comparisons against `.length` or `.size`.
9797
9814
  *
9798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
9815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
9799
9816
  */
9800
9817
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
9801
9818
  /**
9802
9819
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
9803
9820
  *
9804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
9821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
9805
9822
  */
9806
9823
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
9807
9824
  /**
9808
9825
  * Disallow incorrect template literal interpolation syntax.
9809
9826
  *
9810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9811
9828
  */
9812
9829
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
9813
9830
  /**
9814
9831
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
9815
9832
  *
9816
9833
  * @deprecated
9817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9818
9835
  */
9819
9836
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
9820
9837
  /**
9821
9838
  * Disallow `instanceof` with built-in objects
9822
9839
  *
9823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
9840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
9824
9841
  */
9825
9842
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
9826
9843
  /**
9827
9844
  * Disallow calling functions and constructors with an invalid number of
9828
9845
  * arguments.
9829
9846
  *
9830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
9847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
9831
9848
  */
9832
9849
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
9833
9850
  /**
9834
9851
  * Disallow comparing a single character from a string to a multi-character
9835
9852
  * string.
9836
9853
  *
9837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
9854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
9838
9855
  */
9839
9856
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
9840
9857
  /**
9841
9858
  * Disallow invalid options in `fetch()` and `new Request()`.
9842
9859
  *
9843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
9860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
9844
9861
  */
9845
9862
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
9846
9863
  /**
9847
9864
  * Disallow invalid `accept` values on file inputs.
9848
9865
  *
9849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
9866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
9850
9867
  */
9851
9868
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
9852
9869
  /**
9853
9870
  * Prevent calling `EventTarget#removeEventListener()` with the result of an
9854
9871
  * expression.
9855
9872
  *
9856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
9873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
9857
9874
  */
9858
9875
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
9859
9876
  /**
9860
9877
  * Disallow invalid implementations of well-known symbol methods.
9861
9878
  *
9862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
9879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
9863
9880
  */
9864
9881
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
9865
9882
  /**
9866
9883
  * Disallow identifiers starting with `new` or `class`.
9867
9884
  *
9868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
9885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
9869
9886
  */
9870
9887
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
9871
9888
  /**
9872
9889
  * Disallow accessing `event.currentTarget` after the synchronous event
9873
9890
  * dispatch has finished.
9874
9891
  *
9875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
9892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
9876
9893
  */
9877
9894
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
9878
9895
  /**
9879
9896
  * Disallow event-control method calls after the synchronous event dispatch
9880
9897
  * has finished.
9881
9898
  *
9882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
9899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
9883
9900
  */
9884
9901
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
9885
9902
  /**
9886
9903
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
9887
9904
  *
9888
9905
  * @deprecated
9889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9890
9907
  */
9891
9908
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
9892
9909
  /**
9893
9910
  * Disallow `if` statements as the only statement in `if` blocks without
9894
9911
  * `else`.
9895
9912
  *
9896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
9913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
9897
9914
  */
9898
9915
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
9899
9916
  /**
9900
9917
  * Disallow mutating a loop iterable during iteration.
9901
9918
  *
9902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
9919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
9903
9920
  */
9904
9921
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
9905
9922
  /**
9906
9923
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
9907
9924
  *
9908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
9925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
9909
9926
  */
9910
9927
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
9911
9928
  /**
9912
9929
  * Disallow manually wrapped comments.
9913
9930
  *
9914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
9931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
9915
9932
  */
9916
9933
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
9917
9934
  /**
9918
9935
  * Disallow checking a Map key before accessing a different key.
9919
9936
  *
9920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
9937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
9921
9938
  */
9922
9939
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
9923
9940
  /**
9924
9941
  * Disallow misrefactored compound assignments where the target is duplicated
9925
9942
  * in the right-hand side.
9926
9943
  *
9927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
9944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
9928
9945
  */
9929
9946
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
9930
9947
  /**
9931
9948
  * Disallow references to missing local resources.
9932
9949
  *
9933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
9950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
9934
9951
  */
9935
9952
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
9936
9953
  /**
9937
9954
  * Disallow calling Promise executor resolver functions more than once on the
9938
9955
  * same execution path.
9939
9956
  *
9940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
9957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
9941
9958
  */
9942
9959
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
9943
9960
  /**
9944
9961
  * Disallow named usage of default import and export.
9945
9962
  *
9946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
9963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
9947
9964
  */
9948
9965
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
9949
9966
  /**
9950
9967
  * Disallow negated array predicate calls.
9951
9968
  *
9952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
9969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
9953
9970
  */
9954
9971
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
9955
9972
  /**
9956
9973
  * Disallow negated comparisons.
9957
9974
  *
9958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
9975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
9959
9976
  */
9960
9977
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
9961
9978
  /**
9962
9979
  * Disallow negated conditions.
9963
9980
  *
9964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
9981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
9965
9982
  */
9966
9983
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
9967
9984
  /**
9968
9985
  * Disallow negated expression in equality check.
9969
9986
  *
9970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
9987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
9971
9988
  */
9972
9989
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
9973
9990
  /**
9974
9991
  * Disallow nested ternary expressions.
9975
9992
  *
9976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
9993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
9977
9994
  */
9978
9995
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
9979
9996
  /**
9980
9997
  * Disallow `new Array()`.
9981
9998
  *
9982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
9999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
9983
10000
  */
9984
10001
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
9985
10002
  /**
9986
10003
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the
9987
10004
  * deprecated `new Buffer()`.
9988
10005
  *
9989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
10006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
9990
10007
  */
9991
10008
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
9992
10009
  /**
9993
10010
  * Disallow non-function values with function-style verb prefixes.
9994
10011
  *
9995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
10012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
9996
10013
  */
9997
10014
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
9998
10015
  /**
9999
10016
  * Disallow non-standard properties on built-in objects.
10000
10017
  *
10001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
10018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
10002
10019
  */
10003
10020
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
10004
10021
  /**
10005
10022
  * Disallow the use of the `null` literal.
10006
10023
  *
10007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
10024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
10008
10025
  */
10009
10026
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
10010
10027
  /**
10011
10028
  * Disallow the use of objects as default parameters.
10012
10029
  *
10013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
10030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
10014
10031
  */
10015
10032
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
10016
10033
  /**
10017
10034
  * Disallow `Object` methods with `Map` or `Set`.
10018
10035
  *
10019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
10036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
10020
10037
  */
10021
10038
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
10022
10039
  /**
10023
10040
  * Disallow optional chaining on undeclared variables.
10024
10041
  *
10025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
10042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
10026
10043
  */
10027
10044
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
10028
10045
  /**
10029
10046
  * Disallow `process.exit()`.
10030
10047
  *
10031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
10048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
10032
10049
  */
10033
10050
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
10034
10051
  /**
10035
10052
  * Disallow comparisons made redundant by an equality check in the same
10036
10053
  * logical AND.
10037
10054
  *
10038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
10055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
10039
10056
  */
10040
10057
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
10041
10058
  /**
10042
10059
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
10043
10060
  *
10044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
10061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
10045
10062
  */
10046
10063
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
10047
10064
  /**
10048
10065
  * Disallow selector syntax in DOM names.
10049
10066
  *
10050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
10067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
10051
10068
  */
10052
10069
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
10053
10070
  /**
10054
10071
  * Disallow shorthand properties that override related longhand properties.
10055
10072
  *
10056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
10073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
10057
10074
  */
10058
10075
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
10059
10076
  /**
10060
10077
  * Disallow passing single-element arrays to `Promise` methods.
10061
10078
  *
10062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
10079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
10063
10080
  */
10064
10081
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
10065
10082
  /**
10066
10083
  * Disallow classes that only have static members.
10067
10084
  *
10068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
10085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
10069
10086
  */
10070
10087
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
10071
10088
  /**
10072
10089
  * Prefer comparing values directly over subtracting and comparing to `0`.
10073
10090
  *
10074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
10091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
10075
10092
  */
10076
10093
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
10077
10094
  /**
10078
10095
  * Disallow `then` property.
10079
10096
  *
10080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
10097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
10081
10098
  */
10082
10099
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
10083
10100
  /**
10084
10101
  * Disallow assigning `this` to a variable.
10085
10102
  *
10086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
10103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
10087
10104
  */
10088
10105
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
10089
10106
  /**
10090
10107
  * Disallow `this` outside of classes.
10091
10108
  *
10092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
10109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
10093
10110
  */
10094
10111
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
10095
10112
  /**
10096
10113
  * Disallow assigning to top-level variables from inside functions.
10097
10114
  *
10098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
10115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
10099
10116
  */
10100
10117
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
10101
10118
  /**
10102
10119
  * Disallow top-level side effects in exported modules.
10103
10120
  *
10104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
10121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
10105
10122
  */
10106
10123
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
10107
10124
  /**
10108
10125
  * Disallow `all` as a transition property.
10109
10126
  *
10110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
10127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
10111
10128
  */
10112
10129
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
10113
10130
  /**
10114
10131
  * Disallow comparing `undefined` using `typeof`.
10115
10132
  *
10116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
10133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
10117
10134
  */
10118
10135
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
10119
10136
  /**
10120
10137
  * Disallow referencing methods without calling them.
10121
10138
  *
10122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
10139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
10123
10140
  */
10124
10141
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
10125
10142
  /**
10126
10143
  * Require class members to be declared.
10127
10144
  *
10128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
10145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
10129
10146
  */
10130
10147
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
10131
10148
  /**
10132
10149
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
10133
10150
  *
10134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10135
10152
  */
10136
10153
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
10137
10154
  /**
10138
10155
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
10139
10156
  *
10140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
10157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
10141
10158
  */
10142
10159
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
10143
10160
  /**
10144
10161
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount`
10145
10162
  * argument of `Array#{splice,toSpliced}()`.
10146
10163
  *
10147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
10164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
10148
10165
  */
10149
10166
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
10150
10167
  /**
10151
10168
  * Disallow awaiting non-promise values.
10152
10169
  *
10153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
10170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
10154
10171
  */
10155
10172
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
10156
10173
  /**
10157
10174
  * Disallow unnecessary comparisons against boolean literals.
10158
10175
  *
10159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10160
10177
  */
10161
10178
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
10162
10179
  /**
10163
10180
  * Disallow unnecessary options in `fetch()` and `new Request()`.
10164
10181
  *
10165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
10182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
10166
10183
  */
10167
10184
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
10168
10185
  /**
10169
10186
  * Disallow unnecessary `globalThis` references.
10170
10187
  *
10171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
10188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
10172
10189
  */
10173
10190
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
10174
10191
  /**
10175
10192
  * Disallow unnecessary nested ternary expressions.
10176
10193
  *
10177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
10194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
10178
10195
  */
10179
10196
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
10180
10197
  /**
10181
10198
  * Enforce the use of built-in methods instead of unnecessary polyfills.
10182
10199
  *
10183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
10200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
10184
10201
  */
10185
10202
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
10186
10203
  /**
10187
10204
  * Disallow using `.length` or `Infinity` as the `end` argument of
10188
10205
  * `{Array,String,TypedArray}#slice()`.
10189
10206
  *
10190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
10207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
10191
10208
  */
10192
10209
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
10193
10210
  /**
10194
10211
  * Disallow `Array#splice()` when simpler alternatives exist.
10195
10212
  *
10196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
10213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
10197
10214
  */
10198
10215
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
10199
10216
  /**
10200
10217
  * Disallow `String#trim()` before `String#startsWith()` or
10201
10218
  * `String#endsWith()`.
10202
10219
  *
10203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
10220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
10204
10221
  */
10205
10222
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
10206
10223
  /**
10207
10224
  * Disallow unreadable array destructuring.
10208
10225
  *
10209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
10226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
10210
10227
  */
10211
10228
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
10212
10229
  /**
10213
10230
  * Disallow unreadable iterable expressions in `for…of` and `for await…of`
10214
10231
  * loop headers.
10215
10232
  *
10216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
10233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
10217
10234
  */
10218
10235
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
10219
10236
  /**
10220
10237
  * Disallow unreadable IIFEs.
10221
10238
  *
10222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
10239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
10223
10240
  */
10224
10241
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
10225
10242
  /**
10226
10243
  * Disallow unreadable `new` expressions.
10227
10244
  *
10228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
10245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
10229
10246
  */
10230
10247
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
10231
10248
  /**
10232
10249
  * Disallow unreadable object destructuring.
10233
10250
  *
10234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
10251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
10235
10252
  */
10236
10253
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
10237
10254
  /**
10238
10255
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
10239
10256
  *
10240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
10257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
10241
10258
  */
10242
10259
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
10243
10260
  /**
10244
10261
  * Disallow unsafe DOM HTML APIs.
10245
10262
  *
10246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
10263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
10247
10264
  */
10248
10265
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
10249
10266
  /**
10250
10267
  * Disallow reading `.value` from `Promise.allSettled()` results without a
10251
10268
  * fulfilled status guard.
10252
10269
  *
10253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10254
10271
  */
10255
10272
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
10256
10273
  /**
10257
10274
  * Disallow unsafe values as property keys.
10258
10275
  *
10259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
10276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
10260
10277
  */
10261
10278
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
10262
10279
  /**
10263
10280
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite`
10264
10281
  * APIs.
10265
10282
  *
10266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
10283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
10267
10284
  */
10268
10285
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
10269
10286
  /**
10270
10287
  * Disallow non-literal replacement values in `String#replace()` and
10271
10288
  * `String#replaceAll()`.
10272
10289
  *
10273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
10290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
10274
10291
  */
10275
10292
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
10276
10293
  /**
10277
10294
  * Disallow ignoring the return value of selected array methods.
10278
10295
  *
10279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
10296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
10280
10297
  */
10281
10298
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
10282
10299
  /**
10283
10300
  * Disallow unused object properties.
10284
10301
  *
10285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
10302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
10286
10303
  */
10287
10304
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
10288
10305
  /**
10289
10306
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
10290
10307
  *
10291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
10308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
10292
10309
  */
10293
10310
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
10294
10311
  /**
10295
10312
  * Disallow useless type coercions of values that are already of the target
10296
10313
  * type.
10297
10314
  *
10298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
10315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
10299
10316
  */
10300
10317
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
10301
10318
  /**
10302
10319
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or
10303
10320
  * `WeakMap`.
10304
10321
  *
10305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
10322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
10306
10323
  */
10307
10324
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
10308
10325
  /**
10309
10326
  * Disallow useless compound assignments such as `x += 0`.
10310
10327
  *
10311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
10328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
10312
10329
  */
10313
10330
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
10314
10331
  /**
10315
10332
  * Disallow useless concatenation of literals.
10316
10333
  *
10317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
10334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
10318
10335
  */
10319
10336
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
10320
10337
  /**
10321
10338
  * Disallow useless `continue` statements.
10322
10339
  *
10323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
10340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
10324
10341
  */
10325
10342
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
10326
10343
  /**
10327
10344
  * Disallow unnecessary existence checks before deletion.
10328
10345
  *
10329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
10346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
10330
10347
  */
10331
10348
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
10332
10349
  /**
10333
10350
  * Disallow `else` after a statement that exits.
10334
10351
  *
10335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
10352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
10336
10353
  */
10337
10354
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
10338
10355
  /**
10339
10356
  * Disallow unnecessary `Error.captureStackTrace(…)`.
10340
10357
  *
10341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10342
10359
  */
10343
10360
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
10344
10361
  /**
10345
10362
  * Disallow useless fallback when spreading in object literals.
10346
10363
  *
10347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
10364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
10348
10365
  */
10349
10366
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
10350
10367
  /**
10351
10368
  * Disallow unnecessary `.toArray()` on iterators.
10352
10369
  *
10353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
10370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
10354
10371
  */
10355
10372
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
10356
10373
  /**
10357
10374
  * Disallow useless array length check.
10358
10375
  *
10359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
10376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
10360
10377
  */
10361
10378
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
10362
10379
  /**
10363
10380
  * Disallow unnecessary operands in logical expressions involving boolean
10364
10381
  * literals.
10365
10382
  *
10366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
10383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
10367
10384
  */
10368
10385
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
10369
10386
  /**
10370
10387
  * Disallow useless overrides of class methods.
10371
10388
  *
10372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
10389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
10373
10390
  */
10374
10391
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
10375
10392
  /**
10376
10393
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions
10377
10394
  * or promise callbacks
10378
10395
  *
10379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
10396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
10380
10397
  */
10381
10398
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
10382
10399
  /**
10383
10400
  * Disallow redundant re-exports.
10384
10401
  *
10385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
10402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
10386
10403
  */
10387
10404
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
10388
10405
  /**
10389
10406
  * Disallow simple recursive function calls that can be replaced with a loop.
10390
10407
  *
10391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
10408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
10392
10409
  */
10393
10410
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
10394
10411
  /**
10395
10412
  * Disallow unnecessary spread.
10396
10413
  *
10397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
10414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
10398
10415
  */
10399
10416
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
10400
10417
  /**
10401
10418
  * Disallow useless case in switch statements.
10402
10419
  *
10403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
10420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
10404
10421
  */
10405
10422
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
10406
10423
  /**
10407
10424
  * Disallow useless template literal expressions.
10408
10425
  *
10409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
10426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
10410
10427
  */
10411
10428
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
10412
10429
  /**
10413
10430
  * Disallow useless `undefined`.
10414
10431
  *
10415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
10432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
10416
10433
  */
10417
10434
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
10418
10435
  /**
10419
10436
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
10420
10437
  *
10421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
10438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
10422
10439
  */
10423
10440
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
10424
10441
  /**
10425
10442
  * Disallow number literals with zero fractions or dangling dots.
10426
10443
  *
10427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
10444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
10428
10445
  */
10429
10446
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
10430
10447
  /**
10431
10448
  * Enforce proper case for numeric literals.
10432
10449
  *
10433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
10450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
10434
10451
  */
10435
10452
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
10436
10453
  /**
10437
10454
  * Enforce the style of numeric separators by correctly grouping digits.
10438
10455
  *
10439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
10456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
10440
10457
  */
10441
10458
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
10442
10459
  /**
10443
10460
  * Require assignment operator shorthand where possible.
10444
10461
  *
10445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
10462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
10446
10463
  */
10447
10464
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
10448
10465
  /**
10449
10466
  * Prefer `AbortSignal.any()` over manually forwarding abort events between
10450
10467
  * signals.
10451
10468
  *
10452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
10469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
10453
10470
  */
10454
10471
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
10455
10472
  /**
10456
10473
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController`
10457
10474
  * with `setTimeout()`.
10458
10475
  *
10459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
10476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
10460
10477
  */
10461
10478
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
10462
10479
  /**
10463
10480
  * Prefer `.addEventListener()` and `.removeEventListener()` over
10464
10481
  * `on`-functions.
10465
10482
  *
10466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
10483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
10467
10484
  */
10468
10485
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
10469
10486
  /**
10470
10487
  * Prefer an options object over a boolean in `.addEventListener()`.
10471
10488
  *
10472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
10489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
10473
10490
  */
10474
10491
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
10475
10492
  /**
10476
10493
  * Prefer `AggregateError` when throwing collected errors.
10477
10494
  *
10478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
10495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
10479
10496
  */
10480
10497
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
10481
10498
  /**
10482
10499
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from
10483
10500
  * `.filter(…)`.
10484
10501
  *
10485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
10502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
10486
10503
  */
10487
10504
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
10488
10505
  /**
10489
10506
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
10490
10507
  *
10491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
10508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
10492
10509
  */
10493
10510
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
10494
10511
  /**
10495
10512
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
10496
10513
  *
10497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
10514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
10498
10515
  */
10499
10516
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
10500
10517
  /**
10501
10518
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
10502
10519
  *
10503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
10520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
10504
10521
  */
10505
10522
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
10506
10523
  /**
10507
10524
  * Prefer using the `Array.from()` mapping function argument.
10508
10525
  *
10509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
10526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
10510
10527
  */
10511
10528
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
10512
10529
  /**
10513
10530
  * Prefer `Array.from({length}, …)` when creating range arrays.
10514
10531
  *
10515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
10532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
10516
10533
  */
10517
10534
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
10518
10535
  /**
10519
10536
  * Prefer `Array#{indexOf,lastIndexOf}()` over
10520
10537
  * `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
10521
10538
  *
10522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
10539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
10523
10540
  */
10524
10541
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
10525
10542
  /**
10526
10543
  * Prefer iterating an array directly or with `Array#keys()` over
10527
10544
  * `Array#entries()` when the index or value is unused.
10528
10545
  *
10529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
10546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
10530
10547
  */
10531
10548
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
10532
10549
  /**
10533
10550
  * Prefer last-oriented array methods over `Array#reverse()` or
10534
10551
  * `Array#toReversed()` followed by a method.
10535
10552
  *
10536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
10553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
10537
10554
  */
10538
10555
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
10539
10556
  /**
10540
10557
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned
10541
10558
  * array.
10542
10559
  *
10543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
10560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
10544
10561
  */
10545
10562
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
10546
10563
  /**
10547
10564
  * Prefer `.some(…)` over `.filter(…).length` check and
10548
10565
  * `.{find,findLast,findIndex,findLastIndex}(…)`.
10549
10566
  *
10550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
10567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
10551
10568
  */
10552
10569
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
10553
10570
  /**
10554
10571
  * Prefer `.at()` method for index access and `String#charAt()`.
10555
10572
  *
10556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
10573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
10557
10574
  */
10558
10575
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
10559
10576
  /**
10560
10577
  * Prefer `await` over promise chaining.
10561
10578
  *
10562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
10579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
10563
10580
  */
10564
10581
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
10565
10582
  /**
10566
10583
  * Prefer `BigInt` literals over the constructor.
10567
10584
  *
10568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
10585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
10569
10586
  */
10570
10587
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
10571
10588
  /**
10572
10589
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and
10573
10590
  * `Blob#text()` over `FileReader#readAsText(…)`.
10574
10591
  *
10575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
10592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
10576
10593
  */
10577
10594
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
10578
10595
  /**
10579
10596
  * Prefer block statements over IIFEs used only for scoping.
10580
10597
  *
10581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
10598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
10582
10599
  */
10583
10600
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
10584
10601
  /**
10585
10602
  * Prefer directly returning boolean expressions over `if` statements.
10586
10603
  *
10587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
10604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
10588
10605
  */
10589
10606
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
10590
10607
  /**
10591
10608
  * Prefer class field declarations over `this` assignments in constructors.
10592
10609
  *
10593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
10610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
10594
10611
  */
10595
10612
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
10596
10613
  /**
10597
10614
  * Prefer using `Element#classList.toggle()` to toggle class names.
10598
10615
  *
10599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
10616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
10600
10617
  */
10601
10618
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
10602
10619
  /**
10603
10620
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and
10604
10621
  * `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
10605
10622
  *
10606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
10623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
10607
10624
  */
10608
10625
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
10609
10626
  /**
10610
10627
  * Prefer early continues over whole-loop conditional wrapping.
10611
10628
  *
10612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
10629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
10613
10630
  */
10614
10631
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
10615
10632
  /**
10616
10633
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
10617
10634
  *
10618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
10635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
10619
10636
  */
10620
10637
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
10621
10638
  /**
10622
10639
  * Prefer default parameters over reassignment.
10623
10640
  *
10624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
10641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
10625
10642
  */
10626
10643
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
10627
10644
  /**
10628
10645
  * Prefer direct iteration over default iterator method calls.
10629
10646
  *
10630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
10647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
10631
10648
  */
10632
10649
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
10633
10650
  /**
10634
10651
  * Prefer using `using`/`await using` over manual `try`/`finally` resource
10635
10652
  * disposal.
10636
10653
  *
10637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
10654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
10638
10655
  */
10639
10656
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
10640
10657
  /**
10641
10658
  * Prefer `Element#append()` over `Node#appendChild()`.
10642
10659
  *
10643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
10660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
10644
10661
  */
10645
10662
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
10646
10663
  /**
10647
10664
  * Renamed to `unicorn/dom-node-dataset`.
10648
10665
  *
10649
10666
  * @deprecated
10650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10651
10668
  */
10652
10669
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
10653
10670
  /**
10654
10671
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
10655
10672
  *
10656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
10673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
10657
10674
  */
10658
10675
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
10659
10676
  /**
10660
10677
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
10661
10678
  *
10662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
10679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
10663
10680
  */
10664
10681
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
10665
10682
  /**
10666
10683
  * Prefer `.replaceChildren()` when emptying DOM children.
10667
10684
  *
10668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
10685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
10669
10686
  */
10670
10687
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
10671
10688
  /**
10672
10689
  * Prefer `.textContent` over `.innerText`.
10673
10690
  *
10674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
10691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
10675
10692
  */
10676
10693
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
10677
10694
  /**
10678
10695
  * Prefer early returns over full-function conditional wrapping.
10679
10696
  *
10680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
10697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
10681
10698
  */
10682
10699
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
10683
10700
  /**
10684
10701
  * Prefer `else if` over adjacent `if` statements with related conditions.
10685
10702
  *
10686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
10703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
10687
10704
  */
10688
10705
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
10689
10706
  /**
10690
10707
  * Prefer `Error.isError()` when checking for errors.
10691
10708
  *
10692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
10709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
10693
10710
  */
10694
10711
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
10695
10712
  /**
10696
10713
  * Prefer `EventTarget` over `EventEmitter`.
10697
10714
  *
10698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
10715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
10699
10716
  */
10700
10717
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
10701
10718
  /**
10702
10719
  * Prefer explicit viewport units.
10703
10720
  *
10704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
10721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
10705
10722
  */
10706
10723
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
10707
10724
  /**
10708
10725
  * Prefer `export…from` when re-exporting.
10709
10726
  *
10710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
10727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
10711
10728
  */
10712
10729
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
10713
10730
  /**
10714
10731
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
10715
10732
  *
10716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
10733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
10717
10734
  */
10718
10735
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
10719
10736
  /**
10720
10737
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
10721
10738
  *
10722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
10739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
10723
10740
  */
10724
10741
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
10725
10742
  /**
10726
10743
  * Prefer global numeric constants over `Number` static properties.
10727
10744
  *
10728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
10745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
10729
10746
  */
10730
10747
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
10731
10748
  /**
10732
10749
  * Prefer `globalThis` over `window`, `self`, and `global`.
10733
10750
  *
10734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
10751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
10735
10752
  */
10736
10753
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
10737
10754
  /**
10738
10755
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
10739
10756
  *
10740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
10757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
10741
10758
  */
10742
10759
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
10743
10760
  /**
10744
10761
  * Prefer `.has()` when checking existence.
10745
10762
  *
10746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
10763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
10747
10764
  */
10748
10765
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
10749
10766
  /**
10750
10767
  * Prefer moving code shared by all branches of an `if` statement out of the
10751
10768
  * branches.
10752
10769
  *
10753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
10770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
10754
10771
  */
10755
10772
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
10756
10773
  /**
10757
10774
  * Prefer HTTPS over HTTP.
10758
10775
  *
10759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
10776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
10760
10777
  */
10761
10778
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
10762
10779
  /**
10763
10780
  * Prefer identifiers over string literals in import and export specifiers.
10764
10781
  *
10765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
10782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
10766
10783
  */
10767
10784
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
10768
10785
  /**
10769
10786
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting
10770
10787
  * file paths.
10771
10788
  *
10772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
10789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
10773
10790
  */
10774
10791
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
10775
10792
  /**
10776
10793
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and
10777
10794
  * `Array#some()` when checking for existence or non-existence.
10778
10795
  *
10779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
10796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
10780
10797
  */
10781
10798
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
10782
10799
  /**
10783
10800
  * Prefer `.includes()` over repeated equality comparisons.
10784
10801
  *
10785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10786
10803
  */
10787
10804
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
10788
10805
  /**
10789
10806
  * Prefer passing iterables directly to constructors instead of filling empty
10790
10807
  * collections.
10791
10808
  *
10792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
10809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
10793
10810
  */
10794
10811
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
10795
10812
  /**
10796
10813
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
10797
10814
  *
10798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
10815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
10799
10816
  */
10800
10817
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
10801
10818
  /**
10802
10819
  * Prefer iterator helpers over temporary arrays from iterators.
10803
10820
  *
10804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
10821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
10805
10822
  */
10806
10823
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
10807
10824
  /**
10808
10825
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
10809
10826
  *
10810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
10827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
10811
10828
  */
10812
10829
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
10813
10830
  /**
10814
10831
  * Prefer moving `.toArray()` to the end of iterator helper chains.
10815
10832
  *
10816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
10833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
10817
10834
  */
10818
10835
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
10819
10836
  /**
10820
10837
  * Renamed to `unicorn/consistent-json-file-read`.
10821
10838
  *
10822
10839
  * @deprecated
10823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10824
10841
  */
10825
10842
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
10826
10843
  /**
10827
10844
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
10828
10845
  *
10829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
10846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
10830
10847
  */
10831
10848
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
10832
10849
  /**
10833
10850
  * Prefer `location.assign()` over assigning to `location.href`.
10834
10851
  *
10835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
10852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
10836
10853
  */
10837
10854
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
10838
10855
  /**
10839
10856
  * Prefer using a logical operator over a ternary.
10840
10857
  *
10841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
10858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
10842
10859
  */
10843
10860
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
10844
10861
  /**
10845
10862
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a
10846
10863
  * map.
10847
10864
  *
10848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
10865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
10849
10866
  */
10850
10867
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
10851
10868
  /**
10852
10869
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric
10853
10870
  * range checks.
10854
10871
  *
10855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
10872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
10856
10873
  */
10857
10874
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
10858
10875
  /**
10859
10876
  * Prefer `Math` constants over their approximate numeric values.
10860
10877
  *
10861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
10878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
10862
10879
  */
10863
10880
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
10864
10881
  /**
10865
10882
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
10866
10883
  *
10867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
10884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
10868
10885
  */
10869
10886
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
10870
10887
  /**
10871
10888
  * Prefer `Math.trunc()` for truncating numbers.
10872
10889
  *
10873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
10890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
10874
10891
  */
10875
10892
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
10876
10893
  /**
10877
10894
  * Prefer moving ternaries into the minimal varying part of an expression.
10878
10895
  *
10879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
10896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
10880
10897
  */
10881
10898
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
10882
10899
  /**
10883
10900
  * Prefer modern DOM APIs.
10884
10901
  *
10885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
10902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
10886
10903
  */
10887
10904
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
10888
10905
  /**
10889
10906
  * Prefer modern `Math` APIs over legacy patterns.
10890
10907
  *
10891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
10908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
10892
10909
  */
10893
10910
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
10894
10911
  /**
10895
10912
  * Prefer JavaScript modules (ESM) over CommonJS.
10896
10913
  *
10897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
10914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
10898
10915
  */
10899
10916
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
10900
10917
  /**
10901
10918
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol`
10902
10919
  * directly.
10903
10920
  *
10904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
10921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
10905
10922
  */
10906
10923
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
10907
10924
  /**
10908
10925
  * Prefer negative index over `.length - index` when possible.
10909
10926
  *
10910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
10927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
10911
10928
  */
10912
10929
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
10913
10930
  /**
10914
10931
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
10915
10932
  *
10916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
10933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
10917
10934
  */
10918
10935
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
10919
10936
  /**
10920
10937
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
10921
10938
  *
10922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
10939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
10923
10940
  */
10924
10941
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
10925
10942
  /**
10926
10943
  * Prefer `Number.isSafeInteger()` over integer checks.
10927
10944
  *
10928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
10945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
10929
10946
  */
10930
10947
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
10931
10948
  /**
10932
10949
  * Prefer `Number` static methods over global functions and optionally static
10933
10950
  * properties over global constants.
10934
10951
  *
10935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
10952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
10936
10953
  */
10937
10954
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
10938
10955
  /**
10939
10956
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()`
10940
10957
  * calls.
10941
10958
  *
10942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
10959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
10943
10960
  */
10944
10961
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
10945
10962
  /**
10946
10963
  * Prefer object destructuring defaults over default object literals with
10947
10964
  * spread.
10948
10965
  *
10949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
10966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
10950
10967
  */
10951
10968
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
10952
10969
  /**
10953
10970
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs
10954
10971
  * into an object.
10955
10972
  *
10956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
10973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
10957
10974
  */
10958
10975
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
10959
10976
  /**
10960
10977
  * Prefer the most specific `Object` iterable method.
10961
10978
  *
10962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
10979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
10963
10980
  */
10964
10981
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
10965
10982
  /**
10966
10983
  * Prefer observer APIs over resize and scroll listeners with layout reads.
10967
10984
  *
10968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
10985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
10969
10986
  */
10970
10987
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
10971
10988
  /**
10972
10989
  * Prefer omitting the `catch` binding parameter.
10973
10990
  *
10974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
10991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
10975
10992
  */
10976
10993
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
10977
10994
  /**
10978
10995
  * Prefer `Path2D` for repeatedly drawn canvas paths.
10979
10996
  *
10980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
10997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
10981
10998
  */
10982
10999
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
10983
11000
  /**
10984
11001
  * Prefer private class fields over the underscore-prefix convention.
10985
11002
  *
10986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
11003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
10987
11004
  */
10988
11005
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
10989
11006
  /**
10990
11007
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
10991
11008
  *
10992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
11009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
10993
11010
  */
10994
11011
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
10995
11012
  /**
10996
11013
  * Prefer `Promise.withResolvers()` when extracting resolver functions from
10997
11014
  * `new Promise()`.
10998
11015
  *
10999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
11016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
11000
11017
  */
11001
11018
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
11002
11019
  /**
11003
11020
  * Prefer borrowing methods from the prototype instead of the instance.
11004
11021
  *
11005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
11022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
11006
11023
  */
11007
11024
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
11008
11025
  /**
11009
11026
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query
11010
11027
  * methods.
11011
11028
  *
11012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
11029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
11013
11030
  */
11014
11031
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
11015
11032
  /**
11016
11033
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and
11017
11034
  * `setTimeout(…, 0)`.
11018
11035
  *
11019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
11036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
11020
11037
  */
11021
11038
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
11022
11039
  /**
11023
11040
  * Prefer `Reflect.apply()` over `Function#apply()`.
11024
11041
  *
11025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
11042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
11026
11043
  */
11027
11044
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
11028
11045
  /**
11029
11046
  * Prefer `RegExp.escape()` for escaping strings to use in regular
11030
11047
  * expressions.
11031
11048
  *
11032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
11049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
11033
11050
  */
11034
11051
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
11035
11052
  /**
11036
11053
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and
11037
11054
  * `RegExp#exec()`.
11038
11055
  *
11039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
11056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
11040
11057
  */
11041
11058
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
11042
11059
  /**
11043
11060
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
11044
11061
  *
11045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
11062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
11046
11063
  */
11047
11064
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
11048
11065
  /**
11049
11066
  * Prefer `:scope` when using element query selector methods.
11050
11067
  *
11051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
11068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
11052
11069
  */
11053
11070
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
11054
11071
  /**
11055
11072
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or
11056
11073
  * non-existence.
11057
11074
  *
11058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
11075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
11059
11076
  */
11060
11077
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
11061
11078
  /**
11062
11079
  * Prefer `Set` methods for Set operations.
11063
11080
  *
11064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
11081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
11065
11082
  */
11066
11083
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
11067
11084
  /**
11068
11085
  * Prefer using `Set#size` instead of `Array#length`.
11069
11086
  *
11070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
11087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
11071
11088
  */
11072
11089
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
11073
11090
  /**
11074
11091
  * Prefer arrow function properties over methods with a single return.
11075
11092
  *
11076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
11093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
11077
11094
  */
11078
11095
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
11079
11096
  /**
11080
11097
  * Prefer simple conditions first in logical expressions.
11081
11098
  *
11082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
11099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
11083
11100
  */
11084
11101
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
11085
11102
  /**
11086
11103
  * Prefer a simple comparison function for `Array#sort()`.
11087
11104
  *
11088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
11105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
11089
11106
  */
11090
11107
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
11091
11108
  /**
11092
11109
  * Prefer simplified conditions.
11093
11110
  *
11094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
11111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
11095
11112
  */
11096
11113
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
11097
11114
  /**
11098
11115
  * Prefer a single `Array#some()` or `Array#every()` with a combined
11099
11116
  * predicate.
11100
11117
  *
11101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
11118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
11102
11119
  */
11103
11120
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
11104
11121
  /**
11105
11122
  * Enforce combining multiple `Array#{push,unshift}()`,
11106
11123
  * `Element#classList.{add,remove}()`, and `importScripts()` into one call.
11107
11124
  *
11108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
11125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
11109
11126
  */
11110
11127
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
11111
11128
  /**
11112
11129
  * Prefer a single object destructuring declaration per local const source.
11113
11130
  *
11114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
11131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
11115
11132
  */
11116
11133
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
11117
11134
  /**
11118
11135
  * Enforce combining multiple single-character replacements into a single
11119
11136
  * `String#replaceAll()` with a regular expression.
11120
11137
  *
11121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
11138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
11122
11139
  */
11123
11140
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
11124
11141
  /**
11125
11142
  * Prefer declaring variables in the smallest possible scope.
11126
11143
  *
11127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
11144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
11128
11145
  */
11129
11146
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
11130
11147
  /**
11131
11148
  * Prefer `String#split()` with a limit.
11132
11149
  *
11133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
11150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
11134
11151
  */
11135
11152
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
11136
11153
  /**
11137
11154
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`,
11138
11155
  * `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
11139
11156
  *
11140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
11157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
11141
11158
  */
11142
11159
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
11143
11160
  /**
11144
11161
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
11145
11162
  *
11146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
11163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
11147
11164
  */
11148
11165
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
11149
11166
  /**
11150
11167
  * Prefer `String#padStart()` and `String#padEnd()` over manual string
11151
11168
  * padding.
11152
11169
  *
11153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
11170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
11154
11171
  */
11155
11172
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
11156
11173
  /**
11157
11174
  * Prefer using the `String.raw` tag to avoid escaping `\`.
11158
11175
  *
11159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
11176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
11160
11177
  */
11161
11178
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
11162
11179
  /**
11163
11180
  * Prefer `String#repeat()` for repeated whitespace.
11164
11181
  *
11165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
11182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
11166
11183
  */
11167
11184
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
11168
11185
  /**
11169
11186
  * Prefer `String#replaceAll()` over regex searches with the global flag and
11170
11187
  * `String#split().join()`.
11171
11188
  *
11172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
11189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
11173
11190
  */
11174
11191
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
11175
11192
  /**
11176
11193
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
11177
11194
  *
11178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
11195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
11179
11196
  */
11180
11197
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
11181
11198
  /**
11182
11199
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes,
11183
11200
  * `String#indexOf() === 0`, and slice checks.
11184
11201
  *
11185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
11202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
11186
11203
  */
11187
11204
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
11188
11205
  /**
11189
11206
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` /
11190
11207
  * `String#trimRight()`.
11191
11208
  *
11192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
11209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
11193
11210
  */
11194
11211
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
11195
11212
  /**
11196
11213
  * Prefer using `structuredClone` to create a deep clone.
11197
11214
  *
11198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
11215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
11199
11216
  */
11200
11217
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
11201
11218
  /**
11202
11219
  * Prefer `switch` over multiple `else-if`.
11203
11220
  *
11204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
11221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
11205
11222
  */
11206
11223
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
11207
11224
  /**
11208
11225
  * Prefer `Temporal` over `Date`.
11209
11226
  *
11210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
11227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
11211
11228
  */
11212
11229
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
11213
11230
  /**
11214
11231
  * Prefer ternary expressions over simple `if` statements that return or
11215
11232
  * assign values.
11216
11233
  *
11217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
11234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
11218
11235
  */
11219
11236
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
11220
11237
  /**
11221
11238
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
11222
11239
  *
11223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
11240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
11224
11241
  */
11225
11242
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
11226
11243
  /**
11227
11244
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
11228
11245
  *
11229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
11246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
11230
11247
  */
11231
11248
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
11232
11249
  /**
11233
11250
  * Prefer top-level await over top-level promises and async function calls.
11234
11251
  *
11235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
11252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
11236
11253
  */
11237
11254
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
11238
11255
  /**
11239
11256
  * Enforce throwing `TypeError` in type checking conditions.
11240
11257
  *
11241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
11258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
11242
11259
  */
11243
11260
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
11244
11261
  /**
11245
11262
  * Require type literals to be last in union types.
11246
11263
  *
11247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
11264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
11248
11265
  */
11249
11266
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
11250
11267
  /**
11251
11268
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`,
11252
11269
  * `btoa()`, and `Buffer` base64 conversions.
11253
11270
  *
11254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
11271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
11255
11272
  */
11256
11273
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
11257
11274
  /**
11258
11275
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
11259
11276
  *
11260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
11277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
11261
11278
  */
11262
11279
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
11263
11280
  /**
11264
11281
  * Prefer Unicode code point escapes over legacy escape sequences.
11265
11282
  *
11266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11267
11284
  */
11268
11285
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
11269
11286
  /**
11270
11287
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for
11271
11288
  * validation.
11272
11289
  *
11273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
11290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
11274
11291
  */
11275
11292
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
11276
11293
  /**
11277
11294
  * Prefer `URL#href` over stringifying a `URL`.
11278
11295
  *
11279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
11296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
11280
11297
  */
11281
11298
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
11282
11299
  /**
11283
11300
  * Prefer `URLSearchParams` over manually splitting query strings.
11284
11301
  *
11285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
11302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
11286
11303
  */
11287
11304
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
11288
11305
  /**
11289
11306
  * Prefer putting the condition in the while statement.
11290
11307
  *
11291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
11308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
11292
11309
  */
11293
11310
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
11294
11311
  /**
11295
11312
  * Renamed to `unicorn/name-replacements`.
11296
11313
  *
11297
11314
  * @deprecated
11298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11299
11316
  */
11300
11317
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
11301
11318
  /**
11302
11319
  * Enforce consistent relative URL style.
11303
11320
  *
11304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
11321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
11305
11322
  */
11306
11323
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
11307
11324
  /**
11308
11325
  * Enforce using the separator argument with `Array#join()`.
11309
11326
  *
11310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
11327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
11311
11328
  */
11312
11329
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
11313
11330
  /**
11314
11331
  * Require a compare function when calling `Array#sort()` or
11315
11332
  * `Array#toSorted()`.
11316
11333
  *
11317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
11334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
11318
11335
  */
11319
11336
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
11320
11337
  /**
11321
11338
  * Require `CSS.escape()` for interpolated values in CSS selectors.
11322
11339
  *
11323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
11340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
11324
11341
  */
11325
11342
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
11326
11343
  /**
11327
11344
  * Require configured YAML frontmatter fields.
11328
11345
  *
11329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
11346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
11330
11347
  */
11331
11348
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
11332
11349
  /**
11333
11350
  * Require non-empty module attributes for imports and exports
11334
11351
  *
11335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
11352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
11336
11353
  */
11337
11354
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
11338
11355
  /**
11339
11356
  * Require non-empty specifier list in import and export statements.
11340
11357
  *
11341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
11358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
11342
11359
  */
11343
11360
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
11344
11361
  /**
11345
11362
  * Enforce using the digits argument with `Number#toFixed()`.
11346
11363
  *
11347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11348
11365
  */
11349
11366
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
11350
11367
  /**
11351
11368
  * Require passive event listeners for high-frequency events.
11352
11369
  *
11353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
11370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
11354
11371
  */
11355
11372
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
11356
11373
  /**
11357
11374
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
11358
11375
  *
11359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
11376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
11360
11377
  */
11361
11378
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
11362
11379
  /**
11363
11380
  * Require boolean-returning Proxy traps to return booleans.
11364
11381
  *
11365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
11382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
11366
11383
  */
11367
11384
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
11368
11385
  /**
11369
11386
  * Enforce a consistent style for single-line block comments.
11370
11387
  *
11371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
11388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
11372
11389
  */
11373
11390
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
11374
11391
  /**
11375
11392
  * Enforce better string content.
11376
11393
  *
11377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
11394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
11378
11395
  */
11379
11396
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
11380
11397
  /**
11381
11398
  * Enforce consistent brace style for `case` clauses.
11382
11399
  *
11383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
11400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
11384
11401
  */
11385
11402
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
11386
11403
  /**
11387
11404
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case`
11388
11405
  * clauses.
11389
11406
  *
11390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
11407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
11391
11408
  */
11392
11409
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
11393
11410
  /**
11394
11411
  * Fix whitespace-insensitive template indentation.
11395
11412
  *
11396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
11413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
11397
11414
  */
11398
11415
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
11399
11416
  /**
11400
11417
  * Enforce consistent case for text encoding identifiers.
11401
11418
  *
11402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
11419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
11403
11420
  */
11404
11421
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
11405
11422
  /**
11406
11423
  * Require `new` when creating an error.
11407
11424
  *
11408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
11425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
11409
11426
  */
11410
11427
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
11411
11428
  /**
11412
11429
  * Limit the complexity of `try` blocks.
11413
11430
  *
11414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
11431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
11415
11432
  */
11416
11433
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
11417
11434
  /**
@@ -12778,6 +12795,14 @@ type JsdocNoUndefinedTypes = [] | [{
12778
12795
  disableReporting?: boolean;
12779
12796
  markVariablesAsUsed?: boolean;
12780
12797
  }];
12798
+ // ----- jsdoc/no-unnecessary-type-assertion -----
12799
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
12800
+ checkLiteralConstAssertions?: boolean;
12801
+ enableFixer?: boolean;
12802
+ preferConstToLiteralTuples?: boolean;
12803
+ treatAnyAsRedundant?: boolean;
12804
+ typesToIgnore?: string[];
12805
+ }];
12781
12806
  // ----- jsdoc/normalize-see-links -----
12782
12807
  type JsdocNormalizeSeeLinks = [] | [{
12783
12808
  canonicalForm?: 'pipe' | 'prefix';
@@ -13116,6 +13141,11 @@ type JsonPackageNoLocalDependencies = [] | [{
13116
13141
  type JsonPackageOrderProperties = [] | [{
13117
13142
  order?: 'sort-package-json' | string[];
13118
13143
  }];
13144
+ // ----- json-package/prefer-rolling-workspace-spec -----
13145
+ type JsonPackagePreferRollingWorkspaceSpec = [] | [{
13146
+ ignoreDependencies?: string[];
13147
+ ignorePatterns?: string[];
13148
+ }];
13119
13149
  // ----- json-package/repository-shorthand -----
13120
13150
  type JsonPackageRepositoryShorthand = [] | [{
13121
13151
  form?: 'object' | 'shorthand';
@@ -16298,10 +16328,6 @@ type PerfectionistSortImports = {
16298
16328
  sortBy?: 'specifier' | 'path';
16299
16329
  })[];
16300
16330
  newlinesBetween?: 'ignore' | number;
16301
- tsconfig?: {
16302
- rootDir: string;
16303
- filename?: string;
16304
- };
16305
16331
  maxLineLength?: number;
16306
16332
  sortSideEffects?: boolean;
16307
16333
  environment?: 'node' | 'bun';
@@ -16336,6 +16362,10 @@ type PerfectionistSortImports = {
16336
16362
  pattern: string;
16337
16363
  flags?: string;
16338
16364
  } | string);
16365
+ tsconfig?: {
16366
+ rootDir: string;
16367
+ filename?: string;
16368
+ };
16339
16369
  }[];
16340
16370
  // ----- perfectionist/sort-interfaces -----
16341
16371
  type PerfectionistSortInterfaces = {
@@ -16920,6 +16950,7 @@ type PerfectionistSortModules = [] | [{
16920
16950
  order?: 'asc' | 'desc';
16921
16951
  })[];
16922
16952
  newlinesBetween?: 'ignore' | number;
16953
+ additionalModuleBlockTypes?: string[];
16923
16954
  useExperimentalDependencyDetection?: boolean;
16924
16955
  newlinesBetweenOverloadSignatures?: 'ignore' | number;
16925
16956
  partitionByComment?: boolean | (({
@@ -16945,6 +16976,10 @@ type PerfectionistSortModules = [] | [{
16945
16976
  } | string));
16946
16977
  };
16947
16978
  partitionByNewLine?: boolean;
16979
+ tsconfig?: {
16980
+ rootDir: string;
16981
+ filename?: string;
16982
+ };
16948
16983
  }];
16949
16984
  // ----- perfectionist/sort-named-exports -----
16950
16985
  type PerfectionistSortNamedExports = {
@@ -17473,6 +17508,13 @@ type PerfectionistSortObjects = {
17473
17508
  partitionByComputedKey?: boolean;
17474
17509
  styledComponents?: boolean;
17475
17510
  useExperimentalDependencyDetection?: boolean;
17511
+ ignoreCallbackDependenciesPatterns?: ({
17512
+ pattern: string;
17513
+ flags?: string;
17514
+ } | string)[] | ({
17515
+ pattern: string;
17516
+ flags?: string;
17517
+ } | string);
17476
17518
  partitionByComment?: boolean | (({
17477
17519
  pattern: string;
17478
17520
  flags?: string;
@@ -17808,6 +17850,13 @@ type PerfectionistSortVariableDeclarations = {
17808
17850
  matchesAstSelector?: string;
17809
17851
  };
17810
17852
  useExperimentalDependencyDetection?: boolean;
17853
+ ignoreCallbackDependenciesPatterns?: ({
17854
+ pattern: string;
17855
+ flags?: string;
17856
+ } | string)[] | ({
17857
+ pattern: string;
17858
+ flags?: string;
17859
+ } | string);
17811
17860
  partitionByComment?: boolean | (({
17812
17861
  pattern: string;
17813
17862
  flags?: string;
@@ -20474,7 +20523,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
20474
20523
  }];
20475
20524
  // ----- ts/no-misused-promises -----
20476
20525
  type TsNoMisusedPromises = [] | [{
20477
- checksConditionals?: boolean;
20526
+ checksConditionals?: boolean | {
20527
+ flagUnions?: 'all' | 'strict' | 'none';
20528
+ };
20478
20529
  checksSpreads?: boolean;
20479
20530
  checksVoidReturn?: boolean | {
20480
20531
  arguments?: boolean;
@@ -21575,7 +21626,7 @@ type Yoda = [] | ['always' | 'never'] | ['always' | 'never', {
21575
21626
  onlyEquality?: boolean;
21576
21627
  }];
21577
21628
  // Names of all the configs
21578
- type ConfigNames = 'kp/astro/setup' | 'kp/astro/component' | 'kp/astro/rules' | 'kp/astro/script-ts' | 'kp/disables/stylelint-config' | 'kp/disables/prettier' | 'kp/html-script' | 'kp/html/setup' | 'kp/html' | 'kp/html/markdown-code-blocks' | 'kp/ignores' | 'kp/js/rules' | 'kp/js/cjs' | 'kp/json/setup' | 'kp/json/rules-json' | 'kp/json/rules-jsonc' | 'kp/json/rules-json5' | 'kp/json/rules' | 'kp/json/rules-settings' | 'kp/json/rules-package' | 'kp/json/rules-tsconfig' | 'kp/json/rules-overrides' | 'kp/jsx/rules' | 'kp/markdown/remark' | 'kp/markdown/code-blocks' | 'kp/mdx/remark' | 'kp/mdx/code-blocks' | 'kp/react/setup' | 'kp/react/rules' | 'kp/react/disable-type-aware' | 'kp/svelte/setup' | 'kp/svelte/scripts' | 'kp/svelte/component' | 'kp/svelte/rules' | 'kp/svelte/sveltekit-routes' | 'kp/svelte/sveltekit-app' | 'kp/svelte/modules' | 'kp/test/setup' | 'kp/test/rules' | 'kp/toml/setup' | 'kp/toml/rules' | 'kp/ts/rules' | 'kp/ts/dts' | 'kp/tsx/rules' | 'kp/yaml/setup' | 'kp/yaml/rules';
21629
+ type ConfigNames = 'kp/astro/setup' | 'kp/astro/component' | 'kp/astro/rules' | 'kp/astro/script-ts' | 'kp/disables/stylelint-config' | 'kp/disables/prettier' | 'kp/extra-file-extensions' | 'kp/html-script' | 'kp/html/setup' | 'kp/html' | 'kp/html/markdown-code-blocks' | 'kp/ignores' | 'kp/js/rules' | 'kp/js/cjs' | 'kp/json/setup' | 'kp/json/rules-json' | 'kp/json/rules-jsonc' | 'kp/json/rules-json5' | 'kp/json/rules' | 'kp/json/rules-settings' | 'kp/json/rules-package' | 'kp/json/rules-tsconfig' | 'kp/json/rules-overrides' | 'kp/jsx/rules' | 'kp/markdown/remark' | 'kp/markdown/code-blocks' | 'kp/mdx/remark' | 'kp/mdx/code-blocks' | 'kp/react/setup' | 'kp/react/rules' | 'kp/react/disable-type-aware' | 'kp/svelte/setup' | 'kp/svelte/scripts' | 'kp/svelte/component' | 'kp/svelte/rules' | 'kp/svelte/sveltekit-routes' | 'kp/svelte/sveltekit-app' | 'kp/svelte/modules' | 'kp/test/setup' | 'kp/test/rules' | 'kp/toml/setup' | 'kp/toml/rules' | 'kp/ts/rules' | 'kp/ts/dts' | 'kp/tsx/rules' | 'kp/yaml/setup' | 'kp/yaml/rules';
21579
21630
  //#endregion
21580
21631
  //#region src/types.d.ts
21581
21632
  type Awaitable<T> = Promise<T> | T;
@@ -21734,22 +21785,22 @@ type FileType = 'astro' | 'cjs' | 'cjsx' | 'cts' | 'ctsx' | 'html' | 'js' | 'jso
21734
21785
  *
21735
21786
  * @returns The fixed source string.
21736
21787
  */
21737
- declare function fix(source: string, fileTypeOrConfig?: FileType | OptionsConfig, config?: OptionsConfig): Promise<string>;
21788
+ export declare function fix(source: string, fileTypeOrConfig?: FileType | OptionsConfig, config?: OptionsConfig): Promise<string>;
21738
21789
  /**
21739
21790
  * Lint and fix a file in place using the shared ESLint configuration.
21740
21791
  *
21741
21792
  * @param filePath - Path to the file to lint and fix.
21742
21793
  * @param config - Optional `OptionsConfig` for configuration.
21743
21794
  */
21744
- declare function fixFile(filePath: string, config?: OptionsConfig): Promise<void>;
21795
+ export declare function fixFile(filePath: string, config?: OptionsConfig): Promise<void>;
21745
21796
  /**
21746
21797
  * Clear the cached ESLint module and instances. Subsequent calls to `fix` or
21747
21798
  * `fixFile` will re-import ESLint and re-create instances.
21748
21799
  */
21749
- declare function clearCache(): void;
21800
+ export declare function clearCache(): void;
21750
21801
  //#endregion
21751
21802
  //#region src/config.d.ts
21752
- declare const defaultPluginRenaming: {
21803
+ export declare const defaultPluginRenaming: {
21753
21804
  '@eslint-community/eslint-comments': string;
21754
21805
  '@eslint-react': string;
21755
21806
  jsonc: string;
@@ -21762,7 +21813,7 @@ declare const defaultPluginRenaming: {
21762
21813
  vitest: string;
21763
21814
  yml: string;
21764
21815
  };
21765
- type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
21816
+ export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
21766
21817
  /**
21767
21818
  * **@Kitschpatrol's Shared [ESLint](https://eslint.org/) Configuration***
21768
21819
  *
@@ -21784,7 +21835,7 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
21784
21835
  * @see [@kitschpatrol/eslint-config](https://github.com/kitschpatrol/shared-config/tree/main/packages/eslint-config)
21785
21836
  * @see [@kitschpatrol/shared-config](https://github.com/kitschpatrol/shared-config)*
21786
21837
  */
21787
- declare function eslintConfig(options?: Omit<TypedFlatConfigItem, 'files'> & OptionsConfig, ...userConfigs: Array<Awaitable<FlatConfigComposer<any, any> | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>>): Promise<FlatConfigComposer<TypedFlatConfigItem, ConfigNames>>;
21838
+ export declare function eslintConfig(options?: Omit<TypedFlatConfigItem, 'files'> & OptionsConfig, ...userConfigs: Array<Awaitable<FlatConfigComposer<any, any> | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>>): Promise<FlatConfigComposer<TypedFlatConfigItem, ConfigNames>>;
21788
21839
  /**
21789
21840
  * Get ESLint language options object.
21790
21841
  *
@@ -21792,21 +21843,21 @@ declare function eslintConfig(options?: Omit<TypedFlatConfigItem, 'files'> & Opt
21792
21843
  * @param isJsxEnabled - Whether to enable JSX parsing.
21793
21844
  * @param tsconfigRootDirectory - Root directory for TypeScript project lookup.
21794
21845
  */
21795
- declare function getLanguageOptions(typeAware?: boolean, isJsxEnabled?: boolean, tsconfigRootDirectory?: string): Linter.LanguageOptions;
21846
+ export declare function getLanguageOptions(typeAware?: boolean, isJsxEnabled?: boolean, tsconfigRootDirectory?: string): Linter.LanguageOptions;
21796
21847
  /**
21797
21848
  * Get the overrides for a specific key.
21798
21849
  *
21799
21850
  * @param options The options object.
21800
21851
  * @param key The key to get the overrides for.
21801
21852
  */
21802
- declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
21853
+ export declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
21803
21854
  /**
21804
21855
  * Get the overrides for embedded scripts for a specific key.
21805
21856
  *
21806
21857
  * @param options The options object.
21807
21858
  * @param key The key to get the overrides for.
21808
21859
  */
21809
- declare function getOverridesEmbeddedScripts<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
21860
+ export declare function getOverridesEmbeddedScripts<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
21810
21861
  /**
21811
21862
  * Construct an array of ESLint flat config items.
21812
21863
  *
@@ -21822,101 +21873,101 @@ declare function getOverridesEmbeddedScripts<K extends keyof OptionsConfig>(opti
21822
21873
  * @param options The options object.
21823
21874
  * @param key The key to resolve the sub options for.
21824
21875
  */
21825
- declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
21876
+ export declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
21826
21877
  //#endregion
21827
21878
  //#region src/configs/astro.d.ts
21828
- declare function astro(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21879
+ export declare function astro(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21829
21880
  //#endregion
21830
21881
  //#region src/configs/disables.d.ts
21831
21882
  /**
21832
21883
  * Final configuration pass to disable specific rules in specific contexts.
21833
21884
  */
21834
- declare function disables(): Promise<TypedFlatConfigItem[]>;
21885
+ export declare function disables(): Promise<TypedFlatConfigItem[]>;
21835
21886
  //#endregion
21836
21887
  //#region src/configs/html.d.ts
21837
- declare function html(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts): Promise<TypedFlatConfigItem[]>;
21888
+ export declare function html(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts): Promise<TypedFlatConfigItem[]>;
21838
21889
  //#endregion
21839
21890
  //#region src/configs/ignores.d.ts
21840
- declare function ignores(userIgnores?: string[]): Promise<TypedFlatConfigItem[]>;
21891
+ export declare function ignores(userIgnores?: string[]): Promise<TypedFlatConfigItem[]>;
21841
21892
  //#endregion
21842
21893
  //#region src/configs/js.d.ts
21843
21894
  /**
21844
21895
  * JavaScript configuration, note use of TypeScript rules
21845
21896
  */
21846
- declare function js(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21897
+ export declare function js(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21847
21898
  //#endregion
21848
21899
  //#region src/configs/json.d.ts
21849
- declare function json(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21900
+ export declare function json(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21850
21901
  //#endregion
21851
21902
  //#region src/configs/jsx.d.ts
21852
- declare function jsx(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21903
+ export declare function jsx(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21853
21904
  //#endregion
21854
21905
  //#region src/configs/md.d.ts
21855
- declare function md(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts): Promise<TypedFlatConfigItem[]>;
21906
+ export declare function md(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts): Promise<TypedFlatConfigItem[]>;
21856
21907
  //#endregion
21857
21908
  //#region src/configs/mdx.d.ts
21858
- declare function mdx(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts): Promise<TypedFlatConfigItem[]>;
21909
+ export declare function mdx(options?: OptionsOverrides & OptionsOverridesEmbeddedScripts): Promise<TypedFlatConfigItem[]>;
21859
21910
  //#endregion
21860
21911
  //#region src/configs/react.d.ts
21861
- declare function react(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware & {
21912
+ export declare function react(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware & {
21862
21913
  typeAwareJavaScript?: boolean;
21863
21914
  }): Promise<TypedFlatConfigItem[]>;
21864
21915
  //#endregion
21865
21916
  //#region src/configs/svelte.d.ts
21866
- declare function svelte(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware & {
21917
+ export declare function svelte(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware & {
21867
21918
  typeAwareJavaScript?: boolean;
21868
21919
  }): Promise<TypedFlatConfigItem[]>;
21869
21920
  //#endregion
21870
21921
  //#region src/configs/test.d.ts
21871
- declare function test(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21922
+ export declare function test(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21872
21923
  //#endregion
21873
21924
  //#region src/configs/toml.d.ts
21874
- declare function toml(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21925
+ export declare function toml(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21875
21926
  //#endregion
21876
21927
  //#region src/configs/ts.d.ts
21877
- declare function ts(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21928
+ export declare function ts(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21878
21929
  //#endregion
21879
21930
  //#region src/configs/tsx.d.ts
21880
- declare function tsx(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21931
+ export declare function tsx(options?: OptionsOverrides & OptionsTsconfigRootDirectory & OptionsTypeAware): Promise<TypedFlatConfigItem[]>;
21881
21932
  //#endregion
21882
21933
  //#region src/configs/yaml.d.ts
21883
- declare function yaml(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21934
+ export declare function yaml(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
21884
21935
  //#endregion
21885
21936
  //#region src/globs.d.ts
21886
- declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
21887
- declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
21888
- declare const GLOB_JS = "**/*.?([cm])js";
21889
- declare const GLOB_JSX = "**/*.?([cm])jsx";
21890
- declare const GLOB_TS = "**/*.?([cm])ts";
21891
- declare const GLOB_TSX = "**/*.?([cm])tsx";
21892
- declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
21893
- declare const GLOB_CSS = "**/*.css";
21894
- declare const GLOB_POSTCSS = "**/*.{p,post}css";
21895
- declare const GLOB_LESS = "**/*.less";
21896
- declare const GLOB_SCSS = "**/*.scss";
21897
- declare const GLOB_JSON = "**/*.json";
21898
- declare const GLOB_JSON5 = "**/*.json5";
21899
- declare const GLOB_JSONC = "**/*.jsonc";
21900
- declare const GLOB_MARKDOWN = "**/*.md";
21901
- declare const GLOB_MDX = "**/*.mdx";
21902
- declare const GLOB_SVELTE = "**/*.svelte";
21903
- declare const GLOB_SVELTE_TS = "**/*.svelte.ts";
21904
- declare const GLOB_SVELTE_JS = "**/*.svelte.js";
21905
- declare const GLOB_YAML = "**/*.y?(a)ml";
21906
- declare const GLOB_TOML = "**/*.toml";
21907
- declare const GLOB_XML = "**/*.xml";
21908
- declare const GLOB_SVG = "**/*.svg";
21909
- declare const GLOB_HTML = "**/*.htm?(l)";
21910
- declare const GLOB_ASTRO = "**/*.astro";
21911
- declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
21912
- declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
21913
- declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
21914
- declare const GLOB_MDX_CODE = "**/*.mdx/**/*.?([cm])[jt]s?(x)";
21915
- declare const GLOB_MARKDOWN_HTML_CODE = "**/*.md/**/*.htm?(l)";
21916
- declare const GLOB_MDX_HTML_CODE = "**/*.mdx/**/*.htm?(l)";
21917
- declare const GLOB_TESTS: string[];
21918
- declare const GLOB_ALL_SRC: string[];
21919
- declare const GLOB_EXCLUDE: string[];
21937
+ export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
21938
+ export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
21939
+ export declare const GLOB_JS = "**/*.?([cm])js";
21940
+ export declare const GLOB_JSX = "**/*.?([cm])jsx";
21941
+ export declare const GLOB_TS = "**/*.?([cm])ts";
21942
+ export declare const GLOB_TSX = "**/*.?([cm])tsx";
21943
+ export declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
21944
+ export declare const GLOB_CSS = "**/*.css";
21945
+ export declare const GLOB_POSTCSS = "**/*.{p,post}css";
21946
+ export declare const GLOB_LESS = "**/*.less";
21947
+ export declare const GLOB_SCSS = "**/*.scss";
21948
+ export declare const GLOB_JSON = "**/*.json";
21949
+ export declare const GLOB_JSON5 = "**/*.json5";
21950
+ export declare const GLOB_JSONC = "**/*.jsonc";
21951
+ export declare const GLOB_MARKDOWN = "**/*.md";
21952
+ export declare const GLOB_MDX = "**/*.mdx";
21953
+ export declare const GLOB_SVELTE = "**/*.svelte";
21954
+ export declare const GLOB_SVELTE_TS = "**/*.svelte.ts";
21955
+ export declare const GLOB_SVELTE_JS = "**/*.svelte.js";
21956
+ export declare const GLOB_YAML = "**/*.y?(a)ml";
21957
+ export declare const GLOB_TOML = "**/*.toml";
21958
+ export declare const GLOB_XML = "**/*.xml";
21959
+ export declare const GLOB_SVG = "**/*.svg";
21960
+ export declare const GLOB_HTML = "**/*.htm?(l)";
21961
+ export declare const GLOB_ASTRO = "**/*.astro";
21962
+ export declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
21963
+ export declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
21964
+ export declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
21965
+ export declare const GLOB_MDX_CODE = "**/*.mdx/**/*.?([cm])[jt]s?(x)";
21966
+ export declare const GLOB_MARKDOWN_HTML_CODE = "**/*.md/**/*.htm?(l)";
21967
+ export declare const GLOB_MDX_HTML_CODE = "**/*.mdx/**/*.htm?(l)";
21968
+ export declare const GLOB_TESTS: string[];
21969
+ export declare const GLOB_ALL_SRC: string[];
21970
+ export declare const GLOB_EXCLUDE: string[];
21920
21971
  //#endregion
21921
21972
  //#region src/utilities.d.ts
21922
21973
  /**
@@ -21924,13 +21975,13 @@ declare const GLOB_EXCLUDE: string[];
21924
21975
  *
21925
21976
  * @param configs - An array of configs or a single config.
21926
21977
  */
21927
- declare function combine(...configs: Array<Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>>): Promise<TypedFlatConfigItem[]>;
21978
+ export declare function combine(...configs: Array<Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>>): Promise<TypedFlatConfigItem[]>;
21928
21979
  /**
21929
21980
  * Import a module dynamically and return the default export.
21930
21981
  *
21931
21982
  * @param m - The module to import.
21932
21983
  */
21933
- declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
21984
+ export declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
21934
21985
  default: infer U;
21935
21986
  } ? U : T>;
21936
21987
  /**
@@ -21942,7 +21993,7 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
21942
21993
  *
21943
21994
  * @returns True if running in an editor environment, false otherwise
21944
21995
  */
21945
- declare function isInEditorEnv(): boolean;
21996
+ export declare function isInEditorEnv(): boolean;
21946
21997
  /**
21947
21998
  * Checks if the code is running within Git hooks or lint-staged.
21948
21999
  *
@@ -21951,7 +22002,7 @@ declare function isInEditorEnv(): boolean;
21951
22002
  *
21952
22003
  * @returns True if running in Git hooks or lint-staged, false otherwise
21953
22004
  */
21954
- declare function isInGitHooksOrLintStaged(): boolean;
22005
+ export declare function isInGitHooksOrLintStaged(): boolean;
21955
22006
  /**
21956
22007
  * Rename plugin names a flat configs array.
21957
22008
  *
@@ -21967,7 +22018,7 @@ declare function isInGitHooksOrLintStaged(): boolean;
21967
22018
  * @param configs - The flat configs array.
21968
22019
  * @param map - A map of global to local plugin names.
21969
22020
  */
21970
- declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
22021
+ export declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
21971
22022
  /**
21972
22023
  * Rename plugin prefixes in a rule object.
21973
22024
  *
@@ -21988,13 +22039,13 @@ declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Reco
21988
22039
  * @param rules - The rules object.
21989
22040
  * @param map - A map of plugin prefixes to rename.
21990
22041
  */
21991
- declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
22042
+ export declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
21992
22043
  /**
21993
22044
  * Convert a value to an array.
21994
22045
  *
21995
22046
  * @param value - The value to convert.
21996
22047
  */
21997
- declare function toArray<T>(value: T | T[]): T[];
22048
+ export declare function toArray<T>(value: T | T[]): T[];
21998
22049
  /**
21999
22050
  * Generates a Perfectionist sort configuration object from an array of strings.
22000
22051
  * Uses the v5.0 array-based customGroups format.
@@ -22008,7 +22059,7 @@ declare function toArray<T>(value: T | T[]): T[];
22008
22059
  *
22009
22060
  * @see https://perfectionist.dev/rules/sort-objects#useconfigurationif
22010
22061
  */
22011
- declare function generatePerfectionistSortConfig(strings: string[], matchType?: 'exact' | 'leading' | 'trailing'): {
22062
+ export declare function generatePerfectionistSortConfig(strings: string[], matchType?: 'exact' | 'leading' | 'trailing'): {
22012
22063
  customGroups: Array<{
22013
22064
  elementNamePattern: string;
22014
22065
  groupName: string;
@@ -22019,4 +22070,4 @@ declare function generatePerfectionistSortConfig(strings: string[], matchType?:
22019
22070
  };
22020
22071
  };
22021
22072
  //#endregion
22022
- export { type Awaitable, type ConfigNames, type FileType, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_HTML_CODE, GLOB_MDX, GLOB_MDX_CODE, GLOB_MDX_HTML_CODE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVELTE_JS, GLOB_SVELTE_TS, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsOverridesEmbeddedScripts, type OptionsTsconfigRootDirectory, type OptionsTypeAware, ResolvedOptions, type Rules, type TypedFlatConfigItem, astro, clearCache, combine, eslintConfig as default, eslintConfig, defaultPluginRenaming, disables, fix, fixFile, generatePerfectionistSortConfig, getLanguageOptions, getOverrides, getOverridesEmbeddedScripts, html, ignores, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, js, json, jsx, md, mdx, react, renamePluginInConfigs, renameRules, resolveSubOptions, svelte, test, toArray, toml, ts, tsx, yaml };
22073
+ export { type Awaitable, type ConfigNames, type FileType, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsOverridesEmbeddedScripts, type OptionsTsconfigRootDirectory, type OptionsTypeAware, type Rules, type TypedFlatConfigItem, eslintConfig as default };