@pengzhanbo/eslint-config 2.9.2 → 2.10.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +702 -487
  2. package/dist/index.js +10 -8
  3. package/package.json +38 -38
package/dist/index.d.ts CHANGED
@@ -194,6 +194,11 @@ interface RuleOptions {
194
194
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/prefer-static-string-properties.md
195
195
  */
196
196
  'angular-template/prefer-static-string-properties'?: Linter.RuleEntry<AngularTemplatePreferStaticStringProperties>;
197
+ /**
198
+ * Suggests using [style] bindings over ngStyle where applicable
199
+ * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/prefer-style-binding.md
200
+ */
201
+ 'angular-template/prefer-style-binding'?: Linter.RuleEntry<[]>;
197
202
  /**
198
203
  * Ensure that template literals are used instead of concatenating strings or expressions.
199
204
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/prefer-template-literal.md
@@ -273,7 +278,7 @@ interface RuleOptions {
273
278
  * Requires inject() calls to be declared at the top of the class, before any other member
274
279
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/inject-at-top.md
275
280
  */
276
- 'angular/inject-at-top'?: Linter.RuleEntry<[]>;
281
+ 'angular/inject-at-top'?: Linter.RuleEntry<AngularInjectAtTop>;
277
282
  /**
278
283
  * Angular Lifecycle methods should not be async. Angular does not wait for async lifecycle but the code incorrectly suggests it does.
279
284
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-async-lifecycle-method.md
@@ -408,7 +413,7 @@ interface RuleOptions {
408
413
  * Use `model` instead of `input` and `output` for two-way bindings
409
414
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-signal-model.md
410
415
  */
411
- 'angular/prefer-signal-model'?: Linter.RuleEntry<[]>;
416
+ 'angular/prefer-signal-model'?: Linter.RuleEntry<AngularPreferSignalModel>;
412
417
  /**
413
418
  * Use readonly signals instead of `@Input()`, `@ViewChild()` and other legacy decorators
414
419
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-signals.md
@@ -419,6 +424,11 @@ interface RuleOptions {
419
424
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md
420
425
  */
421
426
  'angular/prefer-standalone'?: Linter.RuleEntry<[]>;
427
+ /**
428
+ * Ensures that reactive contexts such as computed(), linkedSignal() and effect() read at least one reactive value (a signal). A reactive context with no reactive dependencies never re-runs, which is almost always a mistake.
429
+ * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/reactive-context-must-read-signal.md
430
+ */
431
+ 'angular/reactive-context-must-read-signal'?: Linter.RuleEntry<AngularReactiveContextMustReadSignal>;
422
432
  /**
423
433
  * The ./ and ../ prefix is standard syntax for relative URLs; don't depend on Angular's current ability to do without that prefix.
424
434
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/relative-url-prefix.md
@@ -440,7 +450,7 @@ interface RuleOptions {
440
450
  */
441
451
  'angular/runtime-localize'?: Linter.RuleEntry<[]>;
442
452
  /**
443
- * Ensures that keys in type decorators (Component, Directive, NgModule, Pipe) are sorted in a consistent order
453
+ * Ensures that keys in type decorators (Component, Directive, Injectable, NgModule, Pipe) are sorted in a consistent order
444
454
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-keys-in-type-decorator.md
445
455
  */
446
456
  'angular/sort-keys-in-type-decorator'?: Linter.RuleEntry<AngularSortKeysInTypeDecorator>;
@@ -1532,6 +1542,11 @@ interface RuleOptions {
1532
1542
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
1533
1543
  */
1534
1544
  'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
1545
+ /**
1546
+ * Disallows (or requires descriptions for) `@ts-<directive>` comments, mirroring `@typescript-eslint/ban-ts-comment`.
1547
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-ban-ts-comment.md#repos-sticky-header
1548
+ */
1549
+ 'jsdoc/ts-ban-ts-comment'?: Linter.RuleEntry<JsdocTsBanTsComment>;
1535
1550
  /**
1536
1551
  * Prefers either function properties or method signatures
1537
1552
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
@@ -3781,7 +3796,7 @@ interface RuleOptions {
3781
3796
  */
3782
3797
  'react/globals'?: Linter.RuleEntry<[]>;
3783
3798
  /**
3784
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
3799
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
3785
3800
  * @see https://eslint-react.xyz/docs/rules/immutability
3786
3801
  */
3787
3802
  'react/immutability'?: Linter.RuleEntry<[]>;
@@ -4136,7 +4151,7 @@ interface RuleOptions {
4136
4151
  */
4137
4152
  'react/x-globals'?: Linter.RuleEntry<[]>;
4138
4153
  /**
4139
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
4154
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
4140
4155
  * @see https://eslint-react.xyz/docs/rules/immutability
4141
4156
  */
4142
4157
  'react/x-immutability'?: Linter.RuleEntry<[]>;
@@ -4884,6 +4899,11 @@ interface RuleOptions {
4884
4899
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
4885
4900
  */
4886
4901
  'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
4902
+ /**
4903
+ * Disallow boolean values on enumerated attributes like draggable and tristate aria-*, which take string tokens — a boolean false removes the attribute instead of writing "false".
4904
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-boolean-enumerated-attribute.md
4905
+ */
4906
+ 'solid/no-boolean-enumerated-attribute'?: Linter.RuleEntry<[]>;
4887
4907
  /**
4888
4908
  * Disallow browser-only globals inside server functions, which run exclusively on the server.
4889
4909
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
@@ -4934,11 +4954,26 @@ interface RuleOptions {
4934
4954
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
4935
4955
  */
4936
4956
  'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
4957
+ /**
4958
+ * Disallow mutating a store's read proxy; store state changes only through the setter's mutable draft.
4959
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-store-mutation-outside-setter.md
4960
+ */
4961
+ 'solid/no-store-mutation-outside-setter'?: Linter.RuleEntry<[]>;
4937
4962
  /**
4938
4963
  * Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
4939
4964
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
4940
4965
  */
4941
4966
  'solid/no-unknown-namespaces'?: Linter.RuleEntry<SolidNoUnknownNamespaces>;
4967
+ /**
4968
+ * Disallow signals that are never written (use a plain value) or never read (dead state).
4969
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unused-signal.md
4970
+ */
4971
+ 'solid/no-unused-signal'?: Linter.RuleEntry<[]>;
4972
+ /**
4973
+ * Disallow writing signals or stores inside `createMemo`, the compute half of `createEffect`, or a component body, which are pure owned scopes.
4974
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-write-in-pure-computation.md
4975
+ */
4976
+ 'solid/no-write-in-pure-computation'?: Linter.RuleEntry<[]>;
4942
4977
  /**
4943
4978
  * Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.
4944
4979
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-classlist.md
@@ -6744,6 +6779,11 @@ interface RuleOptions {
6744
6779
  * @see https://typescript-eslint.io/rules/no-for-in-array
6745
6780
  */
6746
6781
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>;
6782
+ /**
6783
+ * Disallow type operations that resolve to the "empty object" type
6784
+ * @see https://typescript-eslint.io/rules/no-generated-empty-object-type
6785
+ */
6786
+ 'ts/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
6747
6787
  /**
6748
6788
  * Disallow the use of `eval()`-like functions
6749
6789
  * @see https://typescript-eslint.io/rules/no-implied-eval
@@ -7219,1740 +7259,1841 @@ interface RuleOptions {
7219
7259
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7220
7260
  /**
7221
7261
  * Prefer better DOM traversal APIs.
7222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
7262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
7223
7263
  */
7224
7264
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7225
7265
  /**
7226
7266
  * Removed. Prefer `eslint-plugin-regexp`
7227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7228
7268
  * @deprecated
7229
7269
  */
7230
7270
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7231
7271
  /**
7232
7272
  * Enforce a specific parameter name in catch clauses.
7233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
7273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
7234
7274
  */
7235
7275
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7236
7276
  /**
7237
7277
  * Enforce consistent class references in static methods.
7238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
7278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
7239
7279
  */
7240
7280
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7241
7281
  /**
7242
7282
  * Enforce better comment content.
7243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
7283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
7244
7284
  */
7245
7285
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7246
7286
  /**
7247
7287
  * Enforce a consistent return style for multiline arrow function bodies.
7248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
7288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
7249
7289
  */
7250
7290
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7251
7291
  /**
7252
7292
  * Enforce consistent assertion style with `node:assert`.
7253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
7293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
7254
7294
  */
7255
7295
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7256
7296
  /**
7257
7297
  * Enforce consistent naming for boolean names.
7258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
7298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
7259
7299
  */
7260
7300
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7261
7301
  /**
7262
7302
  * Enforce consistent class member order.
7263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
7303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
7264
7304
  */
7265
7305
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7266
7306
  /**
7267
7307
  * Enforce consistent spelling of compound words in identifiers.
7268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
7308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
7269
7309
  */
7270
7310
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7271
7311
  /**
7272
7312
  * Enforce consistent conditional object spread style.
7273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
7313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
7274
7314
  */
7275
7315
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7276
7316
  /**
7277
7317
  * Prefer passing `Date` directly to the constructor when cloning.
7278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
7318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
7279
7319
  */
7280
7320
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7281
7321
  /**
7282
7322
  * Use destructured variables over properties.
7283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
7323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
7284
7324
  */
7285
7325
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7286
7326
  /**
7287
7327
  * Prefer consistent types when spreading a ternary in an array literal.
7288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
7328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
7289
7329
  */
7290
7330
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7291
7331
  /**
7292
7332
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
7333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
7294
7334
  */
7295
7335
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7296
7336
  /**
7297
7337
  * Enforce consistent decorator position on exported classes.
7298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
7299
7339
  */
7300
7340
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7301
7341
  /**
7302
7342
  * Move function definitions to the highest possible scope.
7303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
7343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
7304
7344
  */
7305
7345
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7306
7346
  /**
7307
7347
  * Enforce function syntax by role.
7308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
7348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
7309
7349
  */
7310
7350
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7311
7351
  /**
7312
7352
  * Enforce consistent JSON file reads before `JSON.parse()`.
7313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
7353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
7314
7354
  */
7315
7355
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7316
7356
  /**
7317
7357
  * Enforce consistent optional chaining for same-base member access.
7318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
7358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
7319
7359
  */
7320
7360
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7321
7361
  /**
7322
7362
  * Enforce consistent style for escaping `${` in template literals.
7323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
7363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
7324
7364
  */
7325
7365
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7326
7366
  /**
7327
7367
  * Enforce consistent labels on tuple type elements.
7328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
7368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
7329
7369
  */
7330
7370
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7331
7371
  /**
7332
7372
  * Enforce correct `Error` subclassing.
7333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
7373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
7334
7374
  */
7335
7375
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7336
7376
  /**
7337
7377
  * Enforce consistent default export declarations.
7338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
7378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
7339
7379
  */
7340
7380
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7341
7381
  /**
7342
7382
  * Enforce consistent style for DOM element dataset access.
7343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
7383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
7344
7384
  */
7345
7385
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7346
7386
  /**
7347
7387
  * Enforce no spaces between braces.
7348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
7388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
7349
7389
  */
7350
7390
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7351
7391
  /**
7352
7392
  * Enforce passing a `message` value when creating a built-in error.
7353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
7393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
7354
7394
  */
7355
7395
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7356
7396
  /**
7357
7397
  * Require escape sequences to use uppercase or lowercase values.
7358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
7398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
7359
7399
  */
7360
7400
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7361
7401
  /**
7362
7402
  * Add expiration conditions to TODO comments.
7363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
7403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
7364
7404
  */
7365
7405
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7366
7406
  /**
7367
7407
  * Enforce explicitly comparing the `length` or `size` property of a value.
7368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
7408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
7369
7409
  */
7370
7410
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7371
7411
  /**
7372
7412
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
7413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
7374
7414
  */
7375
7415
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7376
7416
  /**
7377
7417
  * Enforce a case style for filenames and directory names.
7378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
7418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
7379
7419
  */
7380
7420
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7381
7421
  /**
7382
7422
  * Require identifiers to match a specified regular expression.
7383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
7423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
7384
7424
  */
7385
7425
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7386
7426
  /**
7387
7427
  * Enforce specific import styles per module.
7388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
7428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
7389
7429
  */
7390
7430
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7391
7431
  /**
7392
7432
  * Prevent usage of variables from outside the scope of isolated functions.
7393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
7433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
7394
7434
  */
7395
7435
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7396
7436
  /**
7397
7437
  * Enforce a consistent style for optional loop sources.
7398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
7438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
7399
7439
  */
7400
7440
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7401
7441
  /**
7402
7442
  * Require or disallow logical assignment operator shorthand
7403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
7443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
7404
7444
  */
7405
7445
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7406
7446
  /**
7407
7447
  * Limit the depth of nested calls.
7408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
7448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
7409
7449
  */
7410
7450
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7411
7451
  /**
7412
7452
  * Enforce replacements for variable, property, and filenames.
7413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
7453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
7414
7454
  */
7415
7455
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7416
7456
  /**
7417
7457
  * Enforce correct use of `new` for builtin constructors.
7418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
7458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
7419
7459
  */
7420
7460
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7421
7461
  /**
7422
7462
  * Enforce specifying rules to disable in `eslint-disable` comments.
7423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
7463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
7424
7464
  */
7425
7465
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7426
7466
  /**
7427
7467
  * Disallow recursive access to `this` within getters and setters.
7428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
7468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
7429
7469
  */
7430
7470
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7431
7471
  /**
7432
7472
  * Disallow bitwise operators where a logical operator was likely intended.
7433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
7473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
7434
7474
  */
7435
7475
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7436
7476
  /**
7437
7477
  * Disallow anonymous functions and classes as the default export.
7438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
7478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
7439
7479
  */
7440
7480
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7441
7481
  /**
7442
7482
  * Prevent passing a function reference directly to iterator methods.
7443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
7483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
7444
7484
  */
7445
7485
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7446
7486
  /**
7447
7487
  * Disallow array accumulation with `Array#concat()` in loops.
7448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
7488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
7449
7489
  */
7450
7490
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7451
7491
  /**
7452
7492
  * Disallow using reference values as `Array#fill()` values.
7453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
7493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
7454
7494
  */
7455
7495
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7456
7496
  /**
7457
7497
  * Disallow `.fill()` after `Array.from({length: …})`.
7458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
7498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
7459
7499
  */
7460
7500
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7461
7501
  /**
7462
7502
  * Disallow front-of-array mutation.
7463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
7503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
7464
7504
  */
7465
7505
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7466
7506
  /**
7467
7507
  * Disallow using the `this` argument in array methods.
7468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
7508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
7469
7509
  */
7470
7510
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7471
7511
  /**
7472
7512
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7474
7514
  * @deprecated
7475
7515
  */
7476
7516
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7477
7517
  /**
7478
7518
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
7480
7520
  */
7481
7521
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7482
7522
  /**
7483
7523
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
7485
7525
  */
7486
7526
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7487
7527
  /**
7488
7528
  * Prefer `Array#toSorted()` over `Array#sort()`.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
7490
7530
  */
7491
7531
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7492
7532
  /**
7493
7533
  * Disallow sorting arrays to get the minimum or maximum value.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
7495
7535
  */
7496
7536
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7497
7537
  /**
7498
7538
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
7500
7540
  */
7501
7541
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7502
7542
  /**
7503
7543
  * Disallow asterisk prefixes in documentation comments.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7505
7545
  */
7506
7546
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7547
+ /**
7548
+ * Disallow asynchronous callbacks in synchronous iterator helpers.
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
7550
+ */
7551
+ 'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7507
7552
  /**
7508
7553
  * Disallow async functions as `Promise#finally()` callbacks.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
7510
7555
  */
7511
7556
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7512
7557
  /**
7513
7558
  * Disallow member access from await expression.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
7515
7560
  */
7516
7561
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7517
7562
  /**
7518
7563
  * Disallow using `await` in `Promise` method parameters.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
7520
7565
  */
7521
7566
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7522
7567
  /**
7523
7568
  * Disallow barrel files.
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
7525
7570
  */
7526
7571
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7527
7572
  /**
7528
7573
  * Disallow unnecessary `Blob` to `File` conversion.
7529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
7530
7575
  */
7531
7576
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7532
7577
  /**
7533
7578
  * Disallow boolean-returning sort comparators.
7534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
7535
7580
  */
7536
7581
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7537
7582
  /**
7538
- * Disallow `break` and `continue` in nested loops and switches inside loops.
7539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
7583
+ * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
7540
7585
  */
7541
- 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7586
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7542
7587
  /**
7543
7588
  * Prefer drawing canvases directly instead of converting them to images.
7544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
7545
7590
  */
7546
7591
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7547
7592
  /**
7548
7593
  * Disallow chained comparisons such as `a < b < c`.
7549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
7550
7595
  */
7551
7596
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7552
7597
  /**
7553
7598
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
7555
7600
  */
7556
7601
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7557
7602
  /**
7558
7603
  * Disallow dynamic object property existence checks.
7559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
7604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
7560
7605
  */
7561
7606
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7562
7607
  /**
7563
7608
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
7609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
7565
7610
  */
7566
7611
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7567
7612
  /**
7568
7613
  * Disallow confusing uses of `Array#with()`.
7569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
7614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
7570
7615
  */
7571
7616
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7572
7617
  /**
7573
7618
  * Do not use leading/trailing space between `console.log` parameters.
7574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
7619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
7575
7620
  */
7576
7621
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7577
7622
  /**
7578
7623
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
7624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
7580
7625
  */
7581
7626
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7582
7627
  /**
7583
7628
  * Disallow declarations before conditional early exits when they are only used after the exit.
7584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
7629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
7585
7630
  */
7586
7631
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7632
+ /**
7633
+ * Disallow deprecated CSS features.
7634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
7635
+ */
7636
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
7587
7637
  /**
7588
7638
  * Do not use `document.cookie` directly.
7589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
7590
7640
  */
7591
7641
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7592
7642
  /**
7593
7643
  * Disallow two comparisons of the same operands that can be combined into one.
7594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
7595
7645
  */
7596
7646
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7647
+ /**
7648
+ * Disallow duplicate CSS selectors.
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
7650
+ */
7651
+ 'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7652
+ /**
7653
+ * Disallow duplicate font family names.
7654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
7655
+ */
7656
+ 'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7597
7657
  /**
7598
7658
  * Disallow duplicate adjacent branches in if chains.
7599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
7600
7660
  */
7601
7661
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7602
7662
  /**
7603
7663
  * Disallow adjacent duplicate operands in logical expressions.
7604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
7605
7665
  */
7606
7666
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7607
7667
  /**
7608
7668
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
7610
7670
  */
7611
7671
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7612
7672
  /**
7613
7673
  * Disallow duplicate values in `Set` constructor array literals.
7614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
7674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
7615
7675
  */
7616
7676
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7617
7677
  /**
7618
7678
  * Disallow empty files.
7619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
7620
7680
  */
7621
7681
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7622
7682
  /**
7623
7683
  * Disallow assigning to built-in error properties.
7624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
7684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
7625
7685
  */
7626
7686
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7627
7687
  /**
7628
7688
  * Disallow exports in scripts.
7629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
7689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
7630
7690
  */
7631
7691
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7632
7692
  /**
7633
7693
  * Prefer `for…of` over the `forEach` method.
7634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
7694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
7635
7695
  */
7636
7696
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7637
7697
  /**
7638
7698
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
7699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
7640
7700
  */
7641
7701
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7642
7702
  /**
7643
7703
  * Disallow assigning properties on the global object.
7644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
7704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
7645
7705
  */
7646
7706
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7647
7707
  /**
7648
7708
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7650
7710
  * @deprecated
7651
7711
  */
7652
7712
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7653
7713
  /**
7654
7714
  * Disallow immediate mutation after variable assignment.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
7715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
7656
7716
  */
7657
- 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7717
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7658
7718
  /**
7659
7719
  * Disallow impossible comparisons against `.length` or `.size`.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
7661
7721
  */
7662
7722
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7663
7723
  /**
7664
7724
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
7666
7726
  */
7667
7727
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7668
7728
  /**
7669
7729
  * Disallow incorrect template literal interpolation syntax.
7670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7671
7731
  */
7672
7732
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7673
7733
  /**
7674
7734
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7676
7736
  * @deprecated
7677
7737
  */
7678
7738
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7679
7739
  /**
7680
7740
  * Disallow `instanceof` with built-in objects
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
7682
7742
  */
7683
7743
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7684
7744
  /**
7685
7745
  * Disallow calling functions and constructors with an invalid number of arguments.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
7687
7747
  */
7688
7748
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7689
7749
  /**
7690
7750
  * Disallow comparing a single character from a string to a multi-character string.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
7692
7752
  */
7693
7753
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7694
7754
  /**
7695
7755
  * Disallow invalid options in `fetch()` and `new Request()`.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
7697
7757
  */
7698
7758
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7699
7759
  /**
7700
7760
  * Disallow invalid `accept` values on file inputs.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
7702
7762
  */
7703
7763
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7764
+ /**
7765
+ * Disallow unknown media features and invalid values for known media features.
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
7767
+ */
7768
+ 'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
7704
7769
  /**
7705
7770
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
7707
7772
  */
7708
7773
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7709
7774
  /**
7710
7775
  * Disallow invalid implementations of well-known symbol methods.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7712
7777
  */
7713
7778
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7714
7779
  /**
7715
7780
  * Disallow identifiers starting with `new` or `class`.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
7717
7782
  */
7718
7783
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7719
7784
  /**
7720
7785
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
7722
7787
  */
7723
7788
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7724
7789
  /**
7725
7790
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
7727
7792
  */
7728
7793
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7729
7794
  /**
7730
7795
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7732
7797
  * @deprecated
7733
7798
  */
7734
7799
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7735
7800
  /**
7736
7801
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
7802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
7738
7803
  */
7739
7804
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7740
7805
  /**
7741
7806
  * Disallow mutating a loop iterable during iteration.
7742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
7807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
7743
7808
  */
7744
7809
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7745
7810
  /**
7746
7811
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
7812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
7748
7813
  */
7749
7814
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7750
7815
  /**
7751
7816
  * Disallow manually wrapped comments.
7752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
7753
7818
  */
7754
7819
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7755
7820
  /**
7756
7821
  * Disallow checking a Map key before accessing a different key.
7757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
7758
7823
  */
7759
7824
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7760
7825
  /**
7761
7826
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
7763
7828
  */
7764
7829
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7765
7830
  /**
7766
7831
  * Disallow references to missing local resources.
7767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
7768
7833
  */
7769
7834
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7770
7835
  /**
7771
7836
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7773
7838
  */
7774
7839
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7775
7840
  /**
7776
7841
  * Disallow named usage of default import and export.
7777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
7842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
7778
7843
  */
7779
7844
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7780
7845
  /**
7781
7846
  * Disallow negated array predicate calls.
7782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
7847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
7783
7848
  */
7784
7849
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7785
7850
  /**
7786
7851
  * Disallow negated comparisons.
7787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
7852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
7788
7853
  */
7789
7854
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7790
7855
  /**
7791
7856
  * Disallow negated conditions.
7792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
7857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
7793
7858
  */
7794
7859
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7795
7860
  /**
7796
7861
  * Disallow negated expression in equality check.
7797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
7862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
7798
7863
  */
7799
7864
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7800
7865
  /**
7801
7866
  * Disallow nested ternary expressions.
7802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
7867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
7803
7868
  */
7804
7869
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7870
+ /**
7871
+ * Disallow nesting under selector lists with mixed specificity.
7872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
7873
+ */
7874
+ 'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
7805
7875
  /**
7806
7876
  * Disallow `new Array()`.
7807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
7877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
7808
7878
  */
7809
7879
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7810
7880
  /**
7811
7881
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
7882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
7813
7883
  */
7814
7884
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7815
7885
  /**
7816
7886
  * Disallow non-function values with function-style verb prefixes.
7817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
7887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
7818
7888
  */
7819
7889
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7820
7890
  /**
7821
7891
  * Disallow non-standard properties on built-in objects.
7822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
7892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
7823
7893
  */
7824
7894
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7825
7895
  /**
7826
7896
  * Disallow the use of the `null` literal.
7827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
7897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
7828
7898
  */
7829
7899
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7830
7900
  /**
7831
7901
  * Disallow the use of objects as default parameters.
7832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
7902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
7833
7903
  */
7834
7904
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7835
7905
  /**
7836
7906
  * Disallow `Object` methods with `Map` or `Set`.
7837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
7907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
7838
7908
  */
7839
7909
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7840
7910
  /**
7841
7911
  * Disallow optional chaining on undeclared variables.
7842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7843
7913
  */
7844
7914
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7845
7915
  /**
7846
7916
  * Disallow `process.exit()`.
7847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
7917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
7848
7918
  */
7849
7919
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7850
7920
  /**
7851
7921
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
7922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
7853
7923
  */
7854
7924
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7925
+ /**
7926
+ * Disallow nested style rules that do not modify the parent selector.
7927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
7928
+ */
7929
+ 'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
7855
7930
  /**
7856
7931
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
7932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
7858
7933
  */
7859
7934
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7860
7935
  /**
7861
7936
  * Disallow selector syntax in DOM names.
7862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
7937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
7863
7938
  */
7864
7939
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7865
7940
  /**
7866
7941
  * Disallow shorthand properties that override related longhand properties.
7867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
7942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
7868
7943
  */
7869
7944
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7870
7945
  /**
7871
7946
  * Disallow passing single-element arrays to `Promise` methods.
7872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
7947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
7873
7948
  */
7874
7949
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7875
7950
  /**
7876
7951
  * Disallow classes that only have static members.
7877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
7952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
7878
7953
  */
7879
7954
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7880
7955
  /**
7881
7956
  * Prefer comparing values directly over subtracting and comparing to `0`.
7882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
7957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
7883
7958
  */
7884
7959
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7885
7960
  /**
7886
7961
  * Disallow `then` property.
7887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
7962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
7888
7963
  */
7889
7964
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7890
7965
  /**
7891
7966
  * Disallow assigning `this` to a variable.
7892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
7967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
7893
7968
  */
7894
7969
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7895
7970
  /**
7896
7971
  * Disallow `this` outside of classes.
7897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
7972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
7898
7973
  */
7899
7974
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7900
7975
  /**
7901
7976
  * Disallow assigning to top-level variables from inside functions.
7902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
7977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
7903
7978
  */
7904
7979
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7905
7980
  /**
7906
7981
  * Disallow top-level side effects in exported modules.
7907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
7982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
7908
7983
  */
7909
7984
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7910
7985
  /**
7911
7986
  * Disallow `all` as a transition property.
7912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
7987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
7913
7988
  */
7914
7989
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7915
7990
  /**
7916
7991
  * Disallow comparing `undefined` using `typeof`.
7917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
7992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
7918
7993
  */
7919
7994
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7920
7995
  /**
7921
7996
  * Disallow referencing methods without calling them.
7922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
7997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
7923
7998
  */
7924
7999
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7925
8000
  /**
7926
8001
  * Require class members to be declared.
7927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
8002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
7928
8003
  */
7929
8004
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8005
+ /**
8006
+ * Disallow unknown and noncanonical CSS annotations.
8007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
8008
+ */
8009
+ 'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8010
+ /**
8011
+ * Disallow unknown pseudo-class and pseudo-element selectors.
8012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
8013
+ */
8014
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
7930
8015
  /**
7931
8016
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7933
8018
  */
7934
8019
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7935
8020
  /**
7936
8021
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
8022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
7938
8023
  */
7939
8024
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7940
8025
  /**
7941
8026
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
8027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
7943
8028
  */
7944
8029
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7945
8030
  /**
7946
8031
  * Disallow awaiting non-promise values.
7947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
8032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
7948
8033
  */
7949
8034
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7950
8035
  /**
7951
8036
  * Disallow unnecessary comparisons against boolean literals.
7952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7953
8038
  */
7954
8039
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7955
8040
  /**
7956
8041
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
8042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
7958
8043
  */
7959
8044
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7960
8045
  /**
7961
8046
  * Disallow unnecessary `globalThis` references.
7962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
8047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
7963
8048
  */
7964
8049
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7965
8050
  /**
7966
8051
  * Disallow unnecessary nested ternary expressions.
7967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
8052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
7968
8053
  */
7969
8054
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7970
8055
  /**
7971
8056
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
8057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
7973
8058
  */
7974
8059
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7975
8060
  /**
7976
8061
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
8062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
7978
8063
  */
7979
8064
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7980
8065
  /**
7981
8066
  * Disallow `Array#splice()` when simpler alternatives exist.
7982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
8067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
7983
8068
  */
7984
8069
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7985
8070
  /**
7986
8071
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
7988
8073
  */
7989
8074
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7990
8075
  /**
7991
8076
  * Disallow unreadable array destructuring.
7992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
7993
8078
  */
7994
8079
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7995
8080
  /**
7996
8081
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
7998
8083
  */
7999
8084
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8000
8085
  /**
8001
8086
  * Disallow unreadable IIFEs.
8002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
8003
8088
  */
8004
8089
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8005
8090
  /**
8006
8091
  * Disallow unreadable `new` expressions.
8007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
8008
8093
  */
8009
8094
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8010
8095
  /**
8011
8096
  * Disallow unreadable object destructuring.
8012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
8013
8098
  */
8014
8099
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8015
8100
  /**
8016
8101
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
8018
8103
  */
8019
8104
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8020
8105
  /**
8021
8106
  * Disallow unsafe DOM HTML APIs.
8022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
8023
8108
  */
8024
8109
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8025
8110
  /**
8026
8111
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8028
8113
  */
8029
8114
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8030
8115
  /**
8031
8116
  * Disallow unsafe values as property keys.
8032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
8033
8118
  */
8034
8119
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8035
8120
  /**
8036
8121
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8038
8123
  */
8039
8124
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8040
8125
  /**
8041
8126
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
8043
8128
  */
8044
8129
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8045
8130
  /**
8046
- * Disallow ignoring the return value of selected array methods.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
8131
+ * Disallow unscoped CSS nesting selectors.
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
8133
+ */
8134
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
8135
+ /**
8136
+ * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8138
+ * @deprecated
8048
8139
  */
8049
8140
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8141
+ /**
8142
+ * Disallow ignoring the return value of selected built-in methods.
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
8144
+ */
8145
+ 'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8146
+ /**
8147
+ * Disallow discarding lazy iterator helpers.
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
8149
+ */
8150
+ 'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8050
8151
  /**
8051
8152
  * Disallow unused object properties.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
8053
8154
  */
8054
8155
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8055
8156
  /**
8056
8157
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
8058
8159
  */
8059
8160
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8060
8161
  /**
8061
8162
  * Disallow useless type coercions of values that are already of the target type.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
8063
8164
  */
8064
8165
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8065
8166
  /**
8066
8167
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
8068
8169
  */
8069
8170
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8070
8171
  /**
8071
8172
  * Disallow useless compound assignments such as `x += 0`.
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
8073
8174
  */
8074
8175
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8075
8176
  /**
8076
8177
  * Disallow useless concatenation of literals.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
8078
8179
  */
8079
8180
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8080
8181
  /**
8081
8182
  * Disallow useless `continue` statements.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
8083
8184
  */
8084
8185
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8085
8186
  /**
8086
8187
  * Disallow unnecessary existence checks before deletion.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
8088
8189
  */
8089
8190
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8090
8191
  /**
8091
8192
  * Disallow `else` after a statement that exits.
8092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
8093
8194
  */
8094
8195
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8095
8196
  /**
8096
8197
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8098
8199
  */
8099
8200
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8100
8201
  /**
8101
8202
  * Disallow useless fallback when spreading in object literals.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
8103
8204
  */
8104
8205
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8105
8206
  /**
8106
8207
  * Disallow unnecessary `.toArray()` on iterators.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
8108
8209
  */
8109
8210
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8110
8211
  /**
8111
8212
  * Disallow useless array length check.
8112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
8113
8214
  */
8114
8215
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8115
8216
  /**
8116
8217
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
8118
8219
  */
8119
8220
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8120
8221
  /**
8121
8222
  * Disallow useless overrides of class methods.
8122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
8123
8224
  */
8124
8225
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8125
8226
  /**
8126
8227
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
8128
8229
  */
8129
8230
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8130
8231
  /**
8131
8232
  * Disallow redundant re-exports.
8132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
8133
8234
  */
8134
8235
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8135
8236
  /**
8136
8237
  * Disallow simple recursive function calls that can be replaced with a loop.
8137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
8138
8239
  */
8139
8240
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8241
+ /**
8242
+ * Disallow unnecessary `Set` construction around `Set` methods.
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
8244
+ */
8245
+ 'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8140
8246
  /**
8141
8247
  * Disallow unnecessary spread.
8142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
8143
8249
  */
8144
8250
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8145
8251
  /**
8146
8252
  * Disallow useless case in switch statements.
8147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
8148
8254
  */
8149
8255
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8150
8256
  /**
8151
8257
  * Disallow useless template literal expressions.
8152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
8153
8259
  */
8154
8260
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8155
8261
  /**
8156
8262
  * Disallow useless `undefined`.
8157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
8158
8264
  */
8159
8265
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8266
+ /**
8267
+ * Disallow returning or exporting resources declared with `using`, including through capturing functions.
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
8269
+ */
8270
+ 'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8160
8271
  /**
8161
8272
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
8163
8274
  */
8164
8275
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8165
8276
  /**
8166
8277
  * Disallow number literals with zero fractions or dangling dots.
8167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
8168
8279
  */
8169
8280
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8170
8281
  /**
8171
8282
  * Enforce proper case for numeric literals.
8172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
8173
8284
  */
8174
8285
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8175
8286
  /**
8176
8287
  * Enforce the style of numeric separators by correctly grouping digits.
8177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
8178
8289
  */
8179
8290
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8180
8291
  /**
8181
8292
  * Require assignment operator shorthand where possible.
8182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
8183
8294
  */
8184
8295
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8185
8296
  /**
8186
8297
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
8188
8299
  */
8189
8300
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8190
8301
  /**
8191
8302
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
8193
8304
  */
8194
8305
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8195
8306
  /**
8196
8307
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
8198
8309
  */
8199
8310
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8200
8311
  /**
8201
8312
  * Prefer an options object over a boolean in `.addEventListener()`.
8202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
8203
8314
  */
8204
8315
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8205
8316
  /**
8206
8317
  * Prefer `AggregateError` when throwing collected errors.
8207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
8208
8319
  */
8209
8320
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8210
8321
  /**
8211
8322
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
8213
8324
  */
8214
8325
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8215
8326
  /**
8216
8327
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
8218
8329
  */
8219
8330
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8220
8331
  /**
8221
8332
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
8223
8334
  */
8224
8335
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8225
8336
  /**
8226
- * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
8337
+ * Prefer `Array.fromAsync()` over array accumulation loops.
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
8228
8339
  */
8229
8340
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8230
8341
  /**
8231
8342
  * Prefer using the `Array.from()` mapping function argument.
8232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
8233
8344
  */
8234
8345
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8235
8346
  /**
8236
8347
  * Prefer `Array.from({length}, …)` when creating range arrays.
8237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
8238
8349
  */
8239
8350
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8240
8351
  /**
8241
8352
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
8243
8354
  */
8244
8355
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8245
8356
  /**
8246
8357
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
8248
8359
  */
8249
8360
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8250
8361
  /**
8251
8362
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
8253
8364
  */
8254
8365
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8255
8366
  /**
8256
8367
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
8258
8369
  */
8259
8370
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8260
8371
  /**
8261
8372
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
8263
8374
  */
8264
8375
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8265
8376
  /**
8266
8377
  * Prefer `.at()` method for index access and `String#charAt()`.
8267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
8268
8379
  */
8269
8380
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8270
8381
  /**
8271
8382
  * Prefer `await` over promise chaining.
8272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
8273
8384
  */
8274
8385
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8275
8386
  /**
8276
8387
  * Prefer `BigInt` literals over the constructor.
8277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
8278
8389
  */
8279
8390
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8280
8391
  /**
8281
8392
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
8283
8394
  */
8284
8395
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8285
8396
  /**
8286
8397
  * Prefer block statements over IIFEs used only for scoping.
8287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
8288
8399
  */
8289
8400
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8290
8401
  /**
8291
8402
  * Prefer directly returning boolean expressions over `if` statements.
8292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
8293
8404
  */
8294
8405
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8295
8406
  /**
8296
8407
  * Prefer class field declarations over `this` assignments in constructors.
8297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
8298
8409
  */
8299
8410
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8300
8411
  /**
8301
8412
  * Prefer using `Element#classList.toggle()` to toggle class names.
8302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
8303
8414
  */
8304
8415
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8305
8416
  /**
8306
8417
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
8308
8419
  */
8309
8420
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8310
8421
  /**
8311
- * Prefer early continues over whole-loop conditional wrapping.
8312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
8422
+ * Prefer combining consecutive guards with identical exit statements.
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
8424
+ */
8425
+ 'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8426
+ /**
8427
+ * Prefer early continues over conditionals wrapping the remainder of the loop body.
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
8313
8429
  */
8314
8430
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8315
8431
  /**
8316
8432
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
8318
8434
  */
8319
8435
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8320
8436
  /**
8321
8437
  * Prefer default parameters over reassignment.
8322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
8323
8439
  */
8324
8440
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8325
8441
  /**
8326
8442
  * Prefer direct iteration over default iterator method calls.
8327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
8328
8444
  */
8329
8445
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8330
8446
  /**
8331
8447
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
8333
8449
  */
8334
8450
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8335
8451
  /**
8336
8452
  * Prefer `Element#append()` over `Node#appendChild()`.
8337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
8338
8454
  */
8339
8455
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8340
8456
  /**
8341
8457
  * Renamed to `unicorn/dom-node-dataset`.
8342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8343
8459
  * @deprecated
8344
8460
  */
8345
8461
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8346
8462
  /**
8347
8463
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
8464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
8349
8465
  */
8350
8466
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8351
8467
  /**
8352
8468
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
8469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
8354
8470
  */
8355
8471
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8356
8472
  /**
8357
- * Prefer `.replaceChildren()` when emptying DOM children.
8358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
8473
+ * Prefer `.replaceChildren()` when replacing DOM children.
8474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
8359
8475
  */
8360
8476
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8361
8477
  /**
8362
8478
  * Prefer `.textContent` over `.innerText`.
8363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
8479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
8364
8480
  */
8365
8481
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8366
8482
  /**
8367
- * Prefer early returns over full-function conditional wrapping.
8368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
8483
+ * Prefer early returns over conditionals wrapping the remainder of the function body.
8484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
8369
8485
  */
8370
8486
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8371
8487
  /**
8372
8488
  * Prefer `else if` over adjacent `if` statements with related conditions.
8373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
8374
8490
  */
8375
8491
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8376
8492
  /**
8377
8493
  * Prefer `Error.isError()` when checking for errors.
8378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
8379
8495
  */
8380
8496
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8381
8497
  /**
8382
8498
  * Prefer `EventTarget` over `EventEmitter`.
8383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
8499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
8384
8500
  */
8385
8501
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8386
8502
  /**
8387
8503
  * Prefer explicit viewport units.
8388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
8504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
8389
8505
  */
8390
8506
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8391
8507
  /**
8392
8508
  * Prefer `export…from` when re-exporting.
8393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
8509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
8394
8510
  */
8395
8511
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8396
8512
  /**
8397
8513
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
8514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
8399
8515
  */
8400
8516
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8401
8517
  /**
8402
8518
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
8519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
8404
8520
  */
8405
8521
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8406
8522
  /**
8407
8523
  * Prefer global numeric constants over `Number` static properties.
8408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
8524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
8409
8525
  */
8410
8526
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8411
8527
  /**
8412
8528
  * Prefer `globalThis` over `window`, `self`, and `global`.
8413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
8529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
8414
8530
  */
8415
8531
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8416
8532
  /**
8417
- * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
8533
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
8534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
8419
8535
  */
8420
8536
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8421
8537
  /**
8422
8538
  * Prefer `.has()` when checking existence.
8423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
8539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
8424
8540
  */
8425
8541
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8426
8542
  /**
8427
8543
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
8544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
8429
8545
  */
8430
8546
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8431
8547
  /**
8432
8548
  * Prefer HTTPS over HTTP.
8433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
8549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
8434
8550
  */
8435
8551
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8436
8552
  /**
8437
8553
  * Prefer identifiers over string literals in import and export specifiers.
8438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8439
8555
  */
8440
8556
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8441
8557
  /**
8442
8558
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
8444
8560
  */
8445
8561
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8446
8562
  /**
8447
8563
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
8564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
8449
8565
  */
8450
8566
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8451
8567
  /**
8452
8568
  * Prefer `.includes()` over repeated equality comparisons.
8453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8454
8570
  */
8455
8571
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8456
8572
  /**
8457
8573
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
8574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
8459
8575
  */
8460
8576
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8461
8577
  /**
8462
8578
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
8464
8580
  */
8465
8581
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8466
8582
  /**
8467
8583
  * Prefer iterator helpers over temporary arrays from iterators.
8468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
8469
8585
  */
8470
8586
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8471
8587
  /**
8472
8588
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
8589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
8474
8590
  */
8475
8591
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8476
8592
  /**
8477
8593
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8479
8595
  */
8480
8596
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8597
+ /**
8598
+ * Prefer `Iterator.zip()` over parallel-array indexing.
8599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
8600
+ */
8601
+ 'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8602
+ /**
8603
+ * Prefer JSON imports over reading and parsing JSON files.
8604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
8605
+ */
8606
+ 'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
8481
8607
  /**
8482
8608
  * Renamed to `unicorn/consistent-json-file-read`.
8483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8484
8610
  * @deprecated
8485
8611
  */
8486
8612
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8487
8613
  /**
8488
8614
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
8490
8616
  */
8491
8617
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8492
8618
  /**
8493
8619
  * Prefer `location.assign()` over assigning to `location.href`.
8494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
8495
8621
  */
8496
8622
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8497
8623
  /**
8498
8624
  * Prefer using a logical operator over a ternary.
8499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8500
8626
  */
8501
8627
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8502
8628
  /**
8503
8629
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
8505
8631
  */
8506
8632
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8507
8633
  /**
8508
8634
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
8510
8636
  */
8511
8637
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8512
8638
  /**
8513
8639
  * Prefer `Math` constants over their approximate numeric values.
8514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
8640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
8515
8641
  */
8516
8642
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8517
8643
  /**
8518
8644
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
8645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
8520
8646
  */
8521
8647
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8522
8648
  /**
8523
8649
  * Prefer `Math.trunc()` for truncating numbers.
8524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
8650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
8525
8651
  */
8526
8652
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8653
+ /**
8654
+ * Prefer modern media feature range syntax.
8655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
8656
+ */
8657
+ 'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
8527
8658
  /**
8528
8659
  * Prefer moving ternaries into the minimal varying part of an expression.
8529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
8660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
8530
8661
  */
8531
8662
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8532
8663
  /**
8533
8664
  * Prefer modern DOM APIs.
8534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
8665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
8535
8666
  */
8536
8667
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8537
8668
  /**
8538
8669
  * Prefer modern `Math` APIs over legacy patterns.
8539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
8670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
8540
8671
  */
8541
8672
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8542
8673
  /**
8543
8674
  * Prefer JavaScript modules (ESM) over CommonJS.
8544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
8675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
8545
8676
  */
8546
8677
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8547
8678
  /**
8548
8679
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
8680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
8550
8681
  */
8551
8682
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8552
8683
  /**
8553
8684
  * Prefer negative index over `.length - index` when possible.
8554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
8685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
8555
8686
  */
8556
8687
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8557
8688
  /**
8558
8689
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
8690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
8560
8691
  */
8561
8692
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8562
8693
  /**
8563
8694
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
8695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
8565
8696
  */
8566
8697
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8567
8698
  /**
8568
8699
  * Prefer `Number.isSafeInteger()` over integer checks.
8569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
8700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
8570
8701
  */
8571
8702
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8572
8703
  /**
8573
8704
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
8705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
8575
8706
  */
8576
8707
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8577
8708
  /**
8578
8709
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
8710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
8580
8711
  */
8581
8712
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8582
8713
  /**
8583
8714
  * Prefer object destructuring defaults over default object literals with spread.
8584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
8715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
8585
8716
  */
8586
8717
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8587
8718
  /**
8588
8719
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
8720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
8590
8721
  */
8591
8722
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8592
8723
  /**
8593
8724
  * Prefer the most specific `Object` iterable method.
8594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
8725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
8595
8726
  */
8596
8727
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8597
8728
  /**
8598
8729
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
8730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
8600
8731
  */
8601
8732
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8602
8733
  /**
8603
8734
  * Prefer omitting the `catch` binding parameter.
8604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
8735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
8605
8736
  */
8606
8737
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8607
8738
  /**
8608
8739
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
8740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
8610
8741
  */
8611
8742
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8612
8743
  /**
8613
8744
  * Prefer private class fields over the underscore-prefix convention.
8614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
8745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
8615
8746
  */
8616
8747
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8617
8748
  /**
8618
8749
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
8750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
8620
8751
  */
8621
8752
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8622
8753
  /**
8623
8754
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
8755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
8625
8756
  */
8626
8757
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8627
8758
  /**
8628
8759
  * Prefer borrowing methods from the prototype instead of the instance.
8629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
8760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
8630
8761
  */
8631
8762
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8632
8763
  /**
8633
8764
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
8765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
8635
8766
  */
8636
8767
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8637
8768
  /**
8638
8769
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
8770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
8640
8771
  */
8641
8772
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8642
8773
  /**
8643
8774
  * Prefer `Reflect.apply()` over `Function#apply()`.
8644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
8775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
8645
8776
  */
8646
8777
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8647
8778
  /**
8648
8779
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
8780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
8650
8781
  */
8651
8782
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8652
8783
  /**
8653
8784
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
8785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
8655
8786
  */
8656
8787
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8657
8788
  /**
8658
8789
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
8790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
8660
8791
  */
8661
8792
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8662
8793
  /**
8663
8794
  * Prefer `:scope` when using element query selector methods.
8664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
8795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
8665
8796
  */
8666
8797
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8667
8798
  /**
8668
8799
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
8800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
8670
8801
  */
8671
8802
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8672
8803
  /**
8673
8804
  * Prefer `Set` methods for Set operations.
8674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
8805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
8675
8806
  */
8676
8807
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8677
8808
  /**
8678
8809
  * Prefer using `Set#size` instead of `Array#length`.
8679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
8810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
8680
8811
  */
8681
8812
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8682
8813
  /**
8683
8814
  * Prefer arrow function properties over methods with a single return.
8684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
8815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
8685
8816
  */
8686
8817
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8687
8818
  /**
8688
8819
  * Prefer simple conditions first in logical expressions.
8689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
8820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
8690
8821
  */
8691
8822
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8692
8823
  /**
8693
8824
  * Prefer a simple comparison function for `Array#sort()`.
8694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
8825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
8695
8826
  */
8696
8827
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8697
8828
  /**
8698
8829
  * Prefer simplified conditions.
8699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
8830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
8700
8831
  */
8701
8832
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8702
8833
  /**
8703
8834
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
8835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
8705
8836
  */
8706
8837
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8707
8838
  /**
8708
8839
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
8840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
8710
8841
  */
8711
8842
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8712
8843
  /**
8713
8844
  * Prefer a single object destructuring declaration per local const source.
8714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
8845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
8715
8846
  */
8716
8847
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8717
8848
  /**
8718
8849
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
8850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
8720
8851
  */
8721
8852
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8722
8853
  /**
8723
8854
  * Prefer declaring variables in the smallest possible scope.
8724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
8855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
8725
8856
  */
8726
8857
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8727
8858
  /**
8728
8859
  * Prefer `String#split()` with a limit.
8729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
8860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
8730
8861
  */
8731
8862
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8732
8863
  /**
8733
8864
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
8865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
8735
8866
  */
8736
8867
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8737
8868
  /**
8738
8869
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
8870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
8740
8871
  */
8741
8872
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8742
8873
  /**
8743
8874
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
8875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
8745
8876
  */
8746
8877
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8747
8878
  /**
8748
8879
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
8880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
8750
8881
  */
8751
8882
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8752
8883
  /**
8753
8884
  * Prefer `String#repeat()` for repeated whitespace.
8754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
8885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
8755
8886
  */
8756
8887
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8757
8888
  /**
8758
8889
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
8890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
8760
8891
  */
8761
8892
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8762
8893
  /**
8763
8894
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
8895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
8765
8896
  */
8766
8897
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8767
8898
  /**
8768
8899
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
8900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
8770
8901
  */
8771
8902
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8772
8903
  /**
8773
8904
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
8905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
8775
8906
  */
8776
8907
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8777
8908
  /**
8778
8909
  * Prefer using `structuredClone` to create a deep clone.
8779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
8910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
8780
8911
  */
8781
8912
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8782
8913
  /**
8783
8914
  * Prefer `switch` over multiple `else-if`.
8784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
8915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
8785
8916
  */
8786
8917
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8787
8918
  /**
8788
8919
  * Prefer `Temporal` over `Date`.
8789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
8920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
8790
8921
  */
8791
8922
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8923
+ /**
8924
+ * Prefer direct Temporal conversion methods.
8925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
8926
+ */
8927
+ 'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
8792
8928
  /**
8793
8929
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
8930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
8795
8931
  */
8796
8932
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8797
8933
  /**
8798
8934
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
8935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
8800
8936
  */
8801
8937
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8802
8938
  /**
8803
8939
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
8940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
8805
8941
  */
8806
8942
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8807
8943
  /**
8808
8944
  * Prefer top-level await over top-level promises and async function calls.
8809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
8945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
8810
8946
  */
8811
8947
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8812
8948
  /**
8813
8949
  * Enforce throwing `TypeError` in type checking conditions.
8814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
8950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
8815
8951
  */
8816
8952
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8817
8953
  /**
8818
8954
  * Require type literals to be last in union types.
8819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
8955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
8820
8956
  */
8821
8957
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8822
8958
  /**
8823
- * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
8959
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
8960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
8825
8961
  */
8826
8962
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8963
+ /**
8964
+ * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
8965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
8966
+ */
8967
+ 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
8827
8968
  /**
8828
8969
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
8970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
8830
8971
  */
8831
8972
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8832
8973
  /**
8833
8974
  * Prefer Unicode code point escapes over legacy escape sequences.
8834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8835
8976
  */
8836
8977
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8837
8978
  /**
8838
8979
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
8980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
8840
8981
  */
8841
8982
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8842
8983
  /**
8843
8984
  * Prefer `URL#href` over stringifying a `URL`.
8844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
8985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
8845
8986
  */
8846
8987
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8847
8988
  /**
8848
8989
  * Prefer `URLSearchParams` over manually splitting query strings.
8849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
8990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
8850
8991
  */
8851
8992
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8852
8993
  /**
8853
8994
  * Prefer putting the condition in the while statement.
8854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
8995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
8855
8996
  */
8856
8997
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8857
8998
  /**
8858
8999
  * Renamed to `unicorn/name-replacements`.
8859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8860
9001
  * @deprecated
8861
9002
  */
8862
9003
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8863
9004
  /**
8864
9005
  * Enforce consistent relative URL style.
8865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
9006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
8866
9007
  */
8867
9008
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8868
9009
  /**
8869
9010
  * Enforce using the separator argument with `Array#join()`.
8870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
9011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
8871
9012
  */
8872
9013
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8873
9014
  /**
8874
9015
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
9016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
8876
9017
  */
8877
9018
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8878
9019
  /**
8879
9020
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
9021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
8881
9022
  */
8882
9023
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8883
9024
  /**
8884
9025
  * Require configured YAML frontmatter fields.
8885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
9026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
8886
9027
  */
8887
9028
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8888
9029
  /**
8889
9030
  * Require non-empty module attributes for imports and exports
8890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
9031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
8891
9032
  */
8892
9033
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8893
9034
  /**
8894
9035
  * Require non-empty specifier list in import and export statements.
8895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
9036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
8896
9037
  */
8897
9038
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8898
9039
  /**
8899
9040
  * Enforce using the digits argument with `Number#toFixed()`.
8900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8901
9042
  */
8902
9043
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8903
9044
  /**
8904
9045
  * Require passive event listeners for high-frequency events.
8905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
9046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
8906
9047
  */
8907
9048
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8908
9049
  /**
8909
9050
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
9051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
8911
9052
  */
8912
9053
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8913
9054
  /**
8914
9055
  * Require boolean-returning Proxy traps to return booleans.
8915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
9056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
8916
9057
  */
8917
9058
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8918
9059
  /**
8919
9060
  * Enforce a consistent style for single-line block comments.
8920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
9061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
8921
9062
  */
8922
9063
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8923
9064
  /**
8924
9065
  * Enforce better string content.
8925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
9066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
8926
9067
  */
8927
9068
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8928
9069
  /**
8929
9070
  * Enforce consistent brace style for `case` clauses.
8930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
9071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
8931
9072
  */
8932
9073
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8933
9074
  /**
8934
9075
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
9076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
8936
9077
  */
8937
9078
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8938
9079
  /**
8939
9080
  * Fix whitespace-insensitive template indentation.
8940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
9081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
8941
9082
  */
8942
9083
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8943
9084
  /**
8944
9085
  * Enforce consistent case for text encoding identifiers.
8945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
9086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
8946
9087
  */
8947
9088
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8948
9089
  /**
8949
9090
  * Require `new` when creating an error.
8950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
9091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
8951
9092
  */
8952
9093
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8953
9094
  /**
8954
9095
  * Limit the complexity of `try` blocks.
8955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
9096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
8956
9097
  */
8957
9098
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8958
9099
  /**
@@ -9758,6 +9899,11 @@ interface RuleOptions {
9758
9899
  * @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
9759
9900
  */
9760
9901
  'vue/no-setup-props-reactivity-loss'?: Linter.RuleEntry<[]>;
9902
+ /**
9903
+ * disallow the use of event names that collide with native web event names
9904
+ * @see https://eslint.vuejs.org/rules/no-shadow-native-events.html
9905
+ */
9906
+ 'vue/no-shadow-native-events'?: Linter.RuleEntry<[]>;
9761
9907
  /**
9762
9908
  * enforce component's data property to be a function
9763
9909
  * @see https://eslint.vuejs.org/rules/no-shared-component-data.html
@@ -10551,6 +10697,8 @@ type AngularTemplateButtonHasType = [] | [{
10551
10697
  // ----- angular-template/click-events-have-key-events -----
10552
10698
  type AngularTemplateClickEventsHaveKeyEvents = [] | [{
10553
10699
  ignoreWithDirectives?: string[];
10700
+ requireKeyCode?: boolean;
10701
+ allowedKeyCodes?: string[];
10554
10702
  }];
10555
10703
  // ----- angular-template/conditional-complexity -----
10556
10704
  type AngularTemplateConditionalComplexity = [] | [{
@@ -10609,8 +10757,8 @@ type AngularTemplateNoDuplicateAttributes = [] | [{
10609
10757
  }];
10610
10758
  // ----- angular-template/no-inline-styles -----
10611
10759
  type AngularTemplateNoInlineStyles = [] | [{
10612
- allowNgStyle?: boolean;
10613
- allowBindToStyle?: boolean;
10760
+ allowNgStyle?: (boolean | "dynamic");
10761
+ allowBindToStyle?: (boolean | "dynamic");
10614
10762
  }];
10615
10763
  // ----- angular-template/no-interpolation-in-attributes -----
10616
10764
  type AngularTemplateNoInterpolationInAttributes = [] | [{
@@ -10692,6 +10840,10 @@ type AngularDirectiveSelector = [] | [({
10692
10840
  prefix?: (string | unknown[]);
10693
10841
  style: ("camelCase" | "kebab-case");
10694
10842
  }])];
10843
+ // ----- angular/inject-at-top -----
10844
+ type AngularInjectAtTop = [] | [{
10845
+ additionalInjectFunctions?: string[];
10846
+ }];
10695
10847
  // ----- angular/no-input-prefix -----
10696
10848
  type AngularNoInputPrefix = [] | [{
10697
10849
  prefixes?: string[];
@@ -10708,6 +10860,10 @@ type AngularPipePrefix = [] | [{
10708
10860
  type AngularPreferOnPushComponentChangeDetection = [] | [{
10709
10861
  allowExplicitOnPush?: boolean;
10710
10862
  }];
10863
+ // ----- angular/prefer-signal-model -----
10864
+ type AngularPreferSignalModel = [] | [{
10865
+ useTypeChecking?: boolean;
10866
+ }];
10711
10867
  // ----- angular/prefer-signals -----
10712
10868
  type AngularPreferSignals = [] | [{
10713
10869
  preferReadonlySignalProperties?: boolean;
@@ -10716,6 +10872,10 @@ type AngularPreferSignals = [] | [{
10716
10872
  useTypeChecking?: boolean;
10717
10873
  additionalSignalCreationFunctions?: string[];
10718
10874
  }];
10875
+ // ----- angular/reactive-context-must-read-signal -----
10876
+ type AngularReactiveContextMustReadSignal = [] | [{
10877
+ checkResources?: boolean;
10878
+ }];
10719
10879
  // ----- angular/require-localize-metadata -----
10720
10880
  type AngularRequireLocalizeMetadata = [] | [{
10721
10881
  requireDescription?: boolean;
@@ -10726,12 +10886,15 @@ type AngularRequireLocalizeMetadata = [] | [{
10726
10886
  type AngularSortKeysInTypeDecorator = [] | [{
10727
10887
  Component?: string[];
10728
10888
  Directive?: string[];
10889
+ Injectable?: string[];
10729
10890
  NgModule?: string[];
10730
10891
  Pipe?: string[];
10892
+ allowUnconfiguredProperties?: boolean;
10731
10893
  }];
10732
10894
  // ----- angular/use-injectable-provided-in -----
10733
10895
  type AngularUseInjectableProvidedIn = [] | [{
10734
10896
  ignoreClassNamePattern?: string;
10897
+ allowProvidedInNull?: boolean;
10735
10898
  }];
10736
10899
  // ----- antfu/consistent-chaining -----
10737
10900
  type AntfuConsistentChaining = [] | [{
@@ -11115,10 +11278,12 @@ type EslintCommentsDisableEnablePair = [] | [{
11115
11278
  type EslintCommentsNoRestrictedDisable = string[];
11116
11279
  // ----- eslint-comments/no-use -----
11117
11280
  type EslintCommentsNoUse = [] | [{
11118
- allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
11281
+ additionalDirectives?: string[];
11282
+ allow?: string[];
11119
11283
  }];
11120
11284
  // ----- eslint-comments/require-description -----
11121
11285
  type EslintCommentsRequireDescription = [] | [{
11286
+ additionalDirectives?: string[];
11122
11287
  ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
11123
11288
  }];
11124
11289
  // ----- format/dprint -----
@@ -11524,6 +11689,7 @@ type JsdocNoUndefinedTypes = [] | [{
11524
11689
  type JsdocNoUnnecessaryTypeAssertion = [] | [{
11525
11690
  checkLiteralConstAssertions?: boolean;
11526
11691
  enableFixer?: boolean;
11692
+ preferConstToLiteralTuples?: boolean;
11527
11693
  treatAnyAsRedundant?: boolean;
11528
11694
  typesToIgnore?: string[];
11529
11695
  }];
@@ -11800,6 +11966,22 @@ type JsdocTextEscaping = [] | [{
11800
11966
  escapeHTML?: boolean;
11801
11967
  escapeMarkdown?: boolean;
11802
11968
  }];
11969
+ // ----- jsdoc/ts-ban-ts-comment -----
11970
+ type JsdocTsBanTsComment = [] | [{
11971
+ minimumDescriptionLength?: number;
11972
+ "ts-check"?: (boolean | "allow-with-description" | {
11973
+ descriptionFormat?: string;
11974
+ });
11975
+ "ts-expect-error"?: (boolean | "allow-with-description" | {
11976
+ descriptionFormat?: string;
11977
+ });
11978
+ "ts-ignore"?: (boolean | "allow-with-description" | {
11979
+ descriptionFormat?: string;
11980
+ });
11981
+ "ts-nocheck"?: (boolean | "allow-with-description" | {
11982
+ descriptionFormat?: string;
11983
+ });
11984
+ }];
11803
11985
  // ----- jsdoc/ts-method-signature-style -----
11804
11986
  type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
11805
11987
  enableFixer?: boolean;
@@ -16553,6 +16735,7 @@ type ReactRefreshOnlyExportComponents = [] | [{
16553
16735
  extraHOCs?: string[];
16554
16736
  allowExportNames?: string[];
16555
16737
  allowConstantExport?: boolean;
16738
+ allowCompoundComponents?: boolean;
16556
16739
  checkJS?: boolean;
16557
16740
  }];
16558
16741
  // ----- react/dom-no-unknown-property -----
@@ -19687,6 +19870,9 @@ type UnicornFilenameCase = [] | [({
19687
19870
  })[];
19688
19871
  multipleFileExtensions?: boolean;
19689
19872
  checkDirectories?: boolean;
19873
+ directoryRoots?: (string | {
19874
+ [k: string]: unknown | undefined;
19875
+ })[];
19690
19876
  } | {
19691
19877
  cases?: {
19692
19878
  camelCase?: boolean;
@@ -19700,6 +19886,9 @@ type UnicornFilenameCase = [] | [({
19700
19886
  })[];
19701
19887
  multipleFileExtensions?: boolean;
19702
19888
  checkDirectories?: boolean;
19889
+ directoryRoots?: (string | {
19890
+ [k: string]: unknown | undefined;
19891
+ })[];
19703
19892
  })];
19704
19893
  // ----- unicorn/id-match -----
19705
19894
  type UnicornIdMatch = [] | [string] | [string, {
@@ -19786,10 +19975,22 @@ type UnicornNoArrayReverse = [] | [{
19786
19975
  type UnicornNoArraySort = [] | [{
19787
19976
  allowExpressionStatement?: boolean;
19788
19977
  }];
19978
+ // ----- unicorn/no-break-in-nested-loop -----
19979
+ type UnicornNoBreakInNestedLoop = [] | [{
19980
+ checkContinue?: boolean;
19981
+ }];
19982
+ // ----- unicorn/no-deprecated-css-features -----
19983
+ type UnicornNoDeprecatedCssFeatures = [] | [{
19984
+ allow?: string[];
19985
+ }];
19789
19986
  // ----- unicorn/no-empty-file -----
19790
19987
  type UnicornNoEmptyFile = [] | [{
19791
19988
  allowComments?: boolean;
19792
19989
  }];
19990
+ // ----- unicorn/no-immediate-mutation -----
19991
+ type UnicornNoImmediateMutation = [] | [{
19992
+ checkConditionals?: boolean;
19993
+ }];
19793
19994
  // ----- unicorn/no-instanceof-builtins -----
19794
19995
  type UnicornNoInstanceofBuiltins = [] | [{
19795
19996
  useErrorIsError?: boolean;
@@ -19830,6 +20031,10 @@ type UnicornNoNull = [] | [{
19830
20031
  type UnicornNoTypeofUndefined = [] | [{
19831
20032
  checkGlobalVariables?: boolean;
19832
20033
  }];
20034
+ // ----- unicorn/no-unknown-pseudo-selectors -----
20035
+ type UnicornNoUnknownPseudoSelectors = [] | [{
20036
+ allow?: string[];
20037
+ }];
19833
20038
  // ----- unicorn/no-unnecessary-polyfills -----
19834
20039
  type UnicornNoUnnecessaryPolyfills = [] | [{
19835
20040
  targets?: (string | string[] | {
@@ -19840,6 +20045,10 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
19840
20045
  type UnicornNoUnreadableArrayDestructuring = [] | [{
19841
20046
  maximumIgnoredElements?: number;
19842
20047
  }];
20048
+ // ----- unicorn/no-unscoped-css-nesting-selector -----
20049
+ type UnicornNoUnscopedCssNestingSelector = [] | [{
20050
+ scopingRootAtRules?: string[];
20051
+ }];
19843
20052
  // ----- unicorn/no-useless-undefined -----
19844
20053
  type UnicornNoUselessUndefined = [] | [{
19845
20054
  checkArguments?: boolean;
@@ -19893,9 +20102,14 @@ type UnicornPreferAt = [] | [{
19893
20102
  getLastElementFunctions?: string[];
19894
20103
  checkAllIndexAccess?: boolean;
19895
20104
  }];
20105
+ // ----- unicorn/prefer-combined-guards -----
20106
+ type UnicornPreferCombinedGuards = [] | [{
20107
+ checkCompoundConditions?: boolean;
20108
+ }];
19896
20109
  // ----- unicorn/prefer-continue -----
19897
20110
  type UnicornPreferContinue = [] | [{
19898
20111
  maximumStatements?: number;
20112
+ checkShortBodies?: boolean;
19899
20113
  }];
19900
20114
  // ----- unicorn/prefer-dom-node-html-methods -----
19901
20115
  type UnicornPreferDomNodeHtmlMethods = [] | [{
@@ -19905,6 +20119,7 @@ type UnicornPreferDomNodeHtmlMethods = [] | [{
19905
20119
  // ----- unicorn/prefer-early-return -----
19906
20120
  type UnicornPreferEarlyReturn = [] | [{
19907
20121
  maximumStatements?: number;
20122
+ checkShortBodies?: boolean;
19908
20123
  }];
19909
20124
  // ----- unicorn/prefer-explicit-viewport-units -----
19910
20125
  type UnicornPreferExplicitViewportUnits = [] | [{
@@ -20912,7 +21127,7 @@ type VueNoDeprecatedSlotAttribute = [] | [{
20912
21127
  }];
20913
21128
  // ----- vue/no-dupe-keys -----
20914
21129
  type VueNoDupeKeys = [] | [{
20915
- groups?: unknown[];
21130
+ groups?: string[];
20916
21131
  }];
20917
21132
  // ----- vue/no-duplicate-attr-inheritance -----
20918
21133
  type VueNoDuplicateAttrInheritance = [] | [{
@@ -21042,8 +21257,8 @@ type VueNoReservedComponentNames = [] | [{
21042
21257
  }];
21043
21258
  // ----- vue/no-reserved-keys -----
21044
21259
  type VueNoReservedKeys = [] | [{
21045
- reserved?: unknown[];
21046
- groups?: unknown[];
21260
+ reserved?: string[];
21261
+ groups?: string[];
21047
21262
  }];
21048
21263
  // ----- vue/no-reserved-props -----
21049
21264
  type VueNoReservedProps = [] | [{
@@ -21131,7 +21346,7 @@ type VueNoTemplateTargetBlank = [] | [{
21131
21346
  }];
21132
21347
  // ----- vue/no-undef-components -----
21133
21348
  type VueNoUndefComponents = [] | [{
21134
- ignorePatterns?: unknown[];
21349
+ ignorePatterns?: string[];
21135
21350
  }];
21136
21351
  // ----- vue/no-undef-directives -----
21137
21352
  type VueNoUndefDirectives = [] | [{
@@ -21265,7 +21480,7 @@ type VueOperatorLinebreak = [] | [(("after" | "before" | "none") | null)] | [(("
21265
21480
  }];
21266
21481
  // ----- vue/order-in-components -----
21267
21482
  type VueOrderInComponents = [] | [{
21268
- order?: unknown[];
21483
+ order?: (string | string[])[];
21269
21484
  }];
21270
21485
  // ----- vue/padding-line-between-blocks -----
21271
21486
  type VuePaddingLineBetweenBlocks = [] | [("never" | "always")];
@@ -21354,8 +21569,8 @@ type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")];
21354
21569
  // ----- vue/sort-keys -----
21355
21570
  type VueSortKeys = [] | [("asc" | "desc")] | [("asc" | "desc"), {
21356
21571
  caseSensitive?: boolean;
21357
- ignoreChildrenOf?: unknown[];
21358
- ignoreGrandchildrenOf?: unknown[];
21572
+ ignoreChildrenOf?: string[];
21573
+ ignoreGrandchildrenOf?: string[];
21359
21574
  minKeys?: number;
21360
21575
  natural?: boolean;
21361
21576
  allowLineSeparatedGroups?: boolean;
@@ -21415,7 +21630,7 @@ type VueValidVFor = [] | [{
21415
21630
  }];
21416
21631
  // ----- vue/valid-v-on -----
21417
21632
  type VueValidVOn = [] | [{
21418
- modifiers?: unknown[];
21633
+ modifiers?: string[];
21419
21634
  }];
21420
21635
  // ----- vue/valid-v-slot -----
21421
21636
  type VueValidVSlot = [] | [{
@@ -21785,14 +22000,14 @@ interface VendoredPrettierOptionsRequired {
21785
22000
  }
21786
22001
  //#endregion
21787
22002
  //#region src/types.d.ts
21788
- type Awaitable<T> = T | Promise<T>;
21789
- type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
22003
+ export type Awaitable<T> = T | Promise<T>;
22004
+ export type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
21790
22005
  /**
21791
22006
  * An updated version of ESLint's `Linter.Config`, which provides autocompletion
21792
22007
  * for `rules` and relaxes type limitations for `plugins` and `rules`, because
21793
22008
  * many plugins still lack proper type definitions.
21794
22009
  */
21795
- type TypedFlatConfigItem = Omit<ConfigWithExtends, "plugins" | "rules"> & {
22010
+ export type TypedFlatConfigItem = Omit<ConfigWithExtends, "plugins" | "rules"> & {
21796
22011
  /**
21797
22012
  * An object containing a name-value mapping of plugin names to plugin objects.
21798
22013
  * When `files` is specified, these plugins are only available to the matching files.
@@ -21806,13 +22021,13 @@ type TypedFlatConfigItem = Omit<ConfigWithExtends, "plugins" | "rules"> & {
21806
22021
  */
21807
22022
  rules?: Rules;
21808
22023
  };
21809
- interface OptionsFiles {
22024
+ export interface OptionsFiles {
21810
22025
  /**
21811
22026
  * Override the `files` option to provide custom globs.
21812
22027
  */
21813
22028
  files?: string[];
21814
22029
  }
21815
- interface OptionsVue extends OptionsOverrides {
22030
+ export interface OptionsVue extends OptionsOverrides {
21816
22031
  /**
21817
22032
  * Create virtual files for Vue SFC blocks to enable linting.
21818
22033
  *
@@ -21834,8 +22049,8 @@ interface OptionsVue extends OptionsOverrides {
21834
22049
  */
21835
22050
  a11y?: boolean;
21836
22051
  }
21837
- interface OptionsJSXA11y extends OptionsOverrides {}
21838
- interface OptionsJSX {
22052
+ export interface OptionsJSXA11y extends OptionsOverrides {}
22053
+ export interface OptionsJSX {
21839
22054
  /**
21840
22055
  * Enable JSX accessibility rules.
21841
22056
  *
@@ -21847,8 +22062,8 @@ interface OptionsJSX {
21847
22062
  */
21848
22063
  a11y?: boolean | OptionsJSXA11y;
21849
22064
  }
21850
- type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly);
21851
- interface OptionsFormatters {
22065
+ export type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly);
22066
+ export interface OptionsFormatters {
21852
22067
  /**
21853
22068
  * Enable formatting support for CSS, Less, Sass, and SCSS.
21854
22069
  *
@@ -21904,7 +22119,7 @@ interface OptionsFormatters {
21904
22119
  */
21905
22120
  astro?: "prettier" | boolean;
21906
22121
  }
21907
- interface OptionsComponentExts {
22122
+ export interface OptionsComponentExts {
21908
22123
  /**
21909
22124
  * Additional extensions for components.
21910
22125
  *
@@ -21913,7 +22128,7 @@ interface OptionsComponentExts {
21913
22128
  */
21914
22129
  componentExts?: string[];
21915
22130
  }
21916
- interface OptionsE18e extends OptionsOverrides {
22131
+ export interface OptionsE18e extends OptionsOverrides {
21917
22132
  /**
21918
22133
  * Include modernization rules
21919
22134
  *
@@ -21936,7 +22151,7 @@ interface OptionsE18e extends OptionsOverrides {
21936
22151
  */
21937
22152
  performanceImprovements?: boolean;
21938
22153
  }
21939
- interface OptionsUnicorn extends OptionsOverrides {
22154
+ export interface OptionsUnicorn extends OptionsOverrides {
21940
22155
  /**
21941
22156
  * Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
21942
22157
  *
@@ -21944,7 +22159,7 @@ interface OptionsUnicorn extends OptionsOverrides {
21944
22159
  */
21945
22160
  allRecommended?: boolean;
21946
22161
  }
21947
- interface OptionsMarkdown extends OptionsOverrides {
22162
+ export interface OptionsMarkdown extends OptionsOverrides {
21948
22163
  /**
21949
22164
  * Enable GFM (GitHub Flavored Markdown) support.
21950
22165
  *
@@ -21956,7 +22171,7 @@ interface OptionsMarkdown extends OptionsOverrides {
21956
22171
  */
21957
22172
  overridesMarkdown?: TypedFlatConfigItem["rules"];
21958
22173
  }
21959
- interface OptionsTypeScriptParserOptions {
22174
+ export interface OptionsTypeScriptParserOptions {
21960
22175
  /**
21961
22176
  * Additional parser options for TypeScript.
21962
22177
  */
@@ -21972,7 +22187,7 @@ interface OptionsTypeScriptParserOptions {
21972
22187
  */
21973
22188
  ignoresTypeAware?: string[];
21974
22189
  }
21975
- interface OptionsTypeScriptWithTypes {
22190
+ export interface OptionsTypeScriptWithTypes {
21976
22191
  /**
21977
22192
  * When this options is provided, type aware rules will be enabled.
21978
22193
  * @see https://typescript-eslint.io/linting/typed-linting/
@@ -21983,20 +22198,20 @@ interface OptionsTypeScriptWithTypes {
21983
22198
  */
21984
22199
  overridesTypeAware?: TypedFlatConfigItem["rules"];
21985
22200
  }
21986
- interface OptionsHasTypeScript {
22201
+ export interface OptionsHasTypeScript {
21987
22202
  typescript?: boolean;
21988
22203
  }
21989
- interface OptionsStylistic {
22204
+ export interface OptionsStylistic {
21990
22205
  stylistic?: boolean | StylisticConfig;
21991
22206
  }
21992
- interface OptionsStylistic {
22207
+ export interface OptionsStylistic {
21993
22208
  stylistic?: boolean | StylisticConfig;
21994
22209
  }
21995
- interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi" | "braceStyle" | "experimental"> {}
21996
- interface OptionsOverrides {
22210
+ export interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi" | "braceStyle" | "experimental"> {}
22211
+ export interface OptionsOverrides {
21997
22212
  overrides?: TypedFlatConfigItem["rules"];
21998
22213
  }
21999
- interface OptionsProjectType {
22214
+ export interface OptionsProjectType {
22000
22215
  /**
22001
22216
  * Type of the project. `lib` will enable more strict rules for libraries.
22002
22217
  *
@@ -22004,7 +22219,7 @@ interface OptionsProjectType {
22004
22219
  */
22005
22220
  type?: "app" | "lib";
22006
22221
  }
22007
- interface OptionsTypeScriptErasableOnly {
22222
+ export interface OptionsTypeScriptErasableOnly {
22008
22223
  /**
22009
22224
  * Enable erasable syntax only rules.
22010
22225
  *
@@ -22013,16 +22228,16 @@ interface OptionsTypeScriptErasableOnly {
22013
22228
  */
22014
22229
  erasableOnly?: boolean;
22015
22230
  }
22016
- interface OptionsRegExp {
22231
+ export interface OptionsRegExp {
22017
22232
  /**
22018
22233
  * Override rulelevels
22019
22234
  */
22020
22235
  level?: "error" | "warn";
22021
22236
  }
22022
- interface OptionsIsInEditor {
22237
+ export interface OptionsIsInEditor {
22023
22238
  isInEditor?: boolean;
22024
22239
  }
22025
- interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
22240
+ export interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
22026
22241
  /**
22027
22242
  * Requires catalogs usage
22028
22243
  *
@@ -22048,7 +22263,7 @@ interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
22048
22263
  */
22049
22264
  sort?: boolean;
22050
22265
  }
22051
- interface OptionsUnoCSS extends OptionsOverrides {
22266
+ export interface OptionsUnoCSS extends OptionsOverrides {
22052
22267
  /**
22053
22268
  * Enable attributify support.
22054
22269
  * @default true
@@ -22060,7 +22275,7 @@ interface OptionsUnoCSS extends OptionsOverrides {
22060
22275
  */
22061
22276
  strict?: boolean;
22062
22277
  }
22063
- interface OptionsTailwindCSS extends OptionsOverrides {
22278
+ export interface OptionsTailwindCSS extends OptionsOverrides {
22064
22279
  /**
22065
22280
  * Read CSS files
22066
22281
  */
@@ -22080,8 +22295,8 @@ interface OptionsTailwindCSS extends OptionsOverrides {
22080
22295
  */
22081
22296
  customClassNames?: boolean;
22082
22297
  }
22083
- interface OptionsReact extends OptionsOverrides {}
22084
- interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
22298
+ export interface OptionsReact extends OptionsOverrides {}
22299
+ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
22085
22300
  /**
22086
22301
  * Enable gitignore support.
22087
22302
  *
@@ -22328,7 +22543,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
22328
22543
  }
22329
22544
  //#endregion
22330
22545
  //#region src/factory.d.ts
22331
- declare const defaultPluginRenaming: {
22546
+ export declare const defaultPluginRenaming: {
22332
22547
  "@eslint-react": string;
22333
22548
  "@next/next": string;
22334
22549
  "@stylistic": string;
@@ -22337,9 +22552,9 @@ declare const defaultPluginRenaming: {
22337
22552
  vitest: string;
22338
22553
  yml: string;
22339
22554
  };
22340
- type EslintConfigOptions = OptionsConfig & Omit<TypedFlatConfigItem, "files" | "ignores">;
22341
- type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[];
22342
- type EslintConfigReturn = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
22555
+ export type EslintConfigOptions = OptionsConfig & Omit<TypedFlatConfigItem, "files" | "ignores">;
22556
+ export type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[];
22557
+ export type EslintConfigReturn = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
22343
22558
  /**
22344
22559
  * Construct an array of ESLint flat config items.
22345
22560
  *
@@ -22350,62 +22565,62 @@ type EslintConfigReturn = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
22350
22565
  * @returns {Promise<TypedFlatConfigItem[]>}
22351
22566
  * The merged ESLint configurations.
22352
22567
  */
22353
- declare function eslintFlatConfig(options?: EslintConfigOptions, ...userConfigs: UserConfig[]): EslintConfigReturn;
22354
- type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
22355
- declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
22356
- declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
22568
+ export declare function eslintFlatConfig(options?: EslintConfigOptions, ...userConfigs: UserConfig[]): EslintConfigReturn;
22569
+ export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
22570
+ export declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
22571
+ export declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
22357
22572
  //#endregion
22358
22573
  //#region src/config-presets.d.ts
22359
- declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
22360
- declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
22574
+ export declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
22575
+ export declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
22361
22576
  //#endregion
22362
22577
  //#region src/configs/angular.d.ts
22363
- declare function angular(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22578
+ export declare function angular(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22364
22579
  //#endregion
22365
22580
  //#region src/configs/astro.d.ts
22366
- declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22581
+ export declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22367
22582
  //#endregion
22368
22583
  //#region src/configs/command.d.ts
22369
- declare function command(): Promise<TypedFlatConfigItem[]>;
22584
+ export declare function command(): Promise<TypedFlatConfigItem[]>;
22370
22585
  //#endregion
22371
22586
  //#region src/configs/comments.d.ts
22372
- declare function comments(): Promise<TypedFlatConfigItem[]>;
22587
+ export declare function comments(): Promise<TypedFlatConfigItem[]>;
22373
22588
  //#endregion
22374
22589
  //#region src/configs/disables.d.ts
22375
- declare function disables(): Promise<TypedFlatConfigItem[]>;
22590
+ export declare function disables(): Promise<TypedFlatConfigItem[]>;
22376
22591
  //#endregion
22377
22592
  //#region src/configs/e18e.d.ts
22378
- declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
22593
+ export declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
22379
22594
  //#endregion
22380
22595
  //#region src/configs/formatters.d.ts
22381
- declare function formatters(rawOptions?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
22596
+ export declare function formatters(rawOptions?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
22382
22597
  //#endregion
22383
22598
  //#region src/configs/ignores.d.ts
22384
- declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
22599
+ export declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
22385
22600
  //#endregion
22386
22601
  //#region src/configs/imports.d.ts
22387
- declare function imports(_options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22602
+ export declare function imports(_options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22388
22603
  //#endregion
22389
22604
  //#region src/configs/javascript.d.ts
22390
- declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22605
+ export declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22391
22606
  //#endregion
22392
22607
  //#region src/configs/jsdoc.d.ts
22393
- declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22608
+ export declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22394
22609
  //#endregion
22395
22610
  //#region src/configs/jsonc.d.ts
22396
- declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22611
+ export declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22397
22612
  //#endregion
22398
22613
  //#region src/configs/jsx.d.ts
22399
- declare function jsx(options?: OptionsJSX): Promise<TypedFlatConfigItem[]>;
22614
+ export declare function jsx(options?: OptionsJSX): Promise<TypedFlatConfigItem[]>;
22400
22615
  //#endregion
22401
22616
  //#region src/configs/markdown.d.ts
22402
- declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsMarkdown): Promise<TypedFlatConfigItem[]>;
22617
+ export declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsMarkdown): Promise<TypedFlatConfigItem[]>;
22403
22618
  //#endregion
22404
22619
  //#region src/configs/nextjs.d.ts
22405
- declare function nextjs(options?: OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22620
+ export declare function nextjs(options?: OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22406
22621
  //#endregion
22407
22622
  //#region src/configs/node.d.ts
22408
- declare function node(): Promise<TypedFlatConfigItem[]>;
22623
+ export declare function node(): Promise<TypedFlatConfigItem[]>;
22409
22624
  //#endregion
22410
22625
  //#region src/configs/perfectionist.d.ts
22411
22626
  /**
@@ -22413,19 +22628,19 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
22413
22628
  *
22414
22629
  * @see https://github.com/azat-io/eslint-plugin-perfectionist
22415
22630
  */
22416
- declare function perfectionist(options: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22631
+ export declare function perfectionist(options: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22417
22632
  //#endregion
22418
22633
  //#region src/configs/pnpm.d.ts
22419
- declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
22634
+ export declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
22420
22635
  //#endregion
22421
22636
  //#region src/configs/react.d.ts
22422
- declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22637
+ export declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22423
22638
  //#endregion
22424
22639
  //#region src/configs/regexp.d.ts
22425
- declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22640
+ export declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22426
22641
  //#endregion
22427
22642
  //#region src/configs/solid.d.ts
22428
- declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
22643
+ export declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
22429
22644
  //#endregion
22430
22645
  //#region src/configs/sort.d.ts
22431
22646
  /**
@@ -22433,86 +22648,86 @@ declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & Optio
22433
22648
  *
22434
22649
  * Requires `jsonc` config
22435
22650
  */
22436
- declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
22651
+ export declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
22437
22652
  /**
22438
22653
  * Sort tsconfig.json
22439
22654
  *
22440
22655
  * Requires `jsonc` config
22441
22656
  */
22442
- declare function sortTsconfig(): TypedFlatConfigItem[];
22657
+ export declare function sortTsconfig(): TypedFlatConfigItem[];
22443
22658
  //#endregion
22444
22659
  //#region src/configs/stylistic.d.ts
22445
- declare const StylisticConfigDefaults: StylisticConfig;
22446
- interface StylisticOptions extends StylisticConfig, OptionsOverrides {
22660
+ export declare const StylisticConfigDefaults: StylisticConfig;
22661
+ export interface StylisticOptions extends StylisticConfig, OptionsOverrides {
22447
22662
  lessOpinionated?: boolean;
22448
22663
  }
22449
- declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
22664
+ export declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
22450
22665
  //#endregion
22451
22666
  //#region src/configs/svelte.d.ts
22452
- declare function svelte(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22667
+ export declare function svelte(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22453
22668
  //#endregion
22454
22669
  //#region src/configs/tailwindcss.d.ts
22455
- declare function tailwindcss(options?: OptionsTailwindCSS): Promise<TypedFlatConfigItem[]>;
22670
+ export declare function tailwindcss(options?: OptionsTailwindCSS): Promise<TypedFlatConfigItem[]>;
22456
22671
  //#endregion
22457
22672
  //#region src/configs/test.d.ts
22458
- declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22673
+ export declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22459
22674
  //#endregion
22460
22675
  //#region src/configs/toml.d.ts
22461
- declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22676
+ export declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22462
22677
  //#endregion
22463
22678
  //#region src/configs/typescript.d.ts
22464
- declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType & OptionsTypeScriptErasableOnly): Promise<TypedFlatConfigItem[]>;
22679
+ export declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType & OptionsTypeScriptErasableOnly): Promise<TypedFlatConfigItem[]>;
22465
22680
  //#endregion
22466
22681
  //#region src/configs/unicorn.d.ts
22467
- declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
22682
+ export declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
22468
22683
  //#endregion
22469
22684
  //#region src/configs/unocss.d.ts
22470
- declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfigItem[]>;
22685
+ export declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfigItem[]>;
22471
22686
  //#endregion
22472
22687
  //#region src/configs/vue.d.ts
22473
- declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22688
+ export declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22474
22689
  //#endregion
22475
22690
  //#region src/configs/yaml.d.ts
22476
- declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22691
+ export declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22477
22692
  //#endregion
22478
22693
  //#region src/globs.d.ts
22479
- declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
22480
- declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
22481
- declare const GLOB_JS = "**/*.?([cm])js";
22482
- declare const GLOB_JSX = "**/*.?([cm])jsx";
22483
- declare const GLOB_TS = "**/*.?([cm])ts";
22484
- declare const GLOB_TSX = "**/*.?([cm])tsx";
22485
- declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
22486
- declare const GLOB_CSS = "**/*.css";
22487
- declare const GLOB_POSTCSS = "**/*.{p,post}css";
22488
- declare const GLOB_LESS = "**/*.less";
22489
- declare const GLOB_SCSS = "**/*.scss";
22490
- declare const GLOB_JSON = "**/*.json";
22491
- declare const GLOB_JSON5 = "**/*.json5";
22492
- declare const GLOB_JSONC = "**/*.jsonc";
22493
- declare const GLOB_MARKDOWN = "**/*.md";
22494
- declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
22495
- declare const GLOB_VUE = "**/*.vue";
22496
- declare const GLOB_YAML = "**/*.y?(a)ml";
22497
- declare const GLOB_TOML = "**/*.toml";
22498
- declare const GLOB_XML = "**/*.xml";
22499
- declare const GLOB_SVG = "**/*.svg";
22500
- declare const GLOB_HTML = "**/*.htm?(l)";
22501
- declare const GLOB_ASTRO = "**/*.astro";
22502
- declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
22503
- declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
22504
- declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
22505
- declare const GLOB_MARKDOWN_CODE: string;
22506
- declare const GLOB_TESTS: string[];
22507
- declare const GLOB_ALL_SRC: string[];
22508
- declare const GLOB_EXCLUDE: string[];
22694
+ export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
22695
+ export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
22696
+ export declare const GLOB_JS = "**/*.?([cm])js";
22697
+ export declare const GLOB_JSX = "**/*.?([cm])jsx";
22698
+ export declare const GLOB_TS = "**/*.?([cm])ts";
22699
+ export declare const GLOB_TSX = "**/*.?([cm])tsx";
22700
+ export declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
22701
+ export declare const GLOB_CSS = "**/*.css";
22702
+ export declare const GLOB_POSTCSS = "**/*.{p,post}css";
22703
+ export declare const GLOB_LESS = "**/*.less";
22704
+ export declare const GLOB_SCSS = "**/*.scss";
22705
+ export declare const GLOB_JSON = "**/*.json";
22706
+ export declare const GLOB_JSON5 = "**/*.json5";
22707
+ export declare const GLOB_JSONC = "**/*.jsonc";
22708
+ export declare const GLOB_MARKDOWN = "**/*.md";
22709
+ export declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
22710
+ export declare const GLOB_VUE = "**/*.vue";
22711
+ export declare const GLOB_YAML = "**/*.y?(a)ml";
22712
+ export declare const GLOB_TOML = "**/*.toml";
22713
+ export declare const GLOB_XML = "**/*.xml";
22714
+ export declare const GLOB_SVG = "**/*.svg";
22715
+ export declare const GLOB_HTML = "**/*.htm?(l)";
22716
+ export declare const GLOB_ASTRO = "**/*.astro";
22717
+ export declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
22718
+ export declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
22719
+ export declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
22720
+ export declare const GLOB_MARKDOWN_CODE: string;
22721
+ export declare const GLOB_TESTS: string[];
22722
+ export declare const GLOB_ALL_SRC: string[];
22723
+ export declare const GLOB_EXCLUDE: string[];
22509
22724
  //#endregion
22510
22725
  //#region src/utils.d.ts
22511
- declare const parserPlain: Linter.Parser;
22726
+ export declare const parserPlain: Linter.Parser;
22512
22727
  /**
22513
22728
  * Combine array and non-array configs into a single array.
22514
22729
  */
22515
- declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
22730
+ export declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
22516
22731
  /**
22517
22732
  * Rename plugin prefixes in a rule object.
22518
22733
  * Accepts a map of prefixes to rename.
@@ -22531,7 +22746,7 @@ declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatCo
22531
22746
  * }]
22532
22747
  * ```
22533
22748
  */
22534
- declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
22749
+ export declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
22535
22750
  /**
22536
22751
  * Rename plugin names a flat configs array
22537
22752
  *
@@ -22546,14 +22761,14 @@ declare function renameRules(rules: Record<string, any>, map: Record<string, str
22546
22761
  * })
22547
22762
  * ```
22548
22763
  */
22549
- declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
22550
- declare function toArray<T>(value: T | T[]): T[];
22551
- declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
22764
+ export declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
22765
+ export declare function toArray<T>(value: T | T[]): T[];
22766
+ export declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
22552
22767
  default: infer U;
22553
22768
  } ? U : T>;
22554
- declare function isPackageInScope(name: string): boolean;
22555
- declare function ensurePackages(packages: string | undefined | (string | undefined)[]): Promise<void>;
22556
- declare function isInEditorEnv(): boolean;
22557
- declare function isInGitHooksOrLintStaged(): boolean;
22769
+ export declare function isPackageInScope(name: string): boolean;
22770
+ export declare function ensurePackages(packages: string | undefined | (string | undefined)[]): Promise<void>;
22771
+ export declare function isInEditorEnv(): boolean;
22772
+ export declare function isInGitHooksOrLintStaged(): boolean;
22558
22773
  //#endregion
22559
- export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, EslintConfigOptions, EslintConfigReturn, 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_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsMarkdown, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTailwindCSS, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, type RuleOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, UserConfig, angular, astro, combine, command, comments, eslintFlatConfig as default, eslintFlatConfig, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pluginAntfu, pluginComments, pluginE18e, pluginImportLite, pluginNode, pluginPerfectionist, pluginUnicorn, pluginUnusedImports, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
22774
+ export { type ConfigNames, type RuleOptions, eslintFlatConfig as default, pluginAntfu, pluginComments, pluginE18e, pluginImportLite, pluginNode, pluginPerfectionist, pluginUnicorn, pluginUnusedImports };