@pengzhanbo/eslint-config 2.9.0 → 2.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +475 -358
  2. package/dist/index.js +303 -149
  3. package/package.json +41 -41
package/dist/index.d.ts CHANGED
@@ -388,7 +388,7 @@ interface RuleOptions {
388
388
  * Ensures components do not opt out of the default `ChangeDetectionStrategy.OnPush` change detection strategy
389
389
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md
390
390
  */
391
- 'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<[]>;
391
+ 'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<AngularPreferOnPushComponentChangeDetection>;
392
392
  /**
393
393
  * Use `OutputEmitterRef` instead of `@Output()`
394
394
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-emitter-ref.md
@@ -985,6 +985,11 @@ interface RuleOptions {
985
985
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
986
986
  */
987
987
  'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
988
+ /**
989
+ * Avoid using TypeScript's export aliases.
990
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/export-aliases.md
991
+ */
992
+ 'erasable-syntax-only/export-aliases'?: Linter.RuleEntry<[]>;
988
993
  /**
989
994
  * Avoid using TypeScript's import aliases.
990
995
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
@@ -1328,6 +1333,10 @@ interface RuleOptions {
1328
1333
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1329
1334
  */
1330
1335
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1336
+ /**
1337
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
1338
+ */
1339
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1331
1340
  /**
1332
1341
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1333
1342
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -3000,7 +3009,7 @@ interface RuleOptions {
3000
3009
  * Disallow unmodified loop conditions
3001
3010
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
3002
3011
  */
3003
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
3012
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
3004
3013
  /**
3005
3014
  * Disallow ternary operators when simpler alternatives exist
3006
3015
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -3552,6 +3561,11 @@ interface RuleOptions {
3552
3561
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
3553
3562
  */
3554
3563
  'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
3564
+ /**
3565
+ * Require blank lines around multi-line entries in `pnpm-workspace.yaml`, and disallow them between single-line entries
3566
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-blank-lines.test.ts
3567
+ */
3568
+ 'pnpm/yaml-blank-lines'?: Linter.RuleEntry<[]>;
3555
3569
  /**
3556
3570
  * Enforce settings in `pnpm-workspace.yaml`
3557
3571
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
@@ -4860,11 +4874,21 @@ interface RuleOptions {
4860
4874
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-uses-vars.md
4861
4875
  */
4862
4876
  'solid/jsx-uses-vars'?: Linter.RuleEntry<[]>;
4877
+ /**
4878
+ * Disallow passing uncalled signal accessors or other functions as value-typed DOM element attributes.
4879
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-accessor-as-prop.md
4880
+ */
4881
+ 'solid/no-accessor-as-prop'?: Linter.RuleEntry<[]>;
4863
4882
  /**
4864
4883
  * Disallow usage of type-unsafe event handlers.
4865
4884
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
4866
4885
  */
4867
4886
  'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
4887
+ /**
4888
+ * Disallow browser-only globals inside server functions, which run exclusively on the server.
4889
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
4890
+ */
4891
+ 'solid/no-browser-globals-in-server-function'?: Linter.RuleEntry<[]>;
4868
4892
  /**
4869
4893
  * 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.
4870
4894
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-destructure.md
@@ -4875,6 +4899,16 @@ interface RuleOptions {
4875
4899
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-innerhtml.md
4876
4900
  */
4877
4901
  'solid/no-innerhtml'?: Linter.RuleEntry<SolidNoInnerhtml>;
4902
+ /**
4903
+ * Disallow server functions from capturing variables in enclosing non-module scopes, mirroring the compiler's build-time validation.
4904
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-invalid-server-capture.md
4905
+ */
4906
+ 'solid/no-invalid-server-capture'?: Linter.RuleEntry<[]>;
4907
+ /**
4908
+ * Disallow reactive primitives at module scope, where state is shared across SSR requests.
4909
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-module-scope-reactive-primitive.md
4910
+ */
4911
+ 'solid/no-module-scope-reactive-primitive'?: Linter.RuleEntry<[]>;
4878
4912
  /**
4879
4913
  * Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them.
4880
4914
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-proxy-apis.md
@@ -4890,6 +4924,16 @@ interface RuleOptions {
4890
4924
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-react-specific-props.md
4891
4925
  */
4892
4926
  'solid/no-react-specific-props'?: Linter.RuleEntry<[]>;
4927
+ /**
4928
+ * Disallow restating a prop or option value that is already the default.
4929
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-restated-default-options.md
4930
+ */
4931
+ 'solid/no-restated-default-options'?: Linter.RuleEntry<[]>;
4932
+ /**
4933
+ * Require the two-argument `createEffect(compute, effect)` form used by Solid 2.0.
4934
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
4935
+ */
4936
+ 'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
4893
4937
  /**
4894
4938
  * Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
4895
4939
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
@@ -4906,16 +4950,36 @@ interface RuleOptions {
4906
4950
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-for.md
4907
4951
  */
4908
4952
  'solid/prefer-for'?: Linter.RuleEntry<[]>;
4953
+ /**
4954
+ * Enforce running side-effectful setup (timers, global listeners, observers) inside `onSettled` instead of the component body.
4955
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-onSettled-for-side-effects.md
4956
+ */
4957
+ 'solid/prefer-onSettled-for-side-effects'?: Linter.RuleEntry<[]>;
4909
4958
  /**
4910
4959
  * Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only.
4911
4960
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-show.md
4912
4961
  */
4913
4962
  'solid/prefer-show'?: Linter.RuleEntry<[]>;
4963
+ /**
4964
+ * Enforce using the structured array/object forms of the `class` prop over manually-built class strings.
4965
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-structured-class.md
4966
+ */
4967
+ 'solid/prefer-structured-class'?: Linter.RuleEntry<[]>;
4914
4968
  /**
4915
4969
  * Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected.
4916
4970
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/reactivity.md
4917
4971
  */
4918
4972
  'solid/reactivity'?: Linter.RuleEntry<SolidReactivity>;
4973
+ /**
4974
+ * Disallow Solid 1.x APIs that were removed or renamed in Solid 2.0, with migration guidance.
4975
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/removed-api.md
4976
+ */
4977
+ 'solid/removed-api'?: Linter.RuleEntry<[]>;
4978
+ /**
4979
+ * Require server functions to be async, matching their client-side contract.
4980
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/require-async-server-function.md
4981
+ */
4982
+ 'solid/require-async-server-function'?: Linter.RuleEntry<[]>;
4919
4983
  /**
4920
4984
  * Disallow extra closing tags for components without children.
4921
4985
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/self-closing-comp.md
@@ -4926,6 +4990,11 @@ interface RuleOptions {
4926
4990
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/style-prop.md
4927
4991
  */
4928
4992
  'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>;
4993
+ /**
4994
+ * Enforce that "use server" directives are placed where the compiler honors them, and that module-level directive files export working server functions.
4995
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/valid-use-server.md
4996
+ */
4997
+ 'solid/valid-use-server'?: Linter.RuleEntry<SolidValidUseServer>;
4929
4998
  /**
4930
4999
  * Enforce sorted `import` declarations within modules
4931
5000
  * @see https://eslint.org/docs/latest/rules/sort-imports
@@ -5784,6 +5853,11 @@ interface RuleOptions {
5784
5853
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
5785
5854
  */
5786
5855
  'svelte/no-useless-mustaches'?: Linter.RuleEntry<SvelteNoUselessMustaches>;
5856
+ /**
5857
+ * require attribute interpolation instead of template literals
5858
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-attribute-interpolation/
5859
+ */
5860
+ 'svelte/prefer-attribute-interpolation'?: Linter.RuleEntry<[]>;
5787
5861
  /**
5788
5862
  * require class directives instead of ternary expressions
5789
5863
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
@@ -7145,1740 +7219,1740 @@ interface RuleOptions {
7145
7219
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7146
7220
  /**
7147
7221
  * Prefer better DOM traversal APIs.
7148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
7222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
7149
7223
  */
7150
7224
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7151
7225
  /**
7152
7226
  * Removed. Prefer `eslint-plugin-regexp`
7153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7154
7228
  * @deprecated
7155
7229
  */
7156
7230
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7157
7231
  /**
7158
7232
  * Enforce a specific parameter name in catch clauses.
7159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
7233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
7160
7234
  */
7161
7235
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7162
7236
  /**
7163
7237
  * Enforce consistent class references in static methods.
7164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
7238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
7165
7239
  */
7166
7240
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7167
7241
  /**
7168
7242
  * Enforce better comment content.
7169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
7243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
7170
7244
  */
7171
7245
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7172
7246
  /**
7173
7247
  * Enforce a consistent return style for multiline arrow function bodies.
7174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
7248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
7175
7249
  */
7176
7250
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7177
7251
  /**
7178
7252
  * Enforce consistent assertion style with `node:assert`.
7179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
7253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
7180
7254
  */
7181
7255
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7182
7256
  /**
7183
7257
  * Enforce consistent naming for boolean names.
7184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
7258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
7185
7259
  */
7186
7260
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7187
7261
  /**
7188
7262
  * Enforce consistent class member order.
7189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
7263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
7190
7264
  */
7191
7265
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7192
7266
  /**
7193
7267
  * Enforce consistent spelling of compound words in identifiers.
7194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
7268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
7195
7269
  */
7196
7270
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7197
7271
  /**
7198
7272
  * Enforce consistent conditional object spread style.
7199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
7273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
7200
7274
  */
7201
7275
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7202
7276
  /**
7203
7277
  * Prefer passing `Date` directly to the constructor when cloning.
7204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
7278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
7205
7279
  */
7206
7280
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7207
7281
  /**
7208
7282
  * Use destructured variables over properties.
7209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
7283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
7210
7284
  */
7211
7285
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7212
7286
  /**
7213
7287
  * Prefer consistent types when spreading a ternary in an array literal.
7214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
7288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
7215
7289
  */
7216
7290
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7217
7291
  /**
7218
7292
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
7293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
7220
7294
  */
7221
7295
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7222
7296
  /**
7223
7297
  * Enforce consistent decorator position on exported classes.
7224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
7298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
7225
7299
  */
7226
7300
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7227
7301
  /**
7228
7302
  * Move function definitions to the highest possible scope.
7229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
7303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
7230
7304
  */
7231
7305
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7232
7306
  /**
7233
7307
  * Enforce function syntax by role.
7234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
7308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
7235
7309
  */
7236
7310
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7237
7311
  /**
7238
7312
  * Enforce consistent JSON file reads before `JSON.parse()`.
7239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
7313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
7240
7314
  */
7241
7315
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7242
7316
  /**
7243
7317
  * Enforce consistent optional chaining for same-base member access.
7244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
7318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
7245
7319
  */
7246
7320
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7247
7321
  /**
7248
7322
  * Enforce consistent style for escaping `${` in template literals.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
7323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
7250
7324
  */
7251
7325
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7252
7326
  /**
7253
7327
  * Enforce consistent labels on tuple type elements.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
7328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
7255
7329
  */
7256
7330
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7257
7331
  /**
7258
7332
  * Enforce correct `Error` subclassing.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
7333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
7260
7334
  */
7261
7335
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7262
7336
  /**
7263
7337
  * Enforce consistent default export declarations.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
7265
7339
  */
7266
7340
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7267
7341
  /**
7268
7342
  * Enforce consistent style for DOM element dataset access.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
7343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
7270
7344
  */
7271
7345
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7272
7346
  /**
7273
7347
  * Enforce no spaces between braces.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
7348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
7275
7349
  */
7276
7350
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7277
7351
  /**
7278
7352
  * Enforce passing a `message` value when creating a built-in error.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
7353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
7280
7354
  */
7281
7355
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7282
7356
  /**
7283
7357
  * Require escape sequences to use uppercase or lowercase values.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
7358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
7285
7359
  */
7286
7360
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7287
7361
  /**
7288
7362
  * Add expiration conditions to TODO comments.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
7363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
7290
7364
  */
7291
7365
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7292
7366
  /**
7293
7367
  * Enforce explicitly comparing the `length` or `size` property of a value.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
7368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
7295
7369
  */
7296
7370
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7297
7371
  /**
7298
7372
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
7373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
7300
7374
  */
7301
7375
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7302
7376
  /**
7303
7377
  * Enforce a case style for filenames and directory names.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
7378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
7305
7379
  */
7306
7380
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7307
7381
  /**
7308
7382
  * Require identifiers to match a specified regular expression.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
7383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
7310
7384
  */
7311
7385
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7312
7386
  /**
7313
7387
  * Enforce specific import styles per module.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
7388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
7315
7389
  */
7316
7390
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7317
7391
  /**
7318
7392
  * Prevent usage of variables from outside the scope of isolated functions.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
7393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
7320
7394
  */
7321
7395
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7322
7396
  /**
7323
7397
  * Enforce a consistent style for optional loop sources.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
7398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
7325
7399
  */
7326
7400
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7327
7401
  /**
7328
7402
  * Require or disallow logical assignment operator shorthand
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
7403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
7330
7404
  */
7331
7405
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7332
7406
  /**
7333
7407
  * Limit the depth of nested calls.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
7408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
7335
7409
  */
7336
7410
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7337
7411
  /**
7338
7412
  * Enforce replacements for variable, property, and filenames.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
7413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
7340
7414
  */
7341
7415
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7342
7416
  /**
7343
7417
  * Enforce correct use of `new` for builtin constructors.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
7418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
7345
7419
  */
7346
7420
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7347
7421
  /**
7348
7422
  * Enforce specifying rules to disable in `eslint-disable` comments.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
7423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
7350
7424
  */
7351
7425
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7352
7426
  /**
7353
7427
  * Disallow recursive access to `this` within getters and setters.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
7428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
7355
7429
  */
7356
7430
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7357
7431
  /**
7358
7432
  * Disallow bitwise operators where a logical operator was likely intended.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
7433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
7360
7434
  */
7361
7435
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7362
7436
  /**
7363
7437
  * Disallow anonymous functions and classes as the default export.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
7438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
7365
7439
  */
7366
7440
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7367
7441
  /**
7368
7442
  * Prevent passing a function reference directly to iterator methods.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
7443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
7370
7444
  */
7371
7445
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7372
7446
  /**
7373
7447
  * Disallow array accumulation with `Array#concat()` in loops.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
7448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
7375
7449
  */
7376
7450
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7377
7451
  /**
7378
7452
  * Disallow using reference values as `Array#fill()` values.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
7453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
7380
7454
  */
7381
7455
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7382
7456
  /**
7383
7457
  * Disallow `.fill()` after `Array.from({length: …})`.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
7458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
7385
7459
  */
7386
7460
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7387
7461
  /**
7388
7462
  * Disallow front-of-array mutation.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
7463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
7390
7464
  */
7391
7465
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7392
7466
  /**
7393
7467
  * Disallow using the `this` argument in array methods.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
7468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
7395
7469
  */
7396
7470
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7397
7471
  /**
7398
7472
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7400
7474
  * @deprecated
7401
7475
  */
7402
7476
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7403
7477
  /**
7404
7478
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
7479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
7406
7480
  */
7407
7481
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7408
7482
  /**
7409
7483
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
7484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
7411
7485
  */
7412
7486
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7413
7487
  /**
7414
7488
  * Prefer `Array#toSorted()` over `Array#sort()`.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
7489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
7416
7490
  */
7417
7491
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7418
7492
  /**
7419
7493
  * Disallow sorting arrays to get the minimum or maximum value.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
7494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
7421
7495
  */
7422
7496
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7423
7497
  /**
7424
7498
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
7499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
7426
7500
  */
7427
7501
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7428
7502
  /**
7429
7503
  * Disallow asterisk prefixes in documentation comments.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7431
7505
  */
7432
7506
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7433
7507
  /**
7434
7508
  * Disallow async functions as `Promise#finally()` callbacks.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
7509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
7436
7510
  */
7437
7511
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7438
7512
  /**
7439
7513
  * Disallow member access from await expression.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
7441
7515
  */
7442
7516
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7443
7517
  /**
7444
7518
  * Disallow using `await` in `Promise` method parameters.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
7446
7520
  */
7447
7521
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7448
7522
  /**
7449
7523
  * Disallow barrel files.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
7451
7525
  */
7452
7526
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7453
7527
  /**
7454
7528
  * Disallow unnecessary `Blob` to `File` conversion.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
7456
7530
  */
7457
7531
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7458
7532
  /**
7459
7533
  * Disallow boolean-returning sort comparators.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
7461
7535
  */
7462
7536
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7463
7537
  /**
7464
7538
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
7466
7540
  */
7467
7541
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7468
7542
  /**
7469
7543
  * Prefer drawing canvases directly instead of converting them to images.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
7471
7545
  */
7472
7546
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7473
7547
  /**
7474
7548
  * Disallow chained comparisons such as `a < b < c`.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
7476
7550
  */
7477
7551
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7478
7552
  /**
7479
7553
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
7481
7555
  */
7482
7556
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7483
7557
  /**
7484
7558
  * Disallow dynamic object property existence checks.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
7486
7560
  */
7487
7561
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7488
7562
  /**
7489
7563
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
7491
7565
  */
7492
7566
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7493
7567
  /**
7494
7568
  * Disallow confusing uses of `Array#with()`.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
7496
7570
  */
7497
7571
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7498
7572
  /**
7499
7573
  * Do not use leading/trailing space between `console.log` parameters.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
7501
7575
  */
7502
7576
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7503
7577
  /**
7504
7578
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
7506
7580
  */
7507
7581
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7508
7582
  /**
7509
7583
  * Disallow declarations before conditional early exits when they are only used after the exit.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
7511
7585
  */
7512
7586
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7513
7587
  /**
7514
7588
  * Do not use `document.cookie` directly.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
7516
7590
  */
7517
7591
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7518
7592
  /**
7519
7593
  * Disallow two comparisons of the same operands that can be combined into one.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
7521
7595
  */
7522
7596
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7523
7597
  /**
7524
7598
  * Disallow duplicate adjacent branches in if chains.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
7526
7600
  */
7527
7601
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7528
7602
  /**
7529
7603
  * Disallow adjacent duplicate operands in logical expressions.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
7604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
7531
7605
  */
7532
7606
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7533
7607
  /**
7534
7608
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
7609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
7536
7610
  */
7537
7611
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7538
7612
  /**
7539
7613
  * Disallow duplicate values in `Set` constructor array literals.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
7614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
7541
7615
  */
7542
7616
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7543
7617
  /**
7544
7618
  * Disallow empty files.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
7619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
7546
7620
  */
7547
7621
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7548
7622
  /**
7549
7623
  * Disallow assigning to built-in error properties.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
7624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
7551
7625
  */
7552
7626
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7553
7627
  /**
7554
7628
  * Disallow exports in scripts.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
7629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
7556
7630
  */
7557
7631
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7558
7632
  /**
7559
7633
  * Prefer `for…of` over the `forEach` method.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
7634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
7561
7635
  */
7562
7636
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7563
7637
  /**
7564
7638
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
7566
7640
  */
7567
7641
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7568
7642
  /**
7569
7643
  * Disallow assigning properties on the global object.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
7571
7645
  */
7572
7646
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7573
7647
  /**
7574
7648
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7576
7650
  * @deprecated
7577
7651
  */
7578
7652
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7579
7653
  /**
7580
7654
  * Disallow immediate mutation after variable assignment.
7581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
7655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
7582
7656
  */
7583
7657
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7584
7658
  /**
7585
7659
  * Disallow impossible comparisons against `.length` or `.size`.
7586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
7660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
7587
7661
  */
7588
7662
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7589
7663
  /**
7590
7664
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
7665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
7592
7666
  */
7593
7667
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7594
7668
  /**
7595
7669
  * Disallow incorrect template literal interpolation syntax.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7597
7671
  */
7598
7672
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7599
7673
  /**
7600
7674
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7602
7676
  * @deprecated
7603
7677
  */
7604
7678
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7605
7679
  /**
7606
7680
  * Disallow `instanceof` with built-in objects
7607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
7608
7682
  */
7609
7683
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7610
7684
  /**
7611
7685
  * Disallow calling functions and constructors with an invalid number of arguments.
7612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
7613
7687
  */
7614
7688
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7615
7689
  /**
7616
7690
  * Disallow comparing a single character from a string to a multi-character string.
7617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
7618
7692
  */
7619
7693
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7620
7694
  /**
7621
7695
  * Disallow invalid options in `fetch()` and `new Request()`.
7622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
7623
7697
  */
7624
7698
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7625
7699
  /**
7626
7700
  * Disallow invalid `accept` values on file inputs.
7627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
7628
7702
  */
7629
7703
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7630
7704
  /**
7631
7705
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
7633
7707
  */
7634
7708
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7635
7709
  /**
7636
7710
  * Disallow invalid implementations of well-known symbol methods.
7637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7638
7712
  */
7639
7713
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7640
7714
  /**
7641
7715
  * Disallow identifiers starting with `new` or `class`.
7642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
7643
7717
  */
7644
7718
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7645
7719
  /**
7646
7720
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
7648
7722
  */
7649
7723
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7650
7724
  /**
7651
7725
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
7653
7727
  */
7654
7728
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7655
7729
  /**
7656
7730
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7658
7732
  * @deprecated
7659
7733
  */
7660
7734
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7661
7735
  /**
7662
7736
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
7737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
7664
7738
  */
7665
7739
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7666
7740
  /**
7667
7741
  * Disallow mutating a loop iterable during iteration.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
7742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
7669
7743
  */
7670
7744
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7671
7745
  /**
7672
7746
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
7747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
7674
7748
  */
7675
7749
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7676
7750
  /**
7677
7751
  * Disallow manually wrapped comments.
7678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
7752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7679
7753
  */
7680
7754
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7681
7755
  /**
7682
7756
  * Disallow checking a Map key before accessing a different key.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
7757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7684
7758
  */
7685
7759
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7686
7760
  /**
7687
7761
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
7762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7689
7763
  */
7690
7764
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7691
7765
  /**
7692
7766
  * Disallow references to missing local resources.
7693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
7767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7694
7768
  */
7695
7769
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7696
7770
  /**
7697
7771
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7699
7773
  */
7700
7774
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7701
7775
  /**
7702
7776
  * Disallow named usage of default import and export.
7703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
7777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
7704
7778
  */
7705
7779
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7706
7780
  /**
7707
7781
  * Disallow negated array predicate calls.
7708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
7782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
7709
7783
  */
7710
7784
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7711
7785
  /**
7712
7786
  * Disallow negated comparisons.
7713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
7787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
7714
7788
  */
7715
7789
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7716
7790
  /**
7717
7791
  * Disallow negated conditions.
7718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
7792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
7719
7793
  */
7720
7794
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7721
7795
  /**
7722
7796
  * Disallow negated expression in equality check.
7723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
7797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
7724
7798
  */
7725
7799
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7726
7800
  /**
7727
7801
  * Disallow nested ternary expressions.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
7802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
7729
7803
  */
7730
7804
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7731
7805
  /**
7732
7806
  * Disallow `new Array()`.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
7807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
7734
7808
  */
7735
7809
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7736
7810
  /**
7737
7811
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
7812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
7739
7813
  */
7740
7814
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7741
7815
  /**
7742
7816
  * Disallow non-function values with function-style verb prefixes.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
7817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
7744
7818
  */
7745
7819
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7746
7820
  /**
7747
7821
  * Disallow non-standard properties on built-in objects.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
7822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
7749
7823
  */
7750
7824
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7751
7825
  /**
7752
7826
  * Disallow the use of the `null` literal.
7753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
7754
7828
  */
7755
7829
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7756
7830
  /**
7757
7831
  * Disallow the use of objects as default parameters.
7758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
7832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
7759
7833
  */
7760
7834
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7761
7835
  /**
7762
7836
  * Disallow `Object` methods with `Map` or `Set`.
7763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
7837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
7764
7838
  */
7765
7839
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7766
7840
  /**
7767
7841
  * Disallow optional chaining on undeclared variables.
7768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7769
7843
  */
7770
7844
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7771
7845
  /**
7772
7846
  * Disallow `process.exit()`.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
7847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
7774
7848
  */
7775
7849
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7776
7850
  /**
7777
7851
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
7852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
7779
7853
  */
7780
7854
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7781
7855
  /**
7782
7856
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
7857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
7784
7858
  */
7785
7859
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7786
7860
  /**
7787
7861
  * Disallow selector syntax in DOM names.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
7862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
7789
7863
  */
7790
7864
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7791
7865
  /**
7792
7866
  * Disallow shorthand properties that override related longhand properties.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
7867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
7794
7868
  */
7795
7869
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7796
7870
  /**
7797
7871
  * Disallow passing single-element arrays to `Promise` methods.
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
7872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
7799
7873
  */
7800
7874
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7801
7875
  /**
7802
7876
  * Disallow classes that only have static members.
7803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
7877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
7804
7878
  */
7805
7879
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7806
7880
  /**
7807
7881
  * Prefer comparing values directly over subtracting and comparing to `0`.
7808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
7882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
7809
7883
  */
7810
7884
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7811
7885
  /**
7812
7886
  * Disallow `then` property.
7813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
7887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
7814
7888
  */
7815
7889
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7816
7890
  /**
7817
7891
  * Disallow assigning `this` to a variable.
7818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
7892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
7819
7893
  */
7820
7894
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7821
7895
  /**
7822
7896
  * Disallow `this` outside of classes.
7823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
7897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
7824
7898
  */
7825
7899
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7826
7900
  /**
7827
7901
  * Disallow assigning to top-level variables from inside functions.
7828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
7902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
7829
7903
  */
7830
7904
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7831
7905
  /**
7832
7906
  * Disallow top-level side effects in exported modules.
7833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
7907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
7834
7908
  */
7835
7909
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7836
7910
  /**
7837
7911
  * Disallow `all` as a transition property.
7838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
7912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
7839
7913
  */
7840
7914
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7841
7915
  /**
7842
7916
  * Disallow comparing `undefined` using `typeof`.
7843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
7917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
7844
7918
  */
7845
7919
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7846
7920
  /**
7847
7921
  * Disallow referencing methods without calling them.
7848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
7922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
7849
7923
  */
7850
7924
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7851
7925
  /**
7852
7926
  * Require class members to be declared.
7853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
7927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
7854
7928
  */
7855
7929
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7856
7930
  /**
7857
7931
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7859
7933
  */
7860
7934
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7861
7935
  /**
7862
7936
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
7937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
7864
7938
  */
7865
7939
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7866
7940
  /**
7867
7941
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
7942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
7869
7943
  */
7870
7944
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7871
7945
  /**
7872
7946
  * Disallow awaiting non-promise values.
7873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
7947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
7874
7948
  */
7875
7949
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7876
7950
  /**
7877
7951
  * Disallow unnecessary comparisons against boolean literals.
7878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7879
7953
  */
7880
7954
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7881
7955
  /**
7882
7956
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
7957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
7884
7958
  */
7885
7959
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7886
7960
  /**
7887
7961
  * Disallow unnecessary `globalThis` references.
7888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
7962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
7889
7963
  */
7890
7964
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7891
7965
  /**
7892
7966
  * Disallow unnecessary nested ternary expressions.
7893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
7967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
7894
7968
  */
7895
7969
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7896
7970
  /**
7897
7971
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
7972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
7899
7973
  */
7900
7974
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7901
7975
  /**
7902
7976
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
7977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
7904
7978
  */
7905
7979
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7906
7980
  /**
7907
7981
  * Disallow `Array#splice()` when simpler alternatives exist.
7908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
7982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
7909
7983
  */
7910
7984
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7911
7985
  /**
7912
7986
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
7987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
7914
7988
  */
7915
7989
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7916
7990
  /**
7917
7991
  * Disallow unreadable array destructuring.
7918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
7992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
7919
7993
  */
7920
7994
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7921
7995
  /**
7922
7996
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
7997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
7924
7998
  */
7925
7999
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7926
8000
  /**
7927
8001
  * Disallow unreadable IIFEs.
7928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
8002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
7929
8003
  */
7930
8004
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7931
8005
  /**
7932
8006
  * Disallow unreadable `new` expressions.
7933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
8007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
7934
8008
  */
7935
8009
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7936
8010
  /**
7937
8011
  * Disallow unreadable object destructuring.
7938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
8012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
7939
8013
  */
7940
8014
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7941
8015
  /**
7942
8016
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
8017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
7944
8018
  */
7945
8019
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7946
8020
  /**
7947
8021
  * Disallow unsafe DOM HTML APIs.
7948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
8022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
7949
8023
  */
7950
8024
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7951
8025
  /**
7952
8026
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7954
8028
  */
7955
8029
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7956
8030
  /**
7957
8031
  * Disallow unsafe values as property keys.
7958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
8032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
7959
8033
  */
7960
8034
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7961
8035
  /**
7962
8036
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7964
8038
  */
7965
8039
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7966
8040
  /**
7967
8041
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
8042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
7969
8043
  */
7970
8044
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7971
8045
  /**
7972
8046
  * Disallow ignoring the return value of selected array methods.
7973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
8047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
7974
8048
  */
7975
8049
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7976
8050
  /**
7977
8051
  * Disallow unused object properties.
7978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
8052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
7979
8053
  */
7980
8054
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7981
8055
  /**
7982
8056
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
8057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
7984
8058
  */
7985
8059
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7986
8060
  /**
7987
8061
  * Disallow useless type coercions of values that are already of the target type.
7988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
8062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
7989
8063
  */
7990
8064
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7991
8065
  /**
7992
8066
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
8067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
7994
8068
  */
7995
8069
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7996
8070
  /**
7997
8071
  * Disallow useless compound assignments such as `x += 0`.
7998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
7999
8073
  */
8000
8074
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8001
8075
  /**
8002
8076
  * Disallow useless concatenation of literals.
8003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
8004
8078
  */
8005
8079
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8006
8080
  /**
8007
8081
  * Disallow useless `continue` statements.
8008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
8009
8083
  */
8010
8084
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8011
8085
  /**
8012
8086
  * Disallow unnecessary existence checks before deletion.
8013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
8014
8088
  */
8015
8089
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8016
8090
  /**
8017
8091
  * Disallow `else` after a statement that exits.
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
8019
8093
  */
8020
8094
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8021
8095
  /**
8022
8096
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8024
8098
  */
8025
8099
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8026
8100
  /**
8027
8101
  * Disallow useless fallback when spreading in object literals.
8028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
8029
8103
  */
8030
8104
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8031
8105
  /**
8032
8106
  * Disallow unnecessary `.toArray()` on iterators.
8033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
8034
8108
  */
8035
8109
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8036
8110
  /**
8037
8111
  * Disallow useless array length check.
8038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
8039
8113
  */
8040
8114
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8041
8115
  /**
8042
8116
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
8044
8118
  */
8045
8119
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8046
8120
  /**
8047
8121
  * Disallow useless overrides of class methods.
8048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
8049
8123
  */
8050
8124
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8051
8125
  /**
8052
8126
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
8054
8128
  */
8055
8129
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8056
8130
  /**
8057
8131
  * Disallow redundant re-exports.
8058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
8059
8133
  */
8060
8134
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8061
8135
  /**
8062
8136
  * Disallow simple recursive function calls that can be replaced with a loop.
8063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
8064
8138
  */
8065
8139
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8066
8140
  /**
8067
8141
  * Disallow unnecessary spread.
8068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
8069
8143
  */
8070
8144
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8071
8145
  /**
8072
8146
  * Disallow useless case in switch statements.
8073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
8074
8148
  */
8075
8149
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8076
8150
  /**
8077
8151
  * Disallow useless template literal expressions.
8078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
8079
8153
  */
8080
8154
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8081
8155
  /**
8082
8156
  * Disallow useless `undefined`.
8083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
8084
8158
  */
8085
8159
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8086
8160
  /**
8087
8161
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
8162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
8089
8163
  */
8090
8164
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8091
8165
  /**
8092
8166
  * Disallow number literals with zero fractions or dangling dots.
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
8167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
8094
8168
  */
8095
8169
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8096
8170
  /**
8097
8171
  * Enforce proper case for numeric literals.
8098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
8172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
8099
8173
  */
8100
8174
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8101
8175
  /**
8102
8176
  * Enforce the style of numeric separators by correctly grouping digits.
8103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
8177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
8104
8178
  */
8105
8179
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8106
8180
  /**
8107
8181
  * Require assignment operator shorthand where possible.
8108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
8182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
8109
8183
  */
8110
8184
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8111
8185
  /**
8112
8186
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
8187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
8114
8188
  */
8115
8189
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8116
8190
  /**
8117
8191
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
8192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
8119
8193
  */
8120
8194
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8121
8195
  /**
8122
8196
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
8197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
8124
8198
  */
8125
8199
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8126
8200
  /**
8127
8201
  * Prefer an options object over a boolean in `.addEventListener()`.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
8202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
8129
8203
  */
8130
8204
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8131
8205
  /**
8132
8206
  * Prefer `AggregateError` when throwing collected errors.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
8207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
8134
8208
  */
8135
8209
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8136
8210
  /**
8137
8211
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
8212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
8139
8213
  */
8140
8214
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8141
8215
  /**
8142
8216
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
8217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
8144
8218
  */
8145
8219
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8146
8220
  /**
8147
8221
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
8222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
8149
8223
  */
8150
8224
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8151
8225
  /**
8152
8226
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
8227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
8154
8228
  */
8155
8229
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8156
8230
  /**
8157
8231
  * Prefer using the `Array.from()` mapping function argument.
8158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
8232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
8159
8233
  */
8160
8234
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8161
8235
  /**
8162
8236
  * Prefer `Array.from({length}, …)` when creating range arrays.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
8237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
8164
8238
  */
8165
8239
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8166
8240
  /**
8167
8241
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
8242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
8169
8243
  */
8170
8244
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8171
8245
  /**
8172
8246
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
8247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
8174
8248
  */
8175
8249
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8176
8250
  /**
8177
8251
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
8252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
8179
8253
  */
8180
8254
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8181
8255
  /**
8182
8256
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
8257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
8184
8258
  */
8185
8259
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8186
8260
  /**
8187
8261
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
8262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
8189
8263
  */
8190
8264
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8191
8265
  /**
8192
8266
  * Prefer `.at()` method for index access and `String#charAt()`.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
8267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
8194
8268
  */
8195
8269
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8196
8270
  /**
8197
8271
  * Prefer `await` over promise chaining.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
8272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
8199
8273
  */
8200
8274
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8201
8275
  /**
8202
8276
  * Prefer `BigInt` literals over the constructor.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
8277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
8204
8278
  */
8205
8279
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8206
8280
  /**
8207
8281
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
8282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
8209
8283
  */
8210
8284
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8211
8285
  /**
8212
8286
  * Prefer block statements over IIFEs used only for scoping.
8213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
8287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
8214
8288
  */
8215
8289
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8216
8290
  /**
8217
8291
  * Prefer directly returning boolean expressions over `if` statements.
8218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
8292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
8219
8293
  */
8220
8294
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8221
8295
  /**
8222
8296
  * Prefer class field declarations over `this` assignments in constructors.
8223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
8297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
8224
8298
  */
8225
8299
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8226
8300
  /**
8227
8301
  * Prefer using `Element#classList.toggle()` to toggle class names.
8228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
8302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
8229
8303
  */
8230
8304
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8231
8305
  /**
8232
8306
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
8307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
8234
8308
  */
8235
8309
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8236
8310
  /**
8237
8311
  * Prefer early continues over whole-loop conditional wrapping.
8238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
8312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
8239
8313
  */
8240
8314
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8241
8315
  /**
8242
8316
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
8317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
8244
8318
  */
8245
8319
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8246
8320
  /**
8247
8321
  * Prefer default parameters over reassignment.
8248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
8322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
8249
8323
  */
8250
8324
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8251
8325
  /**
8252
8326
  * Prefer direct iteration over default iterator method calls.
8253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
8327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
8254
8328
  */
8255
8329
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8256
8330
  /**
8257
8331
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
8332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
8259
8333
  */
8260
8334
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8261
8335
  /**
8262
8336
  * Prefer `Element#append()` over `Node#appendChild()`.
8263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
8337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
8264
8338
  */
8265
8339
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8266
8340
  /**
8267
8341
  * Renamed to `unicorn/dom-node-dataset`.
8268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8269
8343
  * @deprecated
8270
8344
  */
8271
8345
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8272
8346
  /**
8273
8347
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
8275
8349
  */
8276
8350
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8277
8351
  /**
8278
8352
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
8280
8354
  */
8281
8355
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8282
8356
  /**
8283
8357
  * Prefer `.replaceChildren()` when emptying DOM children.
8284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
8285
8359
  */
8286
8360
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8287
8361
  /**
8288
8362
  * Prefer `.textContent` over `.innerText`.
8289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
8290
8364
  */
8291
8365
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8292
8366
  /**
8293
8367
  * Prefer early returns over full-function conditional wrapping.
8294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
8295
8369
  */
8296
8370
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8297
8371
  /**
8298
8372
  * Prefer `else if` over adjacent `if` statements with related conditions.
8299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
8300
8374
  */
8301
8375
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8302
8376
  /**
8303
8377
  * Prefer `Error.isError()` when checking for errors.
8304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
8305
8379
  */
8306
8380
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8307
8381
  /**
8308
8382
  * Prefer `EventTarget` over `EventEmitter`.
8309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
8310
8384
  */
8311
8385
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8312
8386
  /**
8313
8387
  * Prefer explicit viewport units.
8314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
8315
8389
  */
8316
8390
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8317
8391
  /**
8318
8392
  * Prefer `export…from` when re-exporting.
8319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
8320
8394
  */
8321
8395
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8322
8396
  /**
8323
8397
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
8325
8399
  */
8326
8400
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8327
8401
  /**
8328
8402
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
8330
8404
  */
8331
8405
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8332
8406
  /**
8333
8407
  * Prefer global numeric constants over `Number` static properties.
8334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
8335
8409
  */
8336
8410
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8337
8411
  /**
8338
8412
  * Prefer `globalThis` over `window`, `self`, and `global`.
8339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
8340
8414
  */
8341
8415
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8342
8416
  /**
8343
8417
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
8345
8419
  */
8346
8420
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8347
8421
  /**
8348
8422
  * Prefer `.has()` when checking existence.
8349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
8350
8424
  */
8351
8425
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8352
8426
  /**
8353
8427
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
8355
8429
  */
8356
8430
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8357
8431
  /**
8358
8432
  * Prefer HTTPS over HTTP.
8359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
8360
8434
  */
8361
8435
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8362
8436
  /**
8363
8437
  * Prefer identifiers over string literals in import and export specifiers.
8364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8365
8439
  */
8366
8440
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8367
8441
  /**
8368
8442
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
8370
8444
  */
8371
8445
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8372
8446
  /**
8373
8447
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
8375
8449
  */
8376
8450
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8377
8451
  /**
8378
8452
  * Prefer `.includes()` over repeated equality comparisons.
8379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8380
8454
  */
8381
8455
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8382
8456
  /**
8383
8457
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
8385
8459
  */
8386
8460
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8387
8461
  /**
8388
8462
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
8390
8464
  */
8391
8465
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8392
8466
  /**
8393
8467
  * Prefer iterator helpers over temporary arrays from iterators.
8394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
8395
8469
  */
8396
8470
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8397
8471
  /**
8398
8472
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
8400
8474
  */
8401
8475
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8402
8476
  /**
8403
8477
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8405
8479
  */
8406
8480
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8407
8481
  /**
8408
8482
  * Renamed to `unicorn/consistent-json-file-read`.
8409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8410
8484
  * @deprecated
8411
8485
  */
8412
8486
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8413
8487
  /**
8414
8488
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
8416
8490
  */
8417
8491
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8418
8492
  /**
8419
8493
  * Prefer `location.assign()` over assigning to `location.href`.
8420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
8421
8495
  */
8422
8496
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8423
8497
  /**
8424
8498
  * Prefer using a logical operator over a ternary.
8425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8426
8500
  */
8427
8501
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8428
8502
  /**
8429
8503
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
8504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
8431
8505
  */
8432
8506
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8433
8507
  /**
8434
8508
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
8509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
8436
8510
  */
8437
8511
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8438
8512
  /**
8439
8513
  * Prefer `Math` constants over their approximate numeric values.
8440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
8514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
8441
8515
  */
8442
8516
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8443
8517
  /**
8444
8518
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
8519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
8446
8520
  */
8447
8521
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8448
8522
  /**
8449
8523
  * Prefer `Math.trunc()` for truncating numbers.
8450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
8524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
8451
8525
  */
8452
8526
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8453
8527
  /**
8454
8528
  * Prefer moving ternaries into the minimal varying part of an expression.
8455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
8529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
8456
8530
  */
8457
8531
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8458
8532
  /**
8459
8533
  * Prefer modern DOM APIs.
8460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
8534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
8461
8535
  */
8462
8536
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8463
8537
  /**
8464
8538
  * Prefer modern `Math` APIs over legacy patterns.
8465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
8539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
8466
8540
  */
8467
8541
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8468
8542
  /**
8469
8543
  * Prefer JavaScript modules (ESM) over CommonJS.
8470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
8544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
8471
8545
  */
8472
8546
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8473
8547
  /**
8474
8548
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
8549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
8476
8550
  */
8477
8551
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8478
8552
  /**
8479
8553
  * Prefer negative index over `.length - index` when possible.
8480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
8554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
8481
8555
  */
8482
8556
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8483
8557
  /**
8484
8558
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
8486
8560
  */
8487
8561
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8488
8562
  /**
8489
8563
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
8564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
8491
8565
  */
8492
8566
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8493
8567
  /**
8494
8568
  * Prefer `Number.isSafeInteger()` over integer checks.
8495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
8569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
8496
8570
  */
8497
8571
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8498
8572
  /**
8499
8573
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
8574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
8501
8575
  */
8502
8576
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8503
8577
  /**
8504
8578
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
8506
8580
  */
8507
8581
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8508
8582
  /**
8509
8583
  * Prefer object destructuring defaults over default object literals with spread.
8510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
8511
8585
  */
8512
8586
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8513
8587
  /**
8514
8588
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
8589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
8516
8590
  */
8517
8591
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8518
8592
  /**
8519
8593
  * Prefer the most specific `Object` iterable method.
8520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
8594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
8521
8595
  */
8522
8596
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8523
8597
  /**
8524
8598
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
8599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
8526
8600
  */
8527
8601
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8528
8602
  /**
8529
8603
  * Prefer omitting the `catch` binding parameter.
8530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
8604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
8531
8605
  */
8532
8606
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8533
8607
  /**
8534
8608
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
8609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
8536
8610
  */
8537
8611
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8538
8612
  /**
8539
8613
  * Prefer private class fields over the underscore-prefix convention.
8540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
8614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
8541
8615
  */
8542
8616
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8543
8617
  /**
8544
8618
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
8619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
8546
8620
  */
8547
8621
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8548
8622
  /**
8549
8623
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
8624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
8551
8625
  */
8552
8626
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8553
8627
  /**
8554
8628
  * Prefer borrowing methods from the prototype instead of the instance.
8555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
8629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
8556
8630
  */
8557
8631
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8558
8632
  /**
8559
8633
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
8634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
8561
8635
  */
8562
8636
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8563
8637
  /**
8564
8638
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
8639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
8566
8640
  */
8567
8641
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8568
8642
  /**
8569
8643
  * Prefer `Reflect.apply()` over `Function#apply()`.
8570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
8644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
8571
8645
  */
8572
8646
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8573
8647
  /**
8574
8648
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
8649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
8576
8650
  */
8577
8651
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8578
8652
  /**
8579
8653
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
8654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
8581
8655
  */
8582
8656
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8583
8657
  /**
8584
8658
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
8659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
8586
8660
  */
8587
8661
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8588
8662
  /**
8589
8663
  * Prefer `:scope` when using element query selector methods.
8590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
8664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
8591
8665
  */
8592
8666
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8593
8667
  /**
8594
8668
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
8669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
8596
8670
  */
8597
8671
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8598
8672
  /**
8599
8673
  * Prefer `Set` methods for Set operations.
8600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
8674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
8601
8675
  */
8602
8676
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8603
8677
  /**
8604
8678
  * Prefer using `Set#size` instead of `Array#length`.
8605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
8679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
8606
8680
  */
8607
8681
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8608
8682
  /**
8609
8683
  * Prefer arrow function properties over methods with a single return.
8610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
8684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
8611
8685
  */
8612
8686
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8613
8687
  /**
8614
8688
  * Prefer simple conditions first in logical expressions.
8615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
8689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
8616
8690
  */
8617
8691
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8618
8692
  /**
8619
8693
  * Prefer a simple comparison function for `Array#sort()`.
8620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
8694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
8621
8695
  */
8622
8696
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8623
8697
  /**
8624
8698
  * Prefer simplified conditions.
8625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
8699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
8626
8700
  */
8627
8701
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8628
8702
  /**
8629
8703
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
8704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
8631
8705
  */
8632
8706
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8633
8707
  /**
8634
8708
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
8709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
8636
8710
  */
8637
8711
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8638
8712
  /**
8639
8713
  * Prefer a single object destructuring declaration per local const source.
8640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
8714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
8641
8715
  */
8642
8716
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8643
8717
  /**
8644
8718
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
8719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
8646
8720
  */
8647
8721
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8648
8722
  /**
8649
8723
  * Prefer declaring variables in the smallest possible scope.
8650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
8724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
8651
8725
  */
8652
8726
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8653
8727
  /**
8654
8728
  * Prefer `String#split()` with a limit.
8655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
8729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
8656
8730
  */
8657
8731
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8658
8732
  /**
8659
8733
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
8734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
8661
8735
  */
8662
8736
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8663
8737
  /**
8664
8738
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
8739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
8666
8740
  */
8667
8741
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8668
8742
  /**
8669
8743
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
8744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
8671
8745
  */
8672
8746
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8673
8747
  /**
8674
8748
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
8749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
8676
8750
  */
8677
8751
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8678
8752
  /**
8679
8753
  * Prefer `String#repeat()` for repeated whitespace.
8680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
8754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
8681
8755
  */
8682
8756
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8683
8757
  /**
8684
8758
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
8759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
8686
8760
  */
8687
8761
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8688
8762
  /**
8689
8763
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
8764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
8691
8765
  */
8692
8766
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8693
8767
  /**
8694
8768
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
8769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
8696
8770
  */
8697
8771
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8698
8772
  /**
8699
8773
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
8774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
8701
8775
  */
8702
8776
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8703
8777
  /**
8704
8778
  * Prefer using `structuredClone` to create a deep clone.
8705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
8779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
8706
8780
  */
8707
8781
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8708
8782
  /**
8709
8783
  * Prefer `switch` over multiple `else-if`.
8710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
8784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
8711
8785
  */
8712
8786
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8713
8787
  /**
8714
8788
  * Prefer `Temporal` over `Date`.
8715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
8789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
8716
8790
  */
8717
8791
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8718
8792
  /**
8719
8793
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
8794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
8721
8795
  */
8722
8796
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8723
8797
  /**
8724
8798
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
8799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
8726
8800
  */
8727
8801
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8728
8802
  /**
8729
8803
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
8804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
8731
8805
  */
8732
8806
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8733
8807
  /**
8734
8808
  * Prefer top-level await over top-level promises and async function calls.
8735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
8809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
8736
8810
  */
8737
8811
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8738
8812
  /**
8739
8813
  * Enforce throwing `TypeError` in type checking conditions.
8740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
8814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
8741
8815
  */
8742
8816
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8743
8817
  /**
8744
8818
  * Require type literals to be last in union types.
8745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
8819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
8746
8820
  */
8747
8821
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8748
8822
  /**
8749
8823
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
8824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
8751
8825
  */
8752
8826
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8753
8827
  /**
8754
8828
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
8829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
8756
8830
  */
8757
8831
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8758
8832
  /**
8759
8833
  * Prefer Unicode code point escapes over legacy escape sequences.
8760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8761
8835
  */
8762
8836
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8763
8837
  /**
8764
8838
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
8839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
8766
8840
  */
8767
8841
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8768
8842
  /**
8769
8843
  * Prefer `URL#href` over stringifying a `URL`.
8770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
8844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
8771
8845
  */
8772
8846
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8773
8847
  /**
8774
8848
  * Prefer `URLSearchParams` over manually splitting query strings.
8775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
8849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
8776
8850
  */
8777
8851
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8778
8852
  /**
8779
8853
  * Prefer putting the condition in the while statement.
8780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
8854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
8781
8855
  */
8782
8856
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8783
8857
  /**
8784
8858
  * Renamed to `unicorn/name-replacements`.
8785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8786
8860
  * @deprecated
8787
8861
  */
8788
8862
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8789
8863
  /**
8790
8864
  * Enforce consistent relative URL style.
8791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
8865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
8792
8866
  */
8793
8867
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8794
8868
  /**
8795
8869
  * Enforce using the separator argument with `Array#join()`.
8796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
8870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
8797
8871
  */
8798
8872
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8799
8873
  /**
8800
8874
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
8875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
8802
8876
  */
8803
8877
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8804
8878
  /**
8805
8879
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
8880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
8807
8881
  */
8808
8882
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8809
8883
  /**
8810
8884
  * Require configured YAML frontmatter fields.
8811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
8885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
8812
8886
  */
8813
8887
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8814
8888
  /**
8815
8889
  * Require non-empty module attributes for imports and exports
8816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
8890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
8817
8891
  */
8818
8892
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8819
8893
  /**
8820
8894
  * Require non-empty specifier list in import and export statements.
8821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
8895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
8822
8896
  */
8823
8897
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8824
8898
  /**
8825
8899
  * Enforce using the digits argument with `Number#toFixed()`.
8826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8827
8901
  */
8828
8902
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8829
8903
  /**
8830
8904
  * Require passive event listeners for high-frequency events.
8831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
8905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
8832
8906
  */
8833
8907
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8834
8908
  /**
8835
8909
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
8910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
8837
8911
  */
8838
8912
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8839
8913
  /**
8840
8914
  * Require boolean-returning Proxy traps to return booleans.
8841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
8915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
8842
8916
  */
8843
8917
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8844
8918
  /**
8845
8919
  * Enforce a consistent style for single-line block comments.
8846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
8920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
8847
8921
  */
8848
8922
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8849
8923
  /**
8850
8924
  * Enforce better string content.
8851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
8925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
8852
8926
  */
8853
8927
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8854
8928
  /**
8855
8929
  * Enforce consistent brace style for `case` clauses.
8856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
8930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
8857
8931
  */
8858
8932
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8859
8933
  /**
8860
8934
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
8935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
8862
8936
  */
8863
8937
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8864
8938
  /**
8865
8939
  * Fix whitespace-insensitive template indentation.
8866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
8940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
8867
8941
  */
8868
8942
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8869
8943
  /**
8870
8944
  * Enforce consistent case for text encoding identifiers.
8871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
8945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
8872
8946
  */
8873
8947
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8874
8948
  /**
8875
8949
  * Require `new` when creating an error.
8876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
8950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
8877
8951
  */
8878
8952
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8879
8953
  /**
8880
8954
  * Limit the complexity of `try` blocks.
8881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
8955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
8882
8956
  */
8883
8957
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8884
8958
  /**
@@ -10630,6 +10704,10 @@ type AngularNoInputRename = [] | [{
10630
10704
  type AngularPipePrefix = [] | [{
10631
10705
  prefixes?: string[];
10632
10706
  }];
10707
+ // ----- angular/prefer-on-push-component-change-detection -----
10708
+ type AngularPreferOnPushComponentChangeDetection = [] | [{
10709
+ allowExplicitOnPush?: boolean;
10710
+ }];
10633
10711
  // ----- angular/prefer-signals -----
10634
10712
  type AngularPreferSignals = [] | [{
10635
10713
  preferReadonlySignalProperties?: boolean;
@@ -11252,12 +11330,16 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
11252
11330
  // ----- jsdoc/check-param-names -----
11253
11331
  type JsdocCheckParamNames = [] | [{
11254
11332
  allowExtraTrailingParamDocs?: boolean;
11333
+ badParamNames?: boolean;
11334
+ badParamOrder?: boolean;
11255
11335
  checkDestructured?: boolean;
11256
11336
  checkRestProperty?: boolean;
11257
11337
  checkTypesPattern?: string;
11258
11338
  disableExtraPropertyReporting?: boolean;
11259
11339
  disableMissingParamChecks?: boolean;
11340
+ duplicateParams?: boolean;
11260
11341
  enableFixer?: boolean;
11342
+ extraParams?: boolean;
11261
11343
  useDefaultObjectProperties?: boolean;
11262
11344
  }];
11263
11345
  // ----- jsdoc/check-property-names -----
@@ -11438,6 +11520,13 @@ type JsdocNoUndefinedTypes = [] | [{
11438
11520
  disableReporting?: boolean;
11439
11521
  markVariablesAsUsed?: boolean;
11440
11522
  }];
11523
+ // ----- jsdoc/no-unnecessary-type-assertion -----
11524
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
11525
+ checkLiteralConstAssertions?: boolean;
11526
+ enableFixer?: boolean;
11527
+ treatAnyAsRedundant?: boolean;
11528
+ typesToIgnore?: string[];
11529
+ }];
11441
11530
  // ----- jsdoc/normalize-see-links -----
11442
11531
  type JsdocNormalizeSeeLinks = [] | [{
11443
11532
  canonicalForm?: ("pipe" | "prefix");
@@ -13149,6 +13238,10 @@ type NoUnderscoreDangle = [] | [{
13149
13238
  allowInArrayDestructuring?: boolean;
13150
13239
  allowInObjectDestructuring?: boolean;
13151
13240
  }];
13241
+ // ----- no-unmodified-loop-condition -----
13242
+ type NoUnmodifiedLoopCondition = [] | [{
13243
+ checkConditionalExpressions?: boolean;
13244
+ }];
13152
13245
  // ----- no-unneeded-ternary -----
13153
13246
  type NoUnneededTernary = [] | [{
13154
13247
  defaultAssignment?: boolean;
@@ -14795,10 +14888,6 @@ type PerfectionistSortImports = {
14795
14888
  sortBy?: ("specifier" | "path");
14796
14889
  })[];
14797
14890
  newlinesBetween?: ("ignore" | number);
14798
- tsconfig?: {
14799
- rootDir: string;
14800
- filename?: string;
14801
- };
14802
14891
  maxLineLength?: number;
14803
14892
  sortSideEffects?: boolean;
14804
14893
  environment?: ("node" | "bun");
@@ -14833,6 +14922,10 @@ type PerfectionistSortImports = {
14833
14922
  pattern: string;
14834
14923
  flags?: string;
14835
14924
  } | string));
14925
+ tsconfig?: {
14926
+ rootDir: string;
14927
+ filename?: string;
14928
+ };
14836
14929
  }[];
14837
14930
  // ----- perfectionist/sort-interfaces -----
14838
14931
  type PerfectionistSortInterfaces = {
@@ -15417,6 +15510,7 @@ type PerfectionistSortModules = [] | [{
15417
15510
  order?: ("asc" | "desc");
15418
15511
  })[];
15419
15512
  newlinesBetween?: ("ignore" | number);
15513
+ additionalModuleBlockTypes?: string[];
15420
15514
  useExperimentalDependencyDetection?: boolean;
15421
15515
  newlinesBetweenOverloadSignatures?: ("ignore" | number);
15422
15516
  partitionByComment?: (boolean | (({
@@ -15442,6 +15536,10 @@ type PerfectionistSortModules = [] | [{
15442
15536
  } | string)));
15443
15537
  });
15444
15538
  partitionByNewLine?: boolean;
15539
+ tsconfig?: {
15540
+ rootDir: string;
15541
+ filename?: string;
15542
+ };
15445
15543
  }];
15446
15544
  // ----- perfectionist/sort-named-exports -----
15447
15545
  type PerfectionistSortNamedExports = {
@@ -15970,6 +16068,13 @@ type PerfectionistSortObjects = {
15970
16068
  partitionByComputedKey?: boolean;
15971
16069
  styledComponents?: boolean;
15972
16070
  useExperimentalDependencyDetection?: boolean;
16071
+ ignoreCallbackDependenciesPatterns?: (({
16072
+ pattern: string;
16073
+ flags?: string;
16074
+ } | string)[] | ({
16075
+ pattern: string;
16076
+ flags?: string;
16077
+ } | string));
15973
16078
  partitionByComment?: (boolean | (({
15974
16079
  pattern: string;
15975
16080
  flags?: string;
@@ -16305,6 +16410,13 @@ type PerfectionistSortVariableDeclarations = {
16305
16410
  matchesAstSelector?: string;
16306
16411
  };
16307
16412
  useExperimentalDependencyDetection?: boolean;
16413
+ ignoreCallbackDependenciesPatterns?: (({
16414
+ pattern: string;
16415
+ flags?: string;
16416
+ } | string)[] | ({
16417
+ pattern: string;
16418
+ flags?: string;
16419
+ } | string));
16308
16420
  partitionByComment?: (boolean | (({
16309
16421
  pattern: string;
16310
16422
  flags?: string;
@@ -16648,7 +16760,6 @@ type SolidEventHandlers = [] | [{
16648
16760
  // ----- solid/jsx-no-duplicate-props -----
16649
16761
  type SolidJsxNoDuplicateProps = [] | [{
16650
16762
  ignoreCase?: boolean;
16651
- [k: string]: unknown | undefined;
16652
16763
  }];
16653
16764
  // ----- solid/jsx-no-undef -----
16654
16765
  type SolidJsxNoUndef = [] | [{
@@ -16682,6 +16793,10 @@ type SolidStyleProp = [] | [{
16682
16793
  styleProps?: [string, ...(string)[]];
16683
16794
  allowString?: boolean;
16684
16795
  }];
16796
+ // ----- solid/valid-use-server -----
16797
+ type SolidValidUseServer = [] | [{
16798
+ clientWrappers?: string[];
16799
+ }];
16685
16800
  // ----- sort-imports -----
16686
16801
  type SortImports = [] | [{
16687
16802
  ignoreCase?: boolean;
@@ -19056,7 +19171,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
19056
19171
  }];
19057
19172
  // ----- ts/no-misused-promises -----
19058
19173
  type TsNoMisusedPromises = [] | [{
19059
- checksConditionals?: boolean;
19174
+ checksConditionals?: (boolean | {
19175
+ flagUnions?: ("all" | "strict" | "none");
19176
+ });
19060
19177
  checksSpreads?: boolean;
19061
19178
  checksVoidReturn?: (boolean | {
19062
19179
  arguments?: boolean;
@@ -21545,7 +21662,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
21545
21662
  onlyEquality?: boolean;
21546
21663
  }];
21547
21664
  // Names of all the configs
21548
- type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/unicorn/setup' | 'config/unicorn/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss/rules' | 'config/astro/setup' | 'config/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables/code' | 'config/formatters/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
21665
+ type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/unicorn/setup' | 'config/unicorn/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss/rules' | 'config/astro/setup' | 'config/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-stylistic' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables/code' | 'config/formatter/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
21549
21666
  //#endregion
21550
21667
  //#region src/vender/prettier-types.d.ts
21551
21668
  /**
@@ -21619,7 +21736,7 @@ interface VendoredPrettierOptionsRequired {
21619
21736
  /**
21620
21737
  * Provide ability to support new languages to prettier.
21621
21738
  */
21622
- plugins: Array<string | any>;
21739
+ plugins: Array<string | Record<string, unknown>>;
21623
21740
  /**
21624
21741
  * How to handle whitespaces in HTML.
21625
21742
  * @default "css"
@@ -21905,7 +22022,7 @@ interface OptionsRegExp {
21905
22022
  interface OptionsIsInEditor {
21906
22023
  isInEditor?: boolean;
21907
22024
  }
21908
- interface OptionsPnpm extends OptionsIsInEditor {
22025
+ interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
21909
22026
  /**
21910
22027
  * Requires catalogs usage
21911
22028
  *
@@ -22261,7 +22378,7 @@ declare function disables(): Promise<TypedFlatConfigItem[]>;
22261
22378
  declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
22262
22379
  //#endregion
22263
22380
  //#region src/configs/formatters.d.ts
22264
- declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
22381
+ declare function formatters(rawOptions?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
22265
22382
  //#endregion
22266
22383
  //#region src/configs/ignores.d.ts
22267
22384
  declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;