@antfu/eslint-config 9.2.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -380,7 +380,7 @@ interface RuleOptions {
380
380
  * Ensures components do not opt out of the default `ChangeDetectionStrategy.OnPush` change detection strategy
381
381
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md
382
382
  */
383
- 'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<[]>;
383
+ 'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<AngularPreferOnPushComponentChangeDetection>;
384
384
  /**
385
385
  * Use `OutputEmitterRef` instead of `@Output()`
386
386
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-emitter-ref.md
@@ -1005,6 +1005,10 @@ interface RuleOptions {
1005
1005
  * Prefer Array.prototype.toSpliced() over copying and splicing arrays
1006
1006
  */
1007
1007
  'e18e/prefer-array-to-spliced'?: Linter.RuleEntry<[]>;
1008
+ /**
1009
+ * Prefer `charCodeAt()` over indexed string access for single-character comparisons inside loops
1010
+ */
1011
+ 'e18e/prefer-charcode-at-in-loop'?: Linter.RuleEntry<[]>;
1008
1012
  /**
1009
1013
  * Prefer Date.now() over new Date().getTime() and +new Date()
1010
1014
  */
@@ -1045,6 +1049,10 @@ interface RuleOptions {
1045
1049
  * prefer `RegExp.test()` over `String.match()` and `RegExp.exec()` when only checking for match existence
1046
1050
  */
1047
1051
  'e18e/prefer-regex-test'?: Linter.RuleEntry<[]>;
1052
+ /**
1053
+ * Prefer `indexOf(needle)` and `slice(...)` over `split()[N]` when splitting a string into two pieces.
1054
+ */
1055
+ 'e18e/prefer-slice-over-split-index'?: Linter.RuleEntry<[]>;
1048
1056
  /**
1049
1057
  * Prefer spread syntax over Array.concat(), Array.from(), Object.assign({}, ...), and Function.apply()
1050
1058
  */
@@ -1061,6 +1069,10 @@ interface RuleOptions {
1061
1069
  * Prefer String.fromCharCode() over String.fromCodePoint() for code points below 0x10000
1062
1070
  */
1063
1071
  'e18e/prefer-string-fromcharcode'?: Linter.RuleEntry<[]>;
1072
+ /**
1073
+ * Prefer `{throwIfNoEntry: false}` over relying on a thrown error for missing fs entries from sync stat calls
1074
+ */
1075
+ 'e18e/prefer-throw-if-no-entry'?: Linter.RuleEntry<[]>;
1064
1076
  /**
1065
1077
  * Prefer passing function and arguments directly to setTimeout/setInterval instead of wrapping in an arrow function or using bind
1066
1078
  */
@@ -1085,6 +1097,11 @@ interface RuleOptions {
1085
1097
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
1086
1098
  */
1087
1099
  'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
1100
+ /**
1101
+ * Avoid using TypeScript's export aliases.
1102
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/export-aliases.md
1103
+ */
1104
+ 'erasable-syntax-only/export-aliases'?: Linter.RuleEntry<[]>;
1088
1105
  /**
1089
1106
  * Avoid using TypeScript's import aliases.
1090
1107
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
@@ -1473,6 +1490,10 @@ interface RuleOptions {
1473
1490
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1474
1491
  */
1475
1492
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1493
+ /**
1494
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
1495
+ */
1496
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1476
1497
  /**
1477
1498
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1478
1499
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -2432,6 +2453,11 @@ interface RuleOptions {
2432
2453
  * @see https://nextjs.org/docs/messages/no-img-element
2433
2454
  */
2434
2455
  'next/no-img-element'?: Linter.RuleEntry<[]>;
2456
+ /**
2457
+ * Prevent usage of `location.assign` or `location.href` assignment to navigate to internal Next.js pages.
2458
+ * @see https://nextjs.org/docs/messages/no-location-assign-relative-destination
2459
+ */
2460
+ 'next/no-location-assign-relative-destination'?: Linter.RuleEntry<[]>;
2435
2461
  /**
2436
2462
  * Prevent page-only custom fonts.
2437
2463
  * @see https://nextjs.org/docs/messages/no-page-custom-font
@@ -3140,7 +3166,7 @@ interface RuleOptions {
3140
3166
  * Disallow unmodified loop conditions
3141
3167
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
3142
3168
  */
3143
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
3169
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
3144
3170
  /**
3145
3171
  * Disallow ternary operators when simpler alternatives exist
3146
3172
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -3354,7 +3380,7 @@ interface RuleOptions {
3354
3380
  */
3355
3381
  'node/no-new-require'?: Linter.RuleEntry<[]>;
3356
3382
  /**
3357
- * disallow string concatenation with `__dirname` and `__filename`
3383
+ * disallow string concatenation with `__dirname`, `__filename`, and `import.meta` paths
3358
3384
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
3359
3385
  */
3360
3386
  'node/no-path-concat'?: Linter.RuleEntry<[]>;
@@ -3463,11 +3489,21 @@ interface RuleOptions {
3463
3489
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
3464
3490
  */
3465
3491
  'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>;
3492
+ /**
3493
+ * enforce using `node:assert/strict` instead of `node:assert`.
3494
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
3495
+ */
3496
+ 'node/prefer-import/assert-strict'?: Linter.RuleEntry<[]>;
3466
3497
  /**
3467
3498
  * enforce using the `node:` protocol when importing Node.js builtin modules.
3468
3499
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
3469
3500
  */
3470
3501
  'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>;
3502
+ /**
3503
+ * enforce using `process.getBuiltinModule()` to load Node.js built-in modules
3504
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
3505
+ */
3506
+ 'node/prefer-process-get-builtin-module'?: Linter.RuleEntry<NodePreferProcessGetBuiltinModule>;
3471
3507
  /**
3472
3508
  * enforce `require("dns").promises`
3473
3509
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
@@ -3687,6 +3723,11 @@ interface RuleOptions {
3687
3723
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
3688
3724
  */
3689
3725
  'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
3726
+ /**
3727
+ * Disallow the anonymous `catalog:` in `pnpm-workspace.yaml` in favor of named catalogs
3728
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-anonymous-catalog.test.ts
3729
+ */
3730
+ 'pnpm/yaml-no-anonymous-catalog'?: Linter.RuleEntry<[]>;
3690
3731
  /**
3691
3732
  * Disallow duplicate catalog items in `pnpm-workspace.yaml`
3692
3733
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
@@ -4985,11 +5026,21 @@ interface RuleOptions {
4985
5026
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-uses-vars.md
4986
5027
  */
4987
5028
  'solid/jsx-uses-vars'?: Linter.RuleEntry<[]>;
5029
+ /**
5030
+ * Disallow passing uncalled signal accessors or other functions as value-typed DOM element attributes.
5031
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-accessor-as-prop.md
5032
+ */
5033
+ 'solid/no-accessor-as-prop'?: Linter.RuleEntry<[]>;
4988
5034
  /**
4989
5035
  * Disallow usage of type-unsafe event handlers.
4990
5036
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
4991
5037
  */
4992
5038
  'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
5039
+ /**
5040
+ * Disallow browser-only globals inside server functions, which run exclusively on the server.
5041
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
5042
+ */
5043
+ 'solid/no-browser-globals-in-server-function'?: Linter.RuleEntry<[]>;
4993
5044
  /**
4994
5045
  * Disallow destructuring props. In Solid, props must be used with property accesses (`props.foo`) to preserve reactivity. This rule only tracks destructuring in the parameter list.
4995
5046
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-destructure.md
@@ -5000,6 +5051,16 @@ interface RuleOptions {
5000
5051
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-innerhtml.md
5001
5052
  */
5002
5053
  'solid/no-innerhtml'?: Linter.RuleEntry<SolidNoInnerhtml>;
5054
+ /**
5055
+ * Disallow server functions from capturing variables in enclosing non-module scopes, mirroring the compiler's build-time validation.
5056
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-invalid-server-capture.md
5057
+ */
5058
+ 'solid/no-invalid-server-capture'?: Linter.RuleEntry<[]>;
5059
+ /**
5060
+ * Disallow reactive primitives at module scope, where state is shared across SSR requests.
5061
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-module-scope-reactive-primitive.md
5062
+ */
5063
+ 'solid/no-module-scope-reactive-primitive'?: Linter.RuleEntry<[]>;
5003
5064
  /**
5004
5065
  * Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them.
5005
5066
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-proxy-apis.md
@@ -5015,6 +5076,16 @@ interface RuleOptions {
5015
5076
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-react-specific-props.md
5016
5077
  */
5017
5078
  'solid/no-react-specific-props'?: Linter.RuleEntry<[]>;
5079
+ /**
5080
+ * Disallow restating a prop or option value that is already the default.
5081
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-restated-default-options.md
5082
+ */
5083
+ 'solid/no-restated-default-options'?: Linter.RuleEntry<[]>;
5084
+ /**
5085
+ * Require the two-argument `createEffect(compute, effect)` form used by Solid 2.0.
5086
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
5087
+ */
5088
+ 'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
5018
5089
  /**
5019
5090
  * Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
5020
5091
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
@@ -5031,16 +5102,36 @@ interface RuleOptions {
5031
5102
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-for.md
5032
5103
  */
5033
5104
  'solid/prefer-for'?: Linter.RuleEntry<[]>;
5105
+ /**
5106
+ * Enforce running side-effectful setup (timers, global listeners, observers) inside `onSettled` instead of the component body.
5107
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-onSettled-for-side-effects.md
5108
+ */
5109
+ 'solid/prefer-onSettled-for-side-effects'?: Linter.RuleEntry<[]>;
5034
5110
  /**
5035
5111
  * Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only.
5036
5112
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-show.md
5037
5113
  */
5038
5114
  'solid/prefer-show'?: Linter.RuleEntry<[]>;
5115
+ /**
5116
+ * Enforce using the structured array/object forms of the `class` prop over manually-built class strings.
5117
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-structured-class.md
5118
+ */
5119
+ 'solid/prefer-structured-class'?: Linter.RuleEntry<[]>;
5039
5120
  /**
5040
5121
  * Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected.
5041
5122
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/reactivity.md
5042
5123
  */
5043
5124
  'solid/reactivity'?: Linter.RuleEntry<SolidReactivity>;
5125
+ /**
5126
+ * Disallow Solid 1.x APIs that were removed or renamed in Solid 2.0, with migration guidance.
5127
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/removed-api.md
5128
+ */
5129
+ 'solid/removed-api'?: Linter.RuleEntry<[]>;
5130
+ /**
5131
+ * Require server functions to be async, matching their client-side contract.
5132
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/require-async-server-function.md
5133
+ */
5134
+ 'solid/require-async-server-function'?: Linter.RuleEntry<[]>;
5044
5135
  /**
5045
5136
  * Disallow extra closing tags for components without children.
5046
5137
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/self-closing-comp.md
@@ -5051,6 +5142,11 @@ interface RuleOptions {
5051
5142
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/style-prop.md
5052
5143
  */
5053
5144
  'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>;
5145
+ /**
5146
+ * Enforce that "use server" directives are placed where the compiler honors them, and that module-level directive files export working server functions.
5147
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/valid-use-server.md
5148
+ */
5149
+ 'solid/valid-use-server'?: Linter.RuleEntry<SolidValidUseServer>;
5054
5150
  /**
5055
5151
  * Enforce sorted `import` declarations within modules
5056
5152
  * @see https://eslint.org/docs/latest/rules/sort-imports
@@ -5909,6 +6005,11 @@ interface RuleOptions {
5909
6005
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
5910
6006
  */
5911
6007
  'svelte/no-useless-mustaches'?: Linter.RuleEntry<SvelteNoUselessMustaches>;
6008
+ /**
6009
+ * require attribute interpolation instead of template literals
6010
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-attribute-interpolation/
6011
+ */
6012
+ 'svelte/prefer-attribute-interpolation'?: Linter.RuleEntry<[]>;
5912
6013
  /**
5913
6014
  * require class directives instead of ternary expressions
5914
6015
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
@@ -7270,1715 +7371,1740 @@ interface RuleOptions {
7270
7371
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7271
7372
  /**
7272
7373
  * Prefer better DOM traversal APIs.
7273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
7374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
7274
7375
  */
7275
7376
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7276
7377
  /**
7277
7378
  * Removed. Prefer `eslint-plugin-regexp`
7278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7279
7380
  * @deprecated
7280
7381
  */
7281
7382
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7282
7383
  /**
7283
7384
  * Enforce a specific parameter name in catch clauses.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
7385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
7285
7386
  */
7286
7387
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7287
7388
  /**
7288
7389
  * Enforce consistent class references in static methods.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
7390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
7290
7391
  */
7291
7392
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7292
7393
  /**
7293
7394
  * Enforce better comment content.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
7395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
7295
7396
  */
7296
7397
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7398
+ /**
7399
+ * Enforce a consistent return style for multiline arrow function bodies.
7400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
7401
+ */
7402
+ 'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7297
7403
  /**
7298
7404
  * Enforce consistent assertion style with `node:assert`.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
7405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
7300
7406
  */
7301
7407
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7302
7408
  /**
7303
7409
  * Enforce consistent naming for boolean names.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
7410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
7305
7411
  */
7306
7412
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7307
7413
  /**
7308
7414
  * Enforce consistent class member order.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
7415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
7310
7416
  */
7311
7417
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7312
7418
  /**
7313
7419
  * Enforce consistent spelling of compound words in identifiers.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
7420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
7315
7421
  */
7316
7422
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7317
7423
  /**
7318
7424
  * Enforce consistent conditional object spread style.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
7425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
7320
7426
  */
7321
7427
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7322
7428
  /**
7323
7429
  * Prefer passing `Date` directly to the constructor when cloning.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
7430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
7325
7431
  */
7326
7432
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7327
7433
  /**
7328
7434
  * Use destructured variables over properties.
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
7435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
7330
7436
  */
7331
7437
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7332
7438
  /**
7333
7439
  * Prefer consistent types when spreading a ternary in an array literal.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
7335
7441
  */
7336
7442
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7337
7443
  /**
7338
7444
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
7340
7446
  */
7341
7447
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7342
7448
  /**
7343
7449
  * Enforce consistent decorator position on exported classes.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
7345
7451
  */
7346
7452
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7347
7453
  /**
7348
7454
  * Move function definitions to the highest possible scope.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
7350
7456
  */
7351
7457
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7352
7458
  /**
7353
7459
  * Enforce function syntax by role.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
7355
7461
  */
7356
7462
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7357
7463
  /**
7358
7464
  * Enforce consistent JSON file reads before `JSON.parse()`.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
7360
7466
  */
7361
7467
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7362
7468
  /**
7363
7469
  * Enforce consistent optional chaining for same-base member access.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
7365
7471
  */
7366
7472
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7367
7473
  /**
7368
7474
  * Enforce consistent style for escaping `${` in template literals.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
7370
7476
  */
7371
7477
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7372
7478
  /**
7373
7479
  * Enforce consistent labels on tuple type elements.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
7375
7481
  */
7376
7482
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7377
7483
  /**
7378
7484
  * Enforce correct `Error` subclassing.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
7380
7486
  */
7381
7487
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7382
7488
  /**
7383
7489
  * Enforce consistent default export declarations.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
7490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
7385
7491
  */
7386
7492
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7387
7493
  /**
7388
7494
  * Enforce consistent style for DOM element dataset access.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
7495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
7390
7496
  */
7391
7497
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7392
7498
  /**
7393
7499
  * Enforce no spaces between braces.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
7500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
7395
7501
  */
7396
7502
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7397
7503
  /**
7398
7504
  * Enforce passing a `message` value when creating a built-in error.
7399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
7505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
7400
7506
  */
7401
7507
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7402
7508
  /**
7403
7509
  * Require escape sequences to use uppercase or lowercase values.
7404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
7510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
7405
7511
  */
7406
7512
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7407
7513
  /**
7408
7514
  * Add expiration conditions to TODO comments.
7409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
7515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
7410
7516
  */
7411
7517
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7412
7518
  /**
7413
7519
  * Enforce explicitly comparing the `length` or `size` property of a value.
7414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
7520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
7415
7521
  */
7416
7522
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7417
7523
  /**
7418
7524
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
7525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
7420
7526
  */
7421
7527
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7422
7528
  /**
7423
7529
  * Enforce a case style for filenames and directory names.
7424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
7530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
7425
7531
  */
7426
7532
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7427
7533
  /**
7428
7534
  * Require identifiers to match a specified regular expression.
7429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
7535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
7430
7536
  */
7431
7537
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7432
7538
  /**
7433
7539
  * Enforce specific import styles per module.
7434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
7540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
7435
7541
  */
7436
7542
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7437
7543
  /**
7438
7544
  * Prevent usage of variables from outside the scope of isolated functions.
7439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
7545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
7440
7546
  */
7441
7547
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7548
+ /**
7549
+ * Enforce a consistent style for optional loop sources.
7550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
7551
+ */
7552
+ 'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7442
7553
  /**
7443
7554
  * Require or disallow logical assignment operator shorthand
7444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
7555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
7445
7556
  */
7446
7557
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7447
7558
  /**
7448
7559
  * Limit the depth of nested calls.
7449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
7560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
7450
7561
  */
7451
7562
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7452
7563
  /**
7453
7564
  * Enforce replacements for variable, property, and filenames.
7454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
7565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
7455
7566
  */
7456
7567
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7457
7568
  /**
7458
7569
  * Enforce correct use of `new` for builtin constructors.
7459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
7570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
7460
7571
  */
7461
7572
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7462
7573
  /**
7463
7574
  * Enforce specifying rules to disable in `eslint-disable` comments.
7464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
7575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
7465
7576
  */
7466
7577
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7467
7578
  /**
7468
7579
  * Disallow recursive access to `this` within getters and setters.
7469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
7580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
7470
7581
  */
7471
7582
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7472
7583
  /**
7473
7584
  * Disallow bitwise operators where a logical operator was likely intended.
7474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
7585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
7475
7586
  */
7476
7587
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7477
7588
  /**
7478
7589
  * Disallow anonymous functions and classes as the default export.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
7590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
7480
7591
  */
7481
7592
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7482
7593
  /**
7483
7594
  * Prevent passing a function reference directly to iterator methods.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
7595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
7485
7596
  */
7486
7597
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7487
7598
  /**
7488
7599
  * Disallow array accumulation with `Array#concat()` in loops.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
7600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
7490
7601
  */
7491
7602
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7492
7603
  /**
7493
7604
  * Disallow using reference values as `Array#fill()` values.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
7495
7606
  */
7496
7607
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7497
7608
  /**
7498
7609
  * Disallow `.fill()` after `Array.from({length: …})`.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
7500
7611
  */
7501
7612
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7502
7613
  /**
7503
7614
  * Disallow front-of-array mutation.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
7505
7616
  */
7506
7617
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7507
7618
  /**
7508
7619
  * Disallow using the `this` argument in array methods.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
7510
7621
  */
7511
7622
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7512
7623
  /**
7513
7624
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7515
7626
  * @deprecated
7516
7627
  */
7517
7628
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7518
7629
  /**
7519
7630
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
7631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
7521
7632
  */
7522
7633
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7523
7634
  /**
7524
7635
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
7636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
7526
7637
  */
7527
7638
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7528
7639
  /**
7529
7640
  * Prefer `Array#toSorted()` over `Array#sort()`.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
7641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
7531
7642
  */
7532
7643
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7533
7644
  /**
7534
7645
  * Disallow sorting arrays to get the minimum or maximum value.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
7646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
7536
7647
  */
7537
7648
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7538
7649
  /**
7539
7650
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
7651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
7541
7652
  */
7542
7653
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7543
7654
  /**
7544
7655
  * Disallow asterisk prefixes in documentation comments.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7546
7657
  */
7547
7658
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7548
7659
  /**
7549
7660
  * Disallow async functions as `Promise#finally()` callbacks.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
7661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
7551
7662
  */
7552
7663
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7553
7664
  /**
7554
7665
  * Disallow member access from await expression.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
7666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
7556
7667
  */
7557
7668
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7558
7669
  /**
7559
7670
  * Disallow using `await` in `Promise` method parameters.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
7671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
7561
7672
  */
7562
7673
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7674
+ /**
7675
+ * Disallow barrel files.
7676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
7677
+ */
7678
+ 'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7563
7679
  /**
7564
7680
  * Disallow unnecessary `Blob` to `File` conversion.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
7566
7682
  */
7567
7683
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7568
7684
  /**
7569
7685
  * Disallow boolean-returning sort comparators.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
7571
7687
  */
7572
7688
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7573
7689
  /**
7574
7690
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
7576
7692
  */
7577
7693
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7578
7694
  /**
7579
7695
  * Prefer drawing canvases directly instead of converting them to images.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
7581
7697
  */
7582
7698
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7583
7699
  /**
7584
7700
  * Disallow chained comparisons such as `a < b < c`.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
7586
7702
  */
7587
7703
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7588
7704
  /**
7589
7705
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
7591
7707
  */
7592
7708
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7593
7709
  /**
7594
7710
  * Disallow dynamic object property existence checks.
7595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
7596
7712
  */
7597
7713
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7598
7714
  /**
7599
7715
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
7601
7717
  */
7602
7718
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7603
7719
  /**
7604
7720
  * Disallow confusing uses of `Array#with()`.
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
7606
7722
  */
7607
7723
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7608
7724
  /**
7609
7725
  * Do not use leading/trailing space between `console.log` parameters.
7610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
7611
7727
  */
7612
7728
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7613
7729
  /**
7614
7730
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
7616
7732
  */
7617
7733
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7618
7734
  /**
7619
7735
  * Disallow declarations before conditional early exits when they are only used after the exit.
7620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
7621
7737
  */
7622
7738
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7623
7739
  /**
7624
7740
  * Do not use `document.cookie` directly.
7625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
7626
7742
  */
7627
7743
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7628
7744
  /**
7629
7745
  * Disallow two comparisons of the same operands that can be combined into one.
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
7631
7747
  */
7632
7748
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7633
7749
  /**
7634
7750
  * Disallow duplicate adjacent branches in if chains.
7635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
7636
7752
  */
7637
7753
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7638
7754
  /**
7639
7755
  * Disallow adjacent duplicate operands in logical expressions.
7640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
7641
7757
  */
7642
7758
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7643
7759
  /**
7644
7760
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
7646
7762
  */
7647
7763
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7648
7764
  /**
7649
7765
  * Disallow duplicate values in `Set` constructor array literals.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
7651
7767
  */
7652
7768
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7653
7769
  /**
7654
7770
  * Disallow empty files.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
7656
7772
  */
7657
7773
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7658
7774
  /**
7659
7775
  * Disallow assigning to built-in error properties.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
7661
7777
  */
7662
7778
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7663
7779
  /**
7664
7780
  * Disallow exports in scripts.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
7666
7782
  */
7667
7783
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7668
7784
  /**
7669
7785
  * Prefer `for…of` over the `forEach` method.
7670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
7671
7787
  */
7672
7788
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7673
7789
  /**
7674
7790
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
7676
7792
  */
7677
7793
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7678
7794
  /**
7679
7795
  * Disallow assigning properties on the global object.
7680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
7681
7797
  */
7682
7798
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7683
7799
  /**
7684
7800
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7686
7802
  * @deprecated
7687
7803
  */
7688
7804
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7689
7805
  /**
7690
7806
  * Disallow immediate mutation after variable assignment.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
7807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
7692
7808
  */
7693
7809
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7694
7810
  /**
7695
7811
  * Disallow impossible comparisons against `.length` or `.size`.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
7812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
7697
7813
  */
7698
7814
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7699
7815
  /**
7700
7816
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
7817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
7702
7818
  */
7703
7819
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7704
7820
  /**
7705
7821
  * Disallow incorrect template literal interpolation syntax.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7707
7823
  */
7708
7824
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7709
7825
  /**
7710
7826
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7712
7828
  * @deprecated
7713
7829
  */
7714
7830
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7715
7831
  /**
7716
7832
  * Disallow `instanceof` with built-in objects
7717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
7833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
7718
7834
  */
7719
7835
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7720
7836
  /**
7721
7837
  * Disallow calling functions and constructors with an invalid number of arguments.
7722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
7838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
7723
7839
  */
7724
7840
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7725
7841
  /**
7726
7842
  * Disallow comparing a single character from a string to a multi-character string.
7727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
7843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
7728
7844
  */
7729
7845
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7730
7846
  /**
7731
7847
  * Disallow invalid options in `fetch()` and `new Request()`.
7732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
7848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
7733
7849
  */
7734
7850
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7735
7851
  /**
7736
7852
  * Disallow invalid `accept` values on file inputs.
7737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
7853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
7738
7854
  */
7739
7855
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7740
7856
  /**
7741
7857
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
7858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
7743
7859
  */
7744
7860
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7745
7861
  /**
7746
7862
  * Disallow invalid implementations of well-known symbol methods.
7747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7748
7864
  */
7749
7865
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7750
7866
  /**
7751
7867
  * Disallow identifiers starting with `new` or `class`.
7752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
7868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
7753
7869
  */
7754
7870
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7755
7871
  /**
7756
7872
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
7873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
7758
7874
  */
7759
7875
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7760
7876
  /**
7761
7877
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
7878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
7763
7879
  */
7764
7880
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7765
7881
  /**
7766
7882
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7768
7884
  * @deprecated
7769
7885
  */
7770
7886
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7771
7887
  /**
7772
7888
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
7889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
7774
7890
  */
7775
7891
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7776
7892
  /**
7777
7893
  * Disallow mutating a loop iterable during iteration.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
7779
7895
  */
7780
7896
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7781
7897
  /**
7782
7898
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
7784
7900
  */
7785
7901
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7786
7902
  /**
7787
7903
  * Disallow manually wrapped comments.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7789
7905
  */
7790
7906
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7791
7907
  /**
7792
7908
  * Disallow checking a Map key before accessing a different key.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
7909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7794
7910
  */
7795
7911
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7796
7912
  /**
7797
7913
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
7914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7799
7915
  */
7800
7916
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7801
7917
  /**
7802
7918
  * Disallow references to missing local resources.
7803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
7919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7804
7920
  */
7805
7921
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7806
7922
  /**
7807
7923
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7809
7925
  */
7810
7926
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7811
7927
  /**
7812
7928
  * Disallow named usage of default import and export.
7813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
7929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
7814
7930
  */
7815
7931
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7816
7932
  /**
7817
7933
  * Disallow negated array predicate calls.
7818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
7934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
7819
7935
  */
7820
7936
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7821
7937
  /**
7822
7938
  * Disallow negated comparisons.
7823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
7824
7940
  */
7825
7941
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7826
7942
  /**
7827
7943
  * Disallow negated conditions.
7828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
7944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
7829
7945
  */
7830
7946
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7831
7947
  /**
7832
7948
  * Disallow negated expression in equality check.
7833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
7949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
7834
7950
  */
7835
7951
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7836
7952
  /**
7837
7953
  * Disallow nested ternary expressions.
7838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
7954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
7839
7955
  */
7840
7956
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7841
7957
  /**
7842
7958
  * Disallow `new Array()`.
7843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
7959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
7844
7960
  */
7845
7961
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7846
7962
  /**
7847
7963
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
7964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
7849
7965
  */
7850
7966
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7851
7967
  /**
7852
7968
  * Disallow non-function values with function-style verb prefixes.
7853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
7969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
7854
7970
  */
7855
7971
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7856
7972
  /**
7857
7973
  * Disallow non-standard properties on built-in objects.
7858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
7974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
7859
7975
  */
7860
7976
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7861
7977
  /**
7862
7978
  * Disallow the use of the `null` literal.
7863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
7979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
7864
7980
  */
7865
7981
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7866
7982
  /**
7867
7983
  * Disallow the use of objects as default parameters.
7868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
7984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
7869
7985
  */
7870
7986
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7871
7987
  /**
7872
7988
  * Disallow `Object` methods with `Map` or `Set`.
7873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
7989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
7874
7990
  */
7875
7991
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7876
7992
  /**
7877
7993
  * Disallow optional chaining on undeclared variables.
7878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7879
7995
  */
7880
7996
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7881
7997
  /**
7882
7998
  * Disallow `process.exit()`.
7883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
7999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
7884
8000
  */
7885
8001
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7886
8002
  /**
7887
8003
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
8004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
7889
8005
  */
7890
8006
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7891
8007
  /**
7892
8008
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
8009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
7894
8010
  */
7895
8011
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7896
8012
  /**
7897
8013
  * Disallow selector syntax in DOM names.
7898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
8014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
7899
8015
  */
7900
8016
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7901
8017
  /**
7902
8018
  * Disallow shorthand properties that override related longhand properties.
7903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
8019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
7904
8020
  */
7905
8021
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7906
8022
  /**
7907
8023
  * Disallow passing single-element arrays to `Promise` methods.
7908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
8024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
7909
8025
  */
7910
8026
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7911
8027
  /**
7912
8028
  * Disallow classes that only have static members.
7913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
8029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
7914
8030
  */
7915
8031
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7916
8032
  /**
7917
8033
  * Prefer comparing values directly over subtracting and comparing to `0`.
7918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
8034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
7919
8035
  */
7920
8036
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7921
8037
  /**
7922
8038
  * Disallow `then` property.
7923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
8039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
7924
8040
  */
7925
8041
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7926
8042
  /**
7927
8043
  * Disallow assigning `this` to a variable.
7928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
8044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
7929
8045
  */
7930
8046
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7931
8047
  /**
7932
8048
  * Disallow `this` outside of classes.
7933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
8049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
7934
8050
  */
7935
8051
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7936
8052
  /**
7937
8053
  * Disallow assigning to top-level variables from inside functions.
7938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
8054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
7939
8055
  */
7940
8056
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7941
8057
  /**
7942
8058
  * Disallow top-level side effects in exported modules.
7943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
8059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
7944
8060
  */
7945
8061
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7946
8062
  /**
7947
8063
  * Disallow `all` as a transition property.
7948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
8064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
7949
8065
  */
7950
8066
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7951
8067
  /**
7952
8068
  * Disallow comparing `undefined` using `typeof`.
7953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
8069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
7954
8070
  */
7955
8071
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7956
8072
  /**
7957
8073
  * Disallow referencing methods without calling them.
7958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
8074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
7959
8075
  */
7960
8076
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7961
8077
  /**
7962
8078
  * Require class members to be declared.
7963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
8079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
7964
8080
  */
7965
8081
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7966
8082
  /**
7967
8083
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7969
8085
  */
7970
8086
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7971
8087
  /**
7972
8088
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
8089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
7974
8090
  */
7975
8091
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7976
8092
  /**
7977
8093
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
8094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
7979
8095
  */
7980
8096
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7981
8097
  /**
7982
8098
  * Disallow awaiting non-promise values.
7983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
8099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
7984
8100
  */
7985
8101
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7986
8102
  /**
7987
8103
  * Disallow unnecessary comparisons against boolean literals.
7988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7989
8105
  */
7990
8106
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7991
8107
  /**
7992
8108
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
8109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
7994
8110
  */
7995
8111
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7996
8112
  /**
7997
8113
  * Disallow unnecessary `globalThis` references.
7998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
8114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
7999
8115
  */
8000
8116
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8001
8117
  /**
8002
8118
  * Disallow unnecessary nested ternary expressions.
8003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
8119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
8004
8120
  */
8005
8121
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8006
8122
  /**
8007
8123
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
8124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
8009
8125
  */
8010
8126
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8011
8127
  /**
8012
8128
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
8129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
8014
8130
  */
8015
8131
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8016
8132
  /**
8017
8133
  * Disallow `Array#splice()` when simpler alternatives exist.
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
8134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
8019
8135
  */
8020
8136
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8021
8137
  /**
8022
8138
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
8139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
8024
8140
  */
8025
8141
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8026
8142
  /**
8027
8143
  * Disallow unreadable array destructuring.
8028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
8144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
8029
8145
  */
8030
8146
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8031
8147
  /**
8032
8148
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
8149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
8034
8150
  */
8035
8151
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8036
8152
  /**
8037
8153
  * Disallow unreadable IIFEs.
8038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
8154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
8039
8155
  */
8040
8156
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8041
8157
  /**
8042
8158
  * Disallow unreadable `new` expressions.
8043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
8159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
8044
8160
  */
8045
8161
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8046
8162
  /**
8047
8163
  * Disallow unreadable object destructuring.
8048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
8164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
8049
8165
  */
8050
8166
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8051
8167
  /**
8052
8168
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
8169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
8054
8170
  */
8055
8171
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8056
8172
  /**
8057
8173
  * Disallow unsafe DOM HTML APIs.
8058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
8174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
8059
8175
  */
8060
8176
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8061
8177
  /**
8062
8178
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8064
8180
  */
8065
8181
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8066
8182
  /**
8067
8183
  * Disallow unsafe values as property keys.
8068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
8184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
8069
8185
  */
8070
8186
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8187
+ /**
8188
+ * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8190
+ */
8191
+ 'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8071
8192
  /**
8072
8193
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
8194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
8074
8195
  */
8075
8196
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8076
8197
  /**
8077
8198
  * Disallow ignoring the return value of selected array methods.
8078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
8199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
8079
8200
  */
8080
8201
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8081
8202
  /**
8082
8203
  * Disallow unused object properties.
8083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
8204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
8084
8205
  */
8085
8206
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8086
8207
  /**
8087
8208
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
8209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
8089
8210
  */
8090
8211
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8091
8212
  /**
8092
8213
  * Disallow useless type coercions of values that are already of the target type.
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
8214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
8094
8215
  */
8095
8216
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8096
8217
  /**
8097
8218
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
8219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
8099
8220
  */
8100
8221
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8101
8222
  /**
8102
8223
  * Disallow useless compound assignments such as `x += 0`.
8103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
8224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
8104
8225
  */
8105
8226
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8106
8227
  /**
8107
8228
  * Disallow useless concatenation of literals.
8108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
8229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
8109
8230
  */
8110
8231
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8111
8232
  /**
8112
8233
  * Disallow useless `continue` statements.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
8234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
8114
8235
  */
8115
8236
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8116
8237
  /**
8117
8238
  * Disallow unnecessary existence checks before deletion.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
8239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
8119
8240
  */
8120
8241
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8121
8242
  /**
8122
8243
  * Disallow `else` after a statement that exits.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
8244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
8124
8245
  */
8125
8246
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8126
8247
  /**
8127
8248
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8129
8250
  */
8130
8251
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8131
8252
  /**
8132
8253
  * Disallow useless fallback when spreading in object literals.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
8254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
8134
8255
  */
8135
8256
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8136
8257
  /**
8137
8258
  * Disallow unnecessary `.toArray()` on iterators.
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
8259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
8139
8260
  */
8140
8261
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8141
8262
  /**
8142
8263
  * Disallow useless array length check.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
8264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
8144
8265
  */
8145
8266
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8146
8267
  /**
8147
8268
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
8269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
8149
8270
  */
8150
8271
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8151
8272
  /**
8152
8273
  * Disallow useless overrides of class methods.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
8274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
8154
8275
  */
8155
8276
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8156
8277
  /**
8157
8278
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
8279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
8159
8280
  */
8160
8281
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8161
8282
  /**
8162
8283
  * Disallow redundant re-exports.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
8284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
8164
8285
  */
8165
8286
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8166
8287
  /**
8167
8288
  * Disallow simple recursive function calls that can be replaced with a loop.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
8289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
8169
8290
  */
8170
8291
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8171
8292
  /**
8172
8293
  * Disallow unnecessary spread.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
8294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
8174
8295
  */
8175
8296
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8176
8297
  /**
8177
8298
  * Disallow useless case in switch statements.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
8299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
8179
8300
  */
8180
8301
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8181
8302
  /**
8182
8303
  * Disallow useless template literal expressions.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
8304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
8184
8305
  */
8185
8306
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8186
8307
  /**
8187
8308
  * Disallow useless `undefined`.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
8309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
8189
8310
  */
8190
8311
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8191
8312
  /**
8192
8313
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
8314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
8194
8315
  */
8195
8316
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8196
8317
  /**
8197
8318
  * Disallow number literals with zero fractions or dangling dots.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
8319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
8199
8320
  */
8200
8321
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8201
8322
  /**
8202
8323
  * Enforce proper case for numeric literals.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
8324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
8204
8325
  */
8205
8326
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8206
8327
  /**
8207
8328
  * Enforce the style of numeric separators by correctly grouping digits.
8208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
8329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
8209
8330
  */
8210
8331
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8211
8332
  /**
8212
8333
  * Require assignment operator shorthand where possible.
8213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
8334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
8214
8335
  */
8215
8336
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8216
8337
  /**
8217
8338
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
8339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
8219
8340
  */
8220
8341
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8221
8342
  /**
8222
8343
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
8344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
8224
8345
  */
8225
8346
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8226
8347
  /**
8227
8348
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
8349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
8229
8350
  */
8230
8351
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8231
8352
  /**
8232
8353
  * Prefer an options object over a boolean in `.addEventListener()`.
8233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
8354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
8234
8355
  */
8235
8356
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8236
8357
  /**
8237
8358
  * Prefer `AggregateError` when throwing collected errors.
8238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
8359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
8239
8360
  */
8240
8361
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8241
8362
  /**
8242
8363
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
8364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
8244
8365
  */
8245
8366
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8246
8367
  /**
8247
8368
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
8369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
8249
8370
  */
8250
8371
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8251
8372
  /**
8252
8373
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
8374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
8254
8375
  */
8255
8376
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8256
8377
  /**
8257
8378
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
8379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
8259
8380
  */
8260
8381
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8261
8382
  /**
8262
8383
  * Prefer using the `Array.from()` mapping function argument.
8263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
8384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
8264
8385
  */
8265
8386
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8266
8387
  /**
8267
8388
  * Prefer `Array.from({length}, …)` when creating range arrays.
8268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
8389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
8269
8390
  */
8270
8391
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8271
8392
  /**
8272
8393
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
8394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
8274
8395
  */
8275
8396
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8276
8397
  /**
8277
8398
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
8399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
8279
8400
  */
8280
8401
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8281
8402
  /**
8282
8403
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
8404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
8284
8405
  */
8285
8406
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8286
8407
  /**
8287
8408
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
8409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
8289
8410
  */
8290
8411
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8291
8412
  /**
8292
8413
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
8414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
8294
8415
  */
8295
8416
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8296
8417
  /**
8297
8418
  * Prefer `.at()` method for index access and `String#charAt()`.
8298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
8419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
8299
8420
  */
8300
8421
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8301
8422
  /**
8302
8423
  * Prefer `await` over promise chaining.
8303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
8424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
8304
8425
  */
8305
8426
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8306
8427
  /**
8307
8428
  * Prefer `BigInt` literals over the constructor.
8308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
8429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
8309
8430
  */
8310
8431
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8311
8432
  /**
8312
8433
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
8434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
8314
8435
  */
8315
8436
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8316
8437
  /**
8317
8438
  * Prefer block statements over IIFEs used only for scoping.
8318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
8439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
8319
8440
  */
8320
8441
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8321
8442
  /**
8322
8443
  * Prefer directly returning boolean expressions over `if` statements.
8323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
8444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
8324
8445
  */
8325
8446
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8326
8447
  /**
8327
8448
  * Prefer class field declarations over `this` assignments in constructors.
8328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
8449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
8329
8450
  */
8330
8451
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8331
8452
  /**
8332
8453
  * Prefer using `Element#classList.toggle()` to toggle class names.
8333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
8454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
8334
8455
  */
8335
8456
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8336
8457
  /**
8337
8458
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
8459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
8339
8460
  */
8340
8461
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8341
8462
  /**
8342
8463
  * Prefer early continues over whole-loop conditional wrapping.
8343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
8464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
8344
8465
  */
8345
8466
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8346
8467
  /**
8347
8468
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
8469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
8349
8470
  */
8350
8471
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8351
8472
  /**
8352
8473
  * Prefer default parameters over reassignment.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
8474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
8354
8475
  */
8355
8476
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8356
8477
  /**
8357
8478
  * Prefer direct iteration over default iterator method calls.
8358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
8479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
8359
8480
  */
8360
8481
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8361
8482
  /**
8362
8483
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
8484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
8364
8485
  */
8365
8486
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8366
8487
  /**
8367
8488
  * Prefer `Element#append()` over `Node#appendChild()`.
8368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
8369
8490
  */
8370
8491
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8371
8492
  /**
8372
8493
  * Renamed to `unicorn/dom-node-dataset`.
8373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8374
8495
  * @deprecated
8375
8496
  */
8376
8497
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8377
8498
  /**
8378
8499
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
8500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
8380
8501
  */
8381
8502
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8382
8503
  /**
8383
8504
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
8505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
8385
8506
  */
8386
8507
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8387
8508
  /**
8388
8509
  * Prefer `.replaceChildren()` when emptying DOM children.
8389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
8510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
8390
8511
  */
8391
8512
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8392
8513
  /**
8393
8514
  * Prefer `.textContent` over `.innerText`.
8394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
8515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
8395
8516
  */
8396
8517
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8397
8518
  /**
8398
8519
  * Prefer early returns over full-function conditional wrapping.
8399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
8520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
8400
8521
  */
8401
8522
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8402
8523
  /**
8403
8524
  * Prefer `else if` over adjacent `if` statements with related conditions.
8404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
8525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
8405
8526
  */
8406
8527
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8407
8528
  /**
8408
8529
  * Prefer `Error.isError()` when checking for errors.
8409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
8530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
8410
8531
  */
8411
8532
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8412
8533
  /**
8413
8534
  * Prefer `EventTarget` over `EventEmitter`.
8414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
8535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
8415
8536
  */
8416
8537
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8417
8538
  /**
8418
8539
  * Prefer explicit viewport units.
8419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
8540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
8420
8541
  */
8421
8542
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8422
8543
  /**
8423
8544
  * Prefer `export…from` when re-exporting.
8424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
8545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
8425
8546
  */
8426
8547
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8427
8548
  /**
8428
8549
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
8550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
8430
8551
  */
8431
8552
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8432
8553
  /**
8433
8554
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
8555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
8435
8556
  */
8436
8557
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8437
8558
  /**
8438
8559
  * Prefer global numeric constants over `Number` static properties.
8439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
8560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
8440
8561
  */
8441
8562
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8442
8563
  /**
8443
8564
  * Prefer `globalThis` over `window`, `self`, and `global`.
8444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
8565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
8445
8566
  */
8446
8567
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8447
8568
  /**
8448
8569
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
8570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
8450
8571
  */
8451
8572
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8452
8573
  /**
8453
8574
  * Prefer `.has()` when checking existence.
8454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
8575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
8455
8576
  */
8456
8577
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8457
8578
  /**
8458
8579
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
8580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
8460
8581
  */
8461
8582
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8462
8583
  /**
8463
8584
  * Prefer HTTPS over HTTP.
8464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
8585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
8465
8586
  */
8466
- 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8587
+ 'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8467
8588
  /**
8468
8589
  * Prefer identifiers over string literals in import and export specifiers.
8469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8470
8591
  */
8471
8592
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8472
8593
  /**
8473
8594
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
8595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
8475
8596
  */
8476
8597
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8477
8598
  /**
8478
8599
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
8600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
8480
8601
  */
8481
8602
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8482
8603
  /**
8483
8604
  * Prefer `.includes()` over repeated equality comparisons.
8484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8485
8606
  */
8486
8607
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8487
8608
  /**
8488
8609
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
8610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
8490
8611
  */
8491
8612
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8492
8613
  /**
8493
8614
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
8495
8616
  */
8496
8617
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8497
8618
  /**
8498
8619
  * Prefer iterator helpers over temporary arrays from iterators.
8499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
8500
8621
  */
8501
8622
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8502
8623
  /**
8503
8624
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
8505
8626
  */
8506
8627
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8507
8628
  /**
8508
8629
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8510
8631
  */
8511
8632
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8512
8633
  /**
8513
8634
  * Renamed to `unicorn/consistent-json-file-read`.
8514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8515
8636
  * @deprecated
8516
8637
  */
8517
8638
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8518
8639
  /**
8519
8640
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
8641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
8521
8642
  */
8522
8643
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8523
8644
  /**
8524
8645
  * Prefer `location.assign()` over assigning to `location.href`.
8525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
8646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
8526
8647
  */
8527
8648
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8528
8649
  /**
8529
8650
  * Prefer using a logical operator over a ternary.
8530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8531
8652
  */
8532
8653
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8533
8654
  /**
8534
8655
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
8656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
8536
8657
  */
8537
8658
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8538
8659
  /**
8539
8660
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
8661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
8541
8662
  */
8542
8663
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8543
8664
  /**
8544
8665
  * Prefer `Math` constants over their approximate numeric values.
8545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
8666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
8546
8667
  */
8547
8668
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8548
8669
  /**
8549
8670
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
8671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
8551
8672
  */
8552
8673
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8553
8674
  /**
8554
8675
  * Prefer `Math.trunc()` for truncating numbers.
8555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
8676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
8556
8677
  */
8557
8678
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8558
8679
  /**
8559
8680
  * Prefer moving ternaries into the minimal varying part of an expression.
8560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
8681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
8561
8682
  */
8562
8683
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8563
8684
  /**
8564
8685
  * Prefer modern DOM APIs.
8565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
8686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
8566
8687
  */
8567
8688
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8568
8689
  /**
8569
8690
  * Prefer modern `Math` APIs over legacy patterns.
8570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
8691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
8571
8692
  */
8572
8693
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8573
8694
  /**
8574
8695
  * Prefer JavaScript modules (ESM) over CommonJS.
8575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
8696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
8576
8697
  */
8577
8698
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8578
8699
  /**
8579
8700
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
8701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
8581
8702
  */
8582
8703
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8583
8704
  /**
8584
8705
  * Prefer negative index over `.length - index` when possible.
8585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
8706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
8586
8707
  */
8587
8708
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8588
8709
  /**
8589
8710
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
8711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
8591
8712
  */
8592
8713
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8593
8714
  /**
8594
8715
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
8716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
8596
8717
  */
8597
8718
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8598
8719
  /**
8599
8720
  * Prefer `Number.isSafeInteger()` over integer checks.
8600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
8721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
8601
8722
  */
8602
8723
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8603
8724
  /**
8604
8725
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
8726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
8606
8727
  */
8607
8728
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8608
8729
  /**
8609
8730
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
8731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
8611
8732
  */
8612
8733
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8613
8734
  /**
8614
8735
  * Prefer object destructuring defaults over default object literals with spread.
8615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
8736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
8616
8737
  */
8617
8738
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8618
8739
  /**
8619
8740
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
8741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
8621
8742
  */
8622
8743
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8623
8744
  /**
8624
8745
  * Prefer the most specific `Object` iterable method.
8625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
8746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
8626
8747
  */
8627
8748
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8628
8749
  /**
8629
8750
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
8751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
8631
8752
  */
8632
8753
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8633
8754
  /**
8634
8755
  * Prefer omitting the `catch` binding parameter.
8635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
8756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
8636
8757
  */
8637
8758
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8638
8759
  /**
8639
8760
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
8761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
8641
8762
  */
8642
8763
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8643
8764
  /**
8644
8765
  * Prefer private class fields over the underscore-prefix convention.
8645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
8766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
8646
8767
  */
8647
8768
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8648
8769
  /**
8649
8770
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
8771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
8651
8772
  */
8652
8773
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8653
8774
  /**
8654
8775
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
8776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
8656
8777
  */
8657
8778
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8658
8779
  /**
8659
8780
  * Prefer borrowing methods from the prototype instead of the instance.
8660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
8781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
8661
8782
  */
8662
8783
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8663
8784
  /**
8664
8785
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
8786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
8666
8787
  */
8667
8788
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8668
8789
  /**
8669
8790
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
8791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
8671
8792
  */
8672
8793
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8673
8794
  /**
8674
8795
  * Prefer `Reflect.apply()` over `Function#apply()`.
8675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
8796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
8676
8797
  */
8677
8798
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8678
8799
  /**
8679
8800
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
8801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
8681
8802
  */
8682
8803
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8683
8804
  /**
8684
8805
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
8806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
8686
8807
  */
8687
8808
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8688
8809
  /**
8689
8810
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
8811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
8691
8812
  */
8692
8813
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8693
8814
  /**
8694
8815
  * Prefer `:scope` when using element query selector methods.
8695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
8816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
8696
8817
  */
8697
8818
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8698
8819
  /**
8699
8820
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
8821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
8701
8822
  */
8702
8823
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8703
8824
  /**
8704
8825
  * Prefer `Set` methods for Set operations.
8705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
8826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
8706
8827
  */
8707
8828
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8708
8829
  /**
8709
8830
  * Prefer using `Set#size` instead of `Array#length`.
8710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
8831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
8711
8832
  */
8712
8833
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8713
8834
  /**
8714
8835
  * Prefer arrow function properties over methods with a single return.
8715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
8836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
8716
8837
  */
8717
8838
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8718
8839
  /**
8719
8840
  * Prefer simple conditions first in logical expressions.
8720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
8841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
8721
8842
  */
8722
8843
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8723
8844
  /**
8724
8845
  * Prefer a simple comparison function for `Array#sort()`.
8725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
8846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
8726
8847
  */
8727
8848
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8728
8849
  /**
8729
8850
  * Prefer simplified conditions.
8730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
8851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
8731
8852
  */
8732
8853
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8733
8854
  /**
8734
8855
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
8856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
8736
8857
  */
8737
8858
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8738
8859
  /**
8739
8860
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
8861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
8741
8862
  */
8742
8863
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8743
8864
  /**
8744
8865
  * Prefer a single object destructuring declaration per local const source.
8745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
8866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
8746
8867
  */
8747
8868
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8748
8869
  /**
8749
8870
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
8871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
8751
8872
  */
8752
8873
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8753
8874
  /**
8754
8875
  * Prefer declaring variables in the smallest possible scope.
8755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
8876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
8756
8877
  */
8757
8878
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8758
8879
  /**
8759
8880
  * Prefer `String#split()` with a limit.
8760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
8881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
8761
8882
  */
8762
8883
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8763
8884
  /**
8764
8885
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
8886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
8766
8887
  */
8767
8888
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8768
8889
  /**
8769
8890
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
8891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
8771
8892
  */
8772
8893
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8773
8894
  /**
8774
8895
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
8896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
8776
8897
  */
8777
8898
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8778
8899
  /**
8779
8900
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
8901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
8781
8902
  */
8782
8903
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8783
8904
  /**
8784
8905
  * Prefer `String#repeat()` for repeated whitespace.
8785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
8906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
8786
8907
  */
8787
8908
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8788
8909
  /**
8789
8910
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
8911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
8791
8912
  */
8792
8913
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8793
8914
  /**
8794
8915
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
8916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
8796
8917
  */
8797
8918
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8798
8919
  /**
8799
8920
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
8921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
8801
8922
  */
8802
8923
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8803
8924
  /**
8804
8925
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
8926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
8806
8927
  */
8807
8928
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8808
8929
  /**
8809
8930
  * Prefer using `structuredClone` to create a deep clone.
8810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
8931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
8811
8932
  */
8812
8933
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8813
8934
  /**
8814
8935
  * Prefer `switch` over multiple `else-if`.
8815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
8936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
8816
8937
  */
8817
8938
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8818
8939
  /**
8819
8940
  * Prefer `Temporal` over `Date`.
8820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
8941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
8821
8942
  */
8822
8943
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8823
8944
  /**
8824
8945
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
8946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
8826
8947
  */
8827
8948
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8828
8949
  /**
8829
8950
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
8951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
8831
8952
  */
8832
8953
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8833
8954
  /**
8834
8955
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
8956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
8836
8957
  */
8837
8958
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8838
8959
  /**
8839
8960
  * Prefer top-level await over top-level promises and async function calls.
8840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
8961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
8841
8962
  */
8842
8963
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8843
8964
  /**
8844
8965
  * Enforce throwing `TypeError` in type checking conditions.
8845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
8966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
8846
8967
  */
8847
8968
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8848
8969
  /**
8849
8970
  * Require type literals to be last in union types.
8850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
8971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
8851
8972
  */
8852
8973
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8853
8974
  /**
8854
8975
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
8976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
8856
8977
  */
8857
8978
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8858
8979
  /**
8859
8980
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
8981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
8861
8982
  */
8862
8983
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8863
8984
  /**
8864
8985
  * Prefer Unicode code point escapes over legacy escape sequences.
8865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8866
8987
  */
8867
8988
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8868
8989
  /**
8869
8990
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
8991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
8871
8992
  */
8872
8993
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8873
8994
  /**
8874
8995
  * Prefer `URL#href` over stringifying a `URL`.
8875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
8996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
8876
8997
  */
8877
8998
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8878
8999
  /**
8879
9000
  * Prefer `URLSearchParams` over manually splitting query strings.
8880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
9001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
8881
9002
  */
8882
9003
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8883
9004
  /**
8884
9005
  * Prefer putting the condition in the while statement.
8885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
9006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
8886
9007
  */
8887
9008
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8888
9009
  /**
8889
9010
  * Renamed to `unicorn/name-replacements`.
8890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8891
9012
  * @deprecated
8892
9013
  */
8893
9014
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8894
9015
  /**
8895
9016
  * Enforce consistent relative URL style.
8896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
9017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
8897
9018
  */
8898
9019
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8899
9020
  /**
8900
9021
  * Enforce using the separator argument with `Array#join()`.
8901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
9022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
8902
9023
  */
8903
9024
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8904
9025
  /**
8905
9026
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
9027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
8907
9028
  */
8908
9029
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8909
9030
  /**
8910
9031
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
9032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
8912
9033
  */
8913
9034
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8914
9035
  /**
8915
9036
  * Require configured YAML frontmatter fields.
8916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
9037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
8917
9038
  */
8918
9039
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8919
9040
  /**
8920
9041
  * Require non-empty module attributes for imports and exports
8921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
9042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
8922
9043
  */
8923
9044
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8924
9045
  /**
8925
9046
  * Require non-empty specifier list in import and export statements.
8926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
9047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
8927
9048
  */
8928
9049
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8929
9050
  /**
8930
9051
  * Enforce using the digits argument with `Number#toFixed()`.
8931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8932
9053
  */
8933
9054
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8934
9055
  /**
8935
9056
  * Require passive event listeners for high-frequency events.
8936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
9057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
8937
9058
  */
8938
9059
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8939
9060
  /**
8940
9061
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
9062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
8942
9063
  */
8943
9064
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8944
9065
  /**
8945
9066
  * Require boolean-returning Proxy traps to return booleans.
8946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
9067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
8947
9068
  */
8948
9069
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9070
+ /**
9071
+ * Enforce a consistent style for single-line block comments.
9072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
9073
+ */
9074
+ 'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8949
9075
  /**
8950
9076
  * Enforce better string content.
8951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
9077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
8952
9078
  */
8953
9079
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8954
9080
  /**
8955
9081
  * Enforce consistent brace style for `case` clauses.
8956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
9082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
8957
9083
  */
8958
9084
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8959
9085
  /**
8960
9086
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
9087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
8962
9088
  */
8963
9089
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8964
9090
  /**
8965
9091
  * Fix whitespace-insensitive template indentation.
8966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
9092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
8967
9093
  */
8968
9094
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8969
9095
  /**
8970
9096
  * Enforce consistent case for text encoding identifiers.
8971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
9097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
8972
9098
  */
8973
9099
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8974
9100
  /**
8975
9101
  * Require `new` when creating an error.
8976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
9102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
8977
9103
  */
8978
9104
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8979
9105
  /**
8980
9106
  * Limit the complexity of `try` blocks.
8981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
9107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
8982
9108
  */
8983
9109
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8984
9110
  /**
@@ -10460,6 +10586,11 @@ interface RuleOptions {
10460
10586
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-spacing.html
10461
10587
  */
10462
10588
  'yaml/key-spacing'?: Linter.RuleEntry<YamlKeySpacing>;
10589
+ /**
10590
+ * disallow boolean mapping keys
10591
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-boolean-key.html
10592
+ */
10593
+ 'yaml/no-boolean-key'?: Linter.RuleEntry<[]>;
10463
10594
  /**
10464
10595
  * disallow empty document
10465
10596
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-document.html
@@ -10725,6 +10856,10 @@ type AngularNoInputRename = [] | [{
10725
10856
  type AngularPipePrefix = [] | [{
10726
10857
  prefixes?: string[];
10727
10858
  }];
10859
+ // ----- angular/prefer-on-push-component-change-detection -----
10860
+ type AngularPreferOnPushComponentChangeDetection = [] | [{
10861
+ allowExplicitOnPush?: boolean;
10862
+ }];
10728
10863
  // ----- angular/prefer-signals -----
10729
10864
  type AngularPreferSignals = [] | [{
10730
10865
  preferReadonlySignalProperties?: boolean;
@@ -11371,12 +11506,16 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
11371
11506
  // ----- jsdoc/check-param-names -----
11372
11507
  type JsdocCheckParamNames = [] | [{
11373
11508
  allowExtraTrailingParamDocs?: boolean;
11509
+ badParamNames?: boolean;
11510
+ badParamOrder?: boolean;
11374
11511
  checkDestructured?: boolean;
11375
11512
  checkRestProperty?: boolean;
11376
11513
  checkTypesPattern?: string;
11377
11514
  disableExtraPropertyReporting?: boolean;
11378
11515
  disableMissingParamChecks?: boolean;
11516
+ duplicateParams?: boolean;
11379
11517
  enableFixer?: boolean;
11518
+ extraParams?: boolean;
11380
11519
  useDefaultObjectProperties?: boolean;
11381
11520
  }];
11382
11521
  // ----- jsdoc/check-property-names -----
@@ -11557,6 +11696,13 @@ type JsdocNoUndefinedTypes = [] | [{
11557
11696
  disableReporting?: boolean;
11558
11697
  markVariablesAsUsed?: boolean;
11559
11698
  }];
11699
+ // ----- jsdoc/no-unnecessary-type-assertion -----
11700
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
11701
+ checkLiteralConstAssertions?: boolean;
11702
+ enableFixer?: boolean;
11703
+ treatAnyAsRedundant?: boolean;
11704
+ typesToIgnore?: string[];
11705
+ }];
11560
11706
  // ----- jsdoc/normalize-see-links -----
11561
11707
  type JsdocNormalizeSeeLinks = [] | [{
11562
11708
  canonicalForm?: ("pipe" | "prefix");
@@ -12106,15 +12252,19 @@ type JsoncSortKeys = ([{
12106
12252
  hasProperties?: string[];
12107
12253
  order: ((string | {
12108
12254
  keyPattern?: string;
12109
- order?: {
12255
+ order?: ({
12110
12256
  type?: ("asc" | "desc");
12111
12257
  caseSensitive?: boolean;
12112
12258
  natural?: boolean;
12113
- };
12259
+ } | {
12260
+ type: "ignore";
12261
+ });
12114
12262
  })[] | {
12115
12263
  type?: ("asc" | "desc");
12116
12264
  caseSensitive?: boolean;
12117
12265
  natural?: boolean;
12266
+ } | {
12267
+ type: "ignore";
12118
12268
  });
12119
12269
  minKeys?: number;
12120
12270
  allowLineSeparatedGroups?: boolean;
@@ -12123,15 +12273,19 @@ type JsoncSortKeys = ([{
12123
12273
  hasProperties?: string[];
12124
12274
  order: ((string | {
12125
12275
  keyPattern?: string;
12126
- order?: {
12276
+ order?: ({
12127
12277
  type?: ("asc" | "desc");
12128
12278
  caseSensitive?: boolean;
12129
12279
  natural?: boolean;
12130
- };
12280
+ } | {
12281
+ type: "ignore";
12282
+ });
12131
12283
  })[] | {
12132
12284
  type?: ("asc" | "desc");
12133
12285
  caseSensitive?: boolean;
12134
12286
  natural?: boolean;
12287
+ } | {
12288
+ type: "ignore";
12135
12289
  });
12136
12290
  minKeys?: number;
12137
12291
  allowLineSeparatedGroups?: boolean;
@@ -13260,6 +13414,10 @@ type NoUnderscoreDangle = [] | [{
13260
13414
  allowInArrayDestructuring?: boolean;
13261
13415
  allowInObjectDestructuring?: boolean;
13262
13416
  }];
13417
+ // ----- no-unmodified-loop-condition -----
13418
+ type NoUnmodifiedLoopCondition = [] | [{
13419
+ checkConditionalExpressions?: boolean;
13420
+ }];
13263
13421
  // ----- no-unneeded-ternary -----
13264
13422
  type NoUnneededTernary = [] | [{
13265
13423
  defaultAssignment?: boolean;
@@ -13583,6 +13741,10 @@ type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
13583
13741
  type NodePreferNodeProtocol = [] | [{
13584
13742
  version?: string;
13585
13743
  }];
13744
+ // ----- node/prefer-process-get-builtin-module -----
13745
+ type NodePreferProcessGetBuiltinModule = [] | [{
13746
+ version?: string;
13747
+ }];
13586
13748
  // ----- node/shebang -----
13587
13749
  type NodeShebang = [] | [{
13588
13750
  convertPath?: ({
@@ -16755,7 +16917,6 @@ type SolidEventHandlers = [] | [{
16755
16917
  // ----- solid/jsx-no-duplicate-props -----
16756
16918
  type SolidJsxNoDuplicateProps = [] | [{
16757
16919
  ignoreCase?: boolean;
16758
- [k: string]: unknown | undefined;
16759
16920
  }];
16760
16921
  // ----- solid/jsx-no-undef -----
16761
16922
  type SolidJsxNoUndef = [] | [{
@@ -16789,6 +16950,10 @@ type SolidStyleProp = [] | [{
16789
16950
  styleProps?: [string, ...(string)[]];
16790
16951
  allowString?: boolean;
16791
16952
  }];
16953
+ // ----- solid/valid-use-server -----
16954
+ type SolidValidUseServer = [] | [{
16955
+ clientWrappers?: string[];
16956
+ }];
16792
16957
  // ----- sort-imports -----
16793
16958
  type SortImports = [] | [{
16794
16959
  ignoreCase?: boolean;
@@ -19563,7 +19728,9 @@ type UnicodeBom = [] | [("always" | "never")];
19563
19728
  // ----- unicorn/catch-error-name -----
19564
19729
  type UnicornCatchErrorName = [] | [{
19565
19730
  name?: string;
19566
- ignore?: unknown[];
19731
+ ignore?: (string | {
19732
+ [k: string]: unknown | undefined;
19733
+ })[];
19567
19734
  }];
19568
19735
  // ----- unicorn/class-reference-in-static-methods -----
19569
19736
  type UnicornClassReferenceInStaticMethods = [] | [{
@@ -19583,11 +19750,19 @@ type UnicornCommentContent = [] | [{
19583
19750
  }];
19584
19751
  // ----- unicorn/consistent-boolean-name -----
19585
19752
  type UnicornConsistentBooleanName = [] | [{
19586
- checkProperties?: boolean;
19753
+ checkVariables?: ("always" | "prohibit" | "never");
19754
+ checkArguments?: ("always" | "prohibit" | "never");
19755
+ checkFunctions?: ("always" | "prohibit" | "never");
19756
+ checkMethods?: ("always" | "prohibit" | "never");
19757
+ checkFields?: ("always" | "prohibit" | "never");
19587
19758
  prefixes?: {
19588
19759
  [k: string]: boolean | undefined;
19589
19760
  };
19761
+ wrappers?: {
19762
+ [k: string]: string | undefined;
19763
+ };
19590
19764
  ignore?: unknown[];
19765
+ [k: string]: unknown;
19591
19766
  }];
19592
19767
  // ----- unicorn/consistent-class-member-order -----
19593
19768
  type UnicornConsistentClassMemberOrder = [] | [{
@@ -19621,6 +19796,7 @@ type UnicornConsistentFunctionScoping = [] | [{
19621
19796
  // ----- unicorn/consistent-function-style -----
19622
19797
  type UnicornConsistentFunctionStyle = [] | [{
19623
19798
  default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19799
+ defaultExport?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19624
19800
  namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19625
19801
  namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19626
19802
  callbacks?: ("function-expression" | "arrow-function" | "ignore");
@@ -19644,7 +19820,9 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
19644
19820
  // ----- unicorn/expiring-todo-comments -----
19645
19821
  type UnicornExpiringTodoComments = [] | [{
19646
19822
  terms?: string[];
19647
- ignore?: unknown[];
19823
+ ignore?: (string | {
19824
+ [k: string]: unknown | undefined;
19825
+ })[];
19648
19826
  checkDates?: boolean;
19649
19827
  checkDatesOnPullRequests?: boolean;
19650
19828
  allowWarningComments?: boolean;
@@ -19659,7 +19837,9 @@ type UnicornExplicitTimerDelay = [] | [("always" | "never")];
19659
19837
  // ----- unicorn/filename-case -----
19660
19838
  type UnicornFilenameCase = [] | [({
19661
19839
  case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
19662
- ignore?: unknown[];
19840
+ ignore?: (string | {
19841
+ [k: string]: unknown | undefined;
19842
+ })[];
19663
19843
  multipleFileExtensions?: boolean;
19664
19844
  checkDirectories?: boolean;
19665
19845
  } | {
@@ -19670,7 +19850,9 @@ type UnicornFilenameCase = [] | [({
19670
19850
  kebabCase?: boolean;
19671
19851
  pascalCase?: boolean;
19672
19852
  };
19673
- ignore?: unknown[];
19853
+ ignore?: (string | {
19854
+ [k: string]: unknown | undefined;
19855
+ })[];
19674
19856
  multipleFileExtensions?: boolean;
19675
19857
  checkDirectories?: boolean;
19676
19858
  })];
@@ -19707,6 +19889,8 @@ type UnicornIsolatedFunctions = [] | [{
19707
19889
  selectors?: string[];
19708
19890
  comments?: string[];
19709
19891
  }];
19892
+ // ----- unicorn/iteration-fallback-style -----
19893
+ type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
19710
19894
  // ----- unicorn/logical-assignment-operators -----
19711
19895
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
19712
19896
  enforceForIfStatements?: boolean;
@@ -19727,7 +19911,9 @@ type UnicornNameReplacements = [] | [{
19727
19911
  replacements?: _UnicornNameReplacements_NameReplacements;
19728
19912
  extendDefaultAllowList?: boolean;
19729
19913
  allowList?: _UnicornNameReplacements_BooleanObject;
19730
- ignore?: unknown[];
19914
+ ignore?: (string | {
19915
+ [k: string]: unknown | undefined;
19916
+ })[];
19731
19917
  }];
19732
19918
  type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
19733
19919
  interface _UnicornNameReplacements_NameReplacements {
@@ -19775,7 +19961,7 @@ type UnicornNoInvalidArgumentCount = [] | [{
19775
19961
  }];
19776
19962
  // ----- unicorn/no-keyword-prefix -----
19777
19963
  type UnicornNoKeywordPrefix = [] | [{
19778
- disallowedPrefixes?: [] | [string];
19964
+ disallowedPrefixes?: string[];
19779
19965
  checkProperties?: boolean;
19780
19966
  onlyCamelCase?: boolean;
19781
19967
  }];
@@ -19786,7 +19972,9 @@ type UnicornNoNegatedComparison = [] | [{
19786
19972
  // ----- unicorn/no-non-function-verb-prefix -----
19787
19973
  type UnicornNoNonFunctionVerbPrefix = [] | [{
19788
19974
  verbs?: string[];
19789
- ignore?: unknown[];
19975
+ ignore?: (string | {
19976
+ [k: string]: unknown | undefined;
19977
+ })[];
19790
19978
  }];
19791
19979
  // ----- unicorn/no-null -----
19792
19980
  type UnicornNoNull = [] | [{
@@ -19799,7 +19987,7 @@ type UnicornNoTypeofUndefined = [] | [{
19799
19987
  }];
19800
19988
  // ----- unicorn/no-unnecessary-polyfills -----
19801
19989
  type UnicornNoUnnecessaryPolyfills = [] | [{
19802
- targets?: (string | unknown[] | {
19990
+ targets?: (string | string[] | {
19803
19991
  [k: string]: unknown | undefined;
19804
19992
  });
19805
19993
  }];
@@ -19853,11 +20041,11 @@ type UnicornPreferArrayFind = [] | [{
19853
20041
  }];
19854
20042
  // ----- unicorn/prefer-array-flat -----
19855
20043
  type UnicornPreferArrayFlat = [] | [{
19856
- functions?: unknown[];
20044
+ functions?: string[];
19857
20045
  }];
19858
20046
  // ----- unicorn/prefer-at -----
19859
20047
  type UnicornPreferAt = [] | [{
19860
- getLastElementFunctions?: unknown[];
20048
+ getLastElementFunctions?: string[];
19861
20049
  checkAllIndexAccess?: boolean;
19862
20050
  }];
19863
20051
  // ----- unicorn/prefer-continue -----
@@ -19881,6 +20069,12 @@ type UnicornPreferExplicitViewportUnits = [] | [{
19881
20069
  type UnicornPreferExportFrom = [] | [{
19882
20070
  checkUsedVariables?: boolean;
19883
20071
  }];
20072
+ // ----- unicorn/prefer-https -----
20073
+ type UnicornPreferHttps = [] | [{
20074
+ ignore?: (string | {
20075
+ [k: string]: unknown | undefined;
20076
+ })[];
20077
+ }];
19884
20078
  // ----- unicorn/prefer-includes-over-repeated-comparisons -----
19885
20079
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
19886
20080
  minimumComparisons?: number;
@@ -19897,7 +20091,7 @@ type UnicornPreferNumberProperties = [] | [{
19897
20091
  }];
19898
20092
  // ----- unicorn/prefer-object-from-entries -----
19899
20093
  type UnicornPreferObjectFromEntries = [] | [{
19900
- functions?: unknown[];
20094
+ functions?: string[];
19901
20095
  }];
19902
20096
  // ----- unicorn/prefer-query-selector -----
19903
20097
  type UnicornPreferQuerySelector = [] | [{
@@ -19916,7 +20110,7 @@ type UnicornPreferSetHas = [] | [{
19916
20110
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
19917
20111
  // ----- unicorn/prefer-single-call -----
19918
20112
  type UnicornPreferSingleCall = [] | [{
19919
- ignore?: unknown[];
20113
+ ignore?: string[];
19920
20114
  }];
19921
20115
  // ----- unicorn/prefer-string-repeat -----
19922
20116
  type UnicornPreferStringRepeat = [] | [{
@@ -19924,7 +20118,7 @@ type UnicornPreferStringRepeat = [] | [{
19924
20118
  }];
19925
20119
  // ----- unicorn/prefer-structured-clone -----
19926
20120
  type UnicornPreferStructuredClone = [] | [{
19927
- functions?: unknown[];
20121
+ functions?: string[];
19928
20122
  }];
19929
20123
  // ----- unicorn/prefer-switch -----
19930
20124
  type UnicornPreferSwitch = [] | [{
@@ -19949,6 +20143,12 @@ type UnicornRequireCssEscape = [] | [{
19949
20143
  type UnicornRequireFrontmatterFields = [] | [{
19950
20144
  fields?: string[];
19951
20145
  }];
20146
+ // ----- unicorn/single-line-block-comment-style -----
20147
+ type UnicornSingleLineBlockCommentStyle = [] | [("multiline" | "single-line")] | [("multiline" | "single-line"), {
20148
+ ignore?: (string | {
20149
+ [k: string]: unknown | undefined;
20150
+ })[];
20151
+ }];
19952
20152
  // ----- unicorn/string-content -----
19953
20153
  type UnicornStringContent = [] | [{
19954
20154
  patterns?: {
@@ -21522,15 +21722,19 @@ type YamlSortKeys = ([{
21522
21722
  hasProperties?: string[];
21523
21723
  order: ((string | {
21524
21724
  keyPattern?: string;
21525
- order?: {
21725
+ order?: ({
21526
21726
  type?: ("asc" | "desc");
21527
21727
  caseSensitive?: boolean;
21528
21728
  natural?: boolean;
21529
- };
21729
+ } | {
21730
+ type: "ignore";
21731
+ });
21530
21732
  })[] | {
21531
21733
  type?: ("asc" | "desc");
21532
21734
  caseSensitive?: boolean;
21533
21735
  natural?: boolean;
21736
+ } | {
21737
+ type: "ignore";
21534
21738
  });
21535
21739
  minKeys?: number;
21536
21740
  allowLineSeparatedGroups?: boolean;
@@ -21539,15 +21743,19 @@ type YamlSortKeys = ([{
21539
21743
  hasProperties?: string[];
21540
21744
  order: ((string | {
21541
21745
  keyPattern?: string;
21542
- order?: {
21746
+ order?: ({
21543
21747
  type?: ("asc" | "desc");
21544
21748
  caseSensitive?: boolean;
21545
21749
  natural?: boolean;
21546
- };
21750
+ } | {
21751
+ type: "ignore";
21752
+ });
21547
21753
  })[] | {
21548
21754
  type?: ("asc" | "desc");
21549
21755
  caseSensitive?: boolean;
21550
21756
  natural?: boolean;
21757
+ } | {
21758
+ type: "ignore";
21551
21759
  });
21552
21760
  minKeys?: number;
21553
21761
  allowLineSeparatedGroups?: boolean;