@antfu/eslint-config 9.0.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -262,12 +262,6 @@ interface RuleOptions {
262
262
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-attribute-decorator.md
263
263
  */
264
264
  'angular/no-attribute-decorator'?: Linter.RuleEntry<[]>;
265
- /**
266
- * Ensures that directives do not implement conflicting lifecycle interfaces.
267
- * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-conflicting-lifecycle.md
268
- * @deprecated
269
- */
270
- 'angular/no-conflicting-lifecycle'?: Linter.RuleEntry<[]>;
271
265
  /**
272
266
  * Disallow using code which is marked as developer preview
273
267
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-developer-preview.md
@@ -369,7 +363,7 @@ interface RuleOptions {
369
363
  */
370
364
  'angular/prefer-inject'?: Linter.RuleEntry<[]>;
371
365
  /**
372
- * Ensures component's `changeDetection` is set to `ChangeDetectionStrategy.OnPush`
366
+ * Ensures components do not opt out of the default `ChangeDetectionStrategy.OnPush` change detection strategy
373
367
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md
374
368
  */
375
369
  'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<[]>;
@@ -945,10 +939,18 @@ interface RuleOptions {
945
939
  * Disallow dependencies in favor of more performant or secure alternatives
946
940
  */
947
941
  'e18e/ban-dependencies'?: Linter.RuleEntry<E18EBanDependencies>;
942
+ /**
943
+ * Disallow `delete` on properties — V8 deoptimizes the object to dictionary mode
944
+ */
945
+ 'e18e/no-delete-property'?: Linter.RuleEntry<[]>;
948
946
  /**
949
947
  * Prefer optimized alternatives to `indexOf()` equality checks
950
948
  */
951
949
  'e18e/no-indexof-equality'?: Linter.RuleEntry<[]>;
950
+ /**
951
+ * Disallow spreading the accumulator inside a `reduce` callback (O(N²) growth)
952
+ */
953
+ 'e18e/no-spread-in-reduce'?: Linter.RuleEntry<[]>;
952
954
  /**
953
955
  * Prefer Array.prototype.at() over length-based indexing
954
956
  */
@@ -962,7 +964,7 @@ interface RuleOptions {
962
964
  */
963
965
  'e18e/prefer-array-from-map'?: Linter.RuleEntry<[]>;
964
966
  /**
965
- * Prefer Array.some() over Array.find() when checking for element existence
967
+ * Prefer Array.some() over Array.find() and Array.filter().length checks when checking for element existence
966
968
  */
967
969
  'e18e/prefer-array-some'?: Linter.RuleEntry<[]>;
968
970
  /**
@@ -985,10 +987,22 @@ interface RuleOptions {
985
987
  * Prefer the exponentiation operator ** over Math.pow()
986
988
  */
987
989
  'e18e/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
990
+ /**
991
+ * Prefer Array.prototype.flatMap() over .map(fn).flat() to avoid the intermediate array
992
+ */
993
+ 'e18e/prefer-flatmap-over-map-flat'?: Linter.RuleEntry<[]>;
994
+ /**
995
+ * Prefer `Map.prototype.getOrInsert()` over reading an entry with a default and writing it back
996
+ */
997
+ 'e18e/prefer-get-or-insert'?: Linter.RuleEntry<[]>;
988
998
  /**
989
999
  * Prefer .includes() over indexOf() comparisons for arrays and strings
990
1000
  */
991
1001
  'e18e/prefer-includes'?: Linter.RuleEntry<[]>;
1002
+ /**
1003
+ * Prefer String.prototype.{includes,startsWith,endsWith} over equivalent regex.test() calls
1004
+ */
1005
+ 'e18e/prefer-includes-over-regex-test'?: Linter.RuleEntry<[]>;
992
1006
  /**
993
1007
  * Prefer inline equality checks over temporary object creation for simple comparisons
994
1008
  */
@@ -1009,10 +1023,18 @@ interface RuleOptions {
1009
1023
  * Prefer spread syntax over Array.concat(), Array.from(), Object.assign({}, ...), and Function.apply()
1010
1024
  */
1011
1025
  'e18e/prefer-spread-syntax'?: Linter.RuleEntry<[]>;
1026
+ /**
1027
+ * Prefer hoisting an `Intl.Collator` instance over calling localeCompare in a sort callback
1028
+ */
1029
+ 'e18e/prefer-static-collator'?: Linter.RuleEntry<[]>;
1012
1030
  /**
1013
1031
  * Prefer defining regular expressions at module scope to avoid re-compilation on every function call
1014
1032
  */
1015
1033
  'e18e/prefer-static-regex'?: Linter.RuleEntry<[]>;
1034
+ /**
1035
+ * Prefer String.fromCharCode() over String.fromCodePoint() for code points below 0x10000
1036
+ */
1037
+ 'e18e/prefer-string-fromcharcode'?: Linter.RuleEntry<[]>;
1016
1038
  /**
1017
1039
  * Prefer passing function and arguments directly to setTimeout/setInterval instead of wrapping in an arrow function or using bind
1018
1040
  */
@@ -3845,46 +3867,46 @@ interface RuleOptions {
3845
3867
  'react/immutability'?: Linter.RuleEntry<[]>;
3846
3868
  /**
3847
3869
  * Disallows passing 'children' as a prop.
3848
- * @see https://eslint-react.xyz/docs/rules/no-children-prop
3870
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-children-prop
3849
3871
  */
3850
3872
  'react/jsx-no-children-prop'?: Linter.RuleEntry<[]>;
3851
3873
  /**
3852
3874
  * Disallows passing 'children' as a prop when children are also passed as nested content.
3853
- * @see https://eslint-react.xyz/docs/rules/no-children-prop-with-children
3875
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-children-prop-with-children
3854
3876
  */
3855
3877
  'react/jsx-no-children-prop-with-children'?: Linter.RuleEntry<[]>;
3856
3878
  /**
3857
3879
  * Prevents comment strings from being accidentally inserted into a JSX element's text nodes.
3858
- * @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
3880
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
3859
3881
  */
3860
3882
  'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
3861
3883
  /**
3862
3884
  * Prevent patterns that cause deoptimization when using the automatic JSX runtime.
3863
- * @see https://eslint-react.xyz/docs/rules/no-key-after-spread
3885
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-key-after-spread
3864
3886
  */
3865
3887
  'react/jsx-no-key-after-spread'?: Linter.RuleEntry<[]>;
3866
3888
  /**
3867
3889
  * Catches `$` before `{expr}` in JSX — typically from template literal `${expr}` being copy-pasted into JSX without removing the `$`. The `$` "leaks" into the rendered output.
3868
- * @see https://eslint-react.xyz/docs/rules/no-leaked-dollar
3890
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-leaked-dollar
3869
3891
  */
3870
3892
  'react/jsx-no-leaked-dollar'?: Linter.RuleEntry<[]>;
3871
3893
  /**
3872
3894
  * Catches `;` at the start of JSX text nodes — typically from accidentally placing a statement-ending `;` inside JSX. The `;` "leaks" into the rendered output.
3873
- * @see https://eslint-react.xyz/docs/rules/no-leaked-semicolon
3895
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-leaked-semicolon
3874
3896
  */
3875
3897
  'react/jsx-no-leaked-semicolon'?: Linter.RuleEntry<[]>;
3876
3898
  /**
3877
3899
  * Disallow JSX namespace syntax, as React does not support them.
3878
- * @see https://eslint-react.xyz/docs/rules/no-namespace
3900
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-namespace
3879
3901
  */
3880
3902
  'react/jsx-no-namespace'?: Linter.RuleEntry<[]>;
3881
3903
  /**
3882
3904
  * Disallows useless fragment elements.
3883
- * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3905
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-useless-fragment
3884
3906
  */
3885
3907
  'react/jsx-no-useless-fragment'?: Linter.RuleEntry<ReactJsxNoUselessFragment>;
3886
3908
  /**
3887
- * Enforces the context name to be a valid component name with the suffix 'Context'.
3909
+ * Enforces identifier names assigned from `createContext` calls to be a valid component name with the suffix `Context`.
3888
3910
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3889
3911
  */
3890
3912
  'react/naming-convention-context-name'?: Linter.RuleEntry<[]>;
@@ -3964,7 +3986,7 @@ interface RuleOptions {
3964
3986
  */
3965
3987
  'react/no-context-provider'?: Linter.RuleEntry<[]>;
3966
3988
  /**
3967
- * Disallows 'createRef' in function components.
3989
+ * Disallows 'createRef' in function components and Hooks.
3968
3990
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3969
3991
  */
3970
3992
  'react/no-create-ref'?: Linter.RuleEntry<[]>;
@@ -4088,6 +4110,11 @@ interface RuleOptions {
4088
4110
  * @see https://eslint-react.xyz/docs/rules/no-unused-props
4089
4111
  */
4090
4112
  'react/no-unused-props'?: Linter.RuleEntry<[]>;
4113
+ /**
4114
+ * Warns about state variables that are defined but never used.
4115
+ * @see https://eslint-react.xyz/docs/rules/no-unused-state
4116
+ */
4117
+ 'react/no-unused-state'?: Linter.RuleEntry<[]>;
4091
4118
  /**
4092
4119
  * Replaces usage of 'useContext' with 'use'.
4093
4120
  * @see https://eslint-react.xyz/docs/rules/no-use-context
@@ -4105,7 +4132,7 @@ interface RuleOptions {
4105
4132
  'react/refs'?: Linter.RuleEntry<[]>;
4106
4133
  /**
4107
4134
  * Validates and transforms React Client/Server Function definitions.
4108
- * @see https://eslint-react.xyz/docs/rules/function-definition
4135
+ * @see https://eslint-react.xyz/docs/rules/rsc-function-definition
4109
4136
  */
4110
4137
  'react/rsc-function-definition'?: Linter.RuleEntry<[]>;
4111
4138
  /**
@@ -4153,6 +4180,11 @@ interface RuleOptions {
4153
4180
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-fetch
4154
4181
  */
4155
4182
  'react/web-api-no-leaked-fetch'?: Linter.RuleEntry<[]>;
4183
+ /**
4184
+ * Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'.
4185
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-intersection-observer
4186
+ */
4187
+ 'react/web-api-no-leaked-intersection-observer'?: Linter.RuleEntry<[]>;
4156
4188
  /**
4157
4189
  * Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
4158
4190
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
@@ -4254,7 +4286,7 @@ interface RuleOptions {
4254
4286
  */
4255
4287
  'react/x-no-context-provider'?: Linter.RuleEntry<[]>;
4256
4288
  /**
4257
- * Disallows 'createRef' in function components.
4289
+ * Disallows 'createRef' in function components and Hooks.
4258
4290
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
4259
4291
  */
4260
4292
  'react/x-no-create-ref'?: Linter.RuleEntry<[]>;
@@ -4378,6 +4410,11 @@ interface RuleOptions {
4378
4410
  * @see https://eslint-react.xyz/docs/rules/no-unused-props
4379
4411
  */
4380
4412
  'react/x-no-unused-props'?: Linter.RuleEntry<[]>;
4413
+ /**
4414
+ * Warns about state variables that are defined but never used.
4415
+ * @see https://eslint-react.xyz/docs/rules/no-unused-state
4416
+ */
4417
+ 'react/x-no-unused-state'?: Linter.RuleEntry<[]>;
4381
4418
  /**
4382
4419
  * Replaces usage of 'useContext' with 'use'.
4383
4420
  * @see https://eslint-react.xyz/docs/rules/no-use-context
@@ -5716,6 +5753,11 @@ interface RuleOptions {
5716
5753
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
5717
5754
  */
5718
5755
  'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
5756
+ /**
5757
+ * disallow `<style>` elements nested inside other elements or blocks
5758
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-nested-style-tag/
5759
+ */
5760
+ 'svelte/no-nested-style-tag'?: Linter.RuleEntry<[]>;
5719
5761
  /**
5720
5762
  * disallow use of not function in event handler
5721
5763
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
@@ -5831,6 +5873,11 @@ interface RuleOptions {
5831
5873
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
5832
5874
  */
5833
5875
  'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>;
5876
+ /**
5877
+ * disallow unnecessary `$derived.by()` when `$derived()` is sufficient
5878
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-derived-over-derived-by/
5879
+ */
5880
+ 'svelte/prefer-derived-over-derived-by'?: Linter.RuleEntry<[]>;
5834
5881
  /**
5835
5882
  * destructure values from object stores for better change tracking & fewer redraws
5836
5883
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
@@ -7174,753 +7221,1563 @@ interface RuleOptions {
7174
7221
  */
7175
7222
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7176
7223
  /**
7177
- * Improve regexes by making them shorter, consistent, and safer.
7178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
7224
+ * Prefer better DOM traversal APIs.
7225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/better-dom-traversing.md
7179
7226
  */
7180
- 'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
7227
+ 'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7228
+ /**
7229
+ * Removed. Prefer `eslint-plugin-regexp`
7230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7231
+ * @deprecated
7232
+ */
7233
+ 'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7181
7234
  /**
7182
7235
  * Enforce a specific parameter name in catch clauses.
7183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
7236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/catch-error-name.md
7184
7237
  */
7185
7238
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7239
+ /**
7240
+ * Enforce consistent class references in static methods.
7241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/class-reference-in-static-methods.md
7242
+ */
7243
+ 'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7244
+ /**
7245
+ * Enforce better comment content.
7246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/comment-content.md
7247
+ */
7248
+ 'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7186
7249
  /**
7187
7250
  * Enforce consistent assertion style with `node:assert`.
7188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
7251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-assert.md
7189
7252
  */
7190
7253
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7254
+ /**
7255
+ * Enforce consistent naming for boolean names.
7256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-boolean-name.md
7257
+ */
7258
+ 'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7259
+ /**
7260
+ * Enforce consistent class member order.
7261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-class-member-order.md
7262
+ */
7263
+ 'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7264
+ /**
7265
+ * Enforce consistent spelling of compound words in identifiers.
7266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-compound-words.md
7267
+ */
7268
+ 'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7269
+ /**
7270
+ * Enforce consistent conditional object spread style.
7271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-conditional-object-spread.md
7272
+ */
7273
+ 'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7191
7274
  /**
7192
7275
  * Prefer passing `Date` directly to the constructor when cloning.
7193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
7276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-date-clone.md
7194
7277
  */
7195
7278
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7196
7279
  /**
7197
7280
  * Use destructured variables over properties.
7198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
7281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-destructuring.md
7199
7282
  */
7200
7283
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7201
7284
  /**
7202
7285
  * Prefer consistent types when spreading a ternary in an array literal.
7203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
7286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-empty-array-spread.md
7204
7287
  */
7205
7288
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7206
7289
  /**
7207
7290
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
7291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-existence-index-check.md
7209
7292
  */
7210
7293
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7294
+ /**
7295
+ * Enforce consistent decorator position on exported classes.
7296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-export-decorator-position.md
7297
+ */
7298
+ 'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7211
7299
  /**
7212
7300
  * Move function definitions to the highest possible scope.
7213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
7301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-scoping.md
7214
7302
  */
7215
7303
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7304
+ /**
7305
+ * Enforce function syntax by role.
7306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-style.md
7307
+ */
7308
+ 'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7309
+ /**
7310
+ * Enforce consistent JSON file reads before `JSON.parse()`.
7311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-json-file-read.md
7312
+ */
7313
+ 'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7314
+ /**
7315
+ * Enforce consistent optional chaining for same-base member access.
7316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-optional-chaining.md
7317
+ */
7318
+ 'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7216
7319
  /**
7217
7320
  * Enforce consistent style for escaping `${` in template literals.
7218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
7321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-template-literal-escape.md
7219
7322
  */
7220
7323
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7221
7324
  /**
7222
7325
  * Enforce correct `Error` subclassing.
7223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
7326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/custom-error-definition.md
7224
7327
  */
7225
7328
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7329
+ /**
7330
+ * Enforce consistent default export declarations.
7331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/default-export-style.md
7332
+ */
7333
+ 'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7334
+ /**
7335
+ * Enforce consistent style for DOM element dataset access.
7336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/dom-node-dataset.md
7337
+ */
7338
+ 'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7226
7339
  /**
7227
7340
  * Enforce no spaces between braces.
7228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
7341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/empty-brace-spaces.md
7229
7342
  */
7230
7343
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7231
7344
  /**
7232
7345
  * Enforce passing a `message` value when creating a built-in error.
7233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
7346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/error-message.md
7234
7347
  */
7235
7348
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7236
7349
  /**
7237
7350
  * Require escape sequences to use uppercase or lowercase values.
7238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
7351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/escape-case.md
7239
7352
  */
7240
7353
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7241
7354
  /**
7242
7355
  * Add expiration conditions to TODO comments.
7243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
7356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/expiring-todo-comments.md
7244
7357
  */
7245
7358
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7246
7359
  /**
7247
7360
  * Enforce explicitly comparing the `length` or `size` property of a value.
7248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
7361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-length-check.md
7249
7362
  */
7250
7363
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7251
7364
  /**
7252
- * Enforce a case style for filenames.
7253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
7365
+ * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-timer-delay.md
7367
+ */
7368
+ 'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7369
+ /**
7370
+ * Enforce a case style for filenames and directory names.
7371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/filename-case.md
7254
7372
  */
7255
7373
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7374
+ /**
7375
+ * Require identifiers to match a specified regular expression.
7376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/id-match.md
7377
+ */
7378
+ 'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7256
7379
  /**
7257
7380
  * Enforce specific import styles per module.
7258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
7381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/import-style.md
7259
7382
  */
7260
7383
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7261
7384
  /**
7262
7385
  * Prevent usage of variables from outside the scope of isolated functions.
7263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
7386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/isolated-functions.md
7264
7387
  */
7265
7388
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7266
7389
  /**
7267
- * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
7390
+ * Require or disallow logical assignment operator shorthand
7391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/logical-assignment-operators.md
7392
+ */
7393
+ 'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7394
+ /**
7395
+ * Limit the depth of nested calls.
7396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/max-nested-calls.md
7397
+ */
7398
+ 'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7399
+ /**
7400
+ * Enforce replacements for variable, property, and filenames.
7401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/name-replacements.md
7402
+ */
7403
+ 'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7404
+ /**
7405
+ * Enforce correct use of `new` for builtin constructors.
7406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/new-for-builtins.md
7269
7407
  */
7270
7408
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7271
7409
  /**
7272
7410
  * Enforce specifying rules to disable in `eslint-disable` comments.
7273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
7411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-abusive-eslint-disable.md
7274
7412
  */
7275
7413
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7276
7414
  /**
7277
7415
  * Disallow recursive access to `this` within getters and setters.
7278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
7416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accessor-recursion.md
7279
7417
  */
7280
7418
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7419
+ /**
7420
+ * Disallow bitwise operators where a logical operator was likely intended.
7421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accidental-bitwise-operator.md
7422
+ */
7423
+ 'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7281
7424
  /**
7282
7425
  * Disallow anonymous functions and classes as the default export.
7283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
7426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-anonymous-default-export.md
7284
7427
  */
7285
7428
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7286
7429
  /**
7287
7430
  * Prevent passing a function reference directly to iterator methods.
7288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
7431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-callback-reference.md
7289
7432
  */
7290
- 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
7433
+ 'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7291
7434
  /**
7292
- * Prefer `for…of` over the `forEach` method.
7293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
7435
+ * Disallow array accumulation with `Array#concat()` in loops.
7436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-concat-in-loop.md
7294
7437
  */
7295
- 'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
7438
+ 'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7439
+ /**
7440
+ * Disallow using reference values as `Array#fill()` values.
7441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-fill-with-reference-type.md
7442
+ */
7443
+ 'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7444
+ /**
7445
+ * Disallow `.fill()` after `Array.from({length: …})`.
7446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-from-fill.md
7447
+ */
7448
+ 'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7449
+ /**
7450
+ * Disallow front-of-array mutation.
7451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-front-mutation.md
7452
+ */
7453
+ 'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7296
7454
  /**
7297
7455
  * Disallow using the `this` argument in array methods.
7298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
7456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-method-this-argument.md
7299
7457
  */
7300
7458
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7301
7459
  /**
7302
7460
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7304
7462
  * @deprecated
7305
7463
  */
7306
7464
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7307
7465
  /**
7308
7466
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reduce.md
7310
7468
  */
7311
7469
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7312
7470
  /**
7313
7471
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
7472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reverse.md
7315
7473
  */
7316
7474
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7317
7475
  /**
7318
7476
  * Prefer `Array#toSorted()` over `Array#sort()`.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
7477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort.md
7320
7478
  */
7321
7479
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7480
+ /**
7481
+ * Disallow sorting arrays to get the minimum or maximum value.
7482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort-for-min-max.md
7483
+ */
7484
+ 'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7485
+ /**
7486
+ * Prefer `Array#toSpliced()` over `Array#splice()`.
7487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-splice.md
7488
+ */
7489
+ 'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7490
+ /**
7491
+ * Disallow asterisk prefixes in documentation comments.
7492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7493
+ */
7494
+ 'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7322
7495
  /**
7323
7496
  * Disallow member access from await expression.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
7497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-expression-member.md
7325
7498
  */
7326
7499
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7327
7500
  /**
7328
7501
  * Disallow using `await` in `Promise` method parameters.
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
7502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-in-promise-methods.md
7330
7503
  */
7331
7504
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7505
+ /**
7506
+ * Disallow unnecessary `Blob` to `File` conversion.
7507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-blob-to-file.md
7508
+ */
7509
+ 'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7510
+ /**
7511
+ * Disallow boolean-returning sort comparators.
7512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-boolean-sort-comparator.md
7513
+ */
7514
+ 'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7515
+ /**
7516
+ * Disallow `break` and `continue` in nested loops and switches inside loops.
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-break-in-nested-loop.md
7518
+ */
7519
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7520
+ /**
7521
+ * Prefer drawing canvases directly instead of converting them to images.
7522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-canvas-to-image.md
7523
+ */
7524
+ 'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7525
+ /**
7526
+ * Disallow chained comparisons such as `a < b < c`.
7527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-chained-comparison.md
7528
+ */
7529
+ 'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7530
+ /**
7531
+ * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-collection-bracket-access.md
7533
+ */
7534
+ 'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7535
+ /**
7536
+ * Disallow dynamic object property existence checks.
7537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-computed-property-existence-check.md
7538
+ */
7539
+ 'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7540
+ /**
7541
+ * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-splice.md
7543
+ */
7544
+ 'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7545
+ /**
7546
+ * Disallow confusing uses of `Array#with()`.
7547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-with.md
7548
+ */
7549
+ 'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7332
7550
  /**
7333
7551
  * Do not use leading/trailing space between `console.log` parameters.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
7552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-console-spaces.md
7335
7553
  */
7336
7554
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7555
+ /**
7556
+ * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-constant-zero-expression.md
7558
+ */
7559
+ 'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7560
+ /**
7561
+ * Disallow declarations before conditional early exits when they are only used after the exit.
7562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-declarations-before-early-exit.md
7563
+ */
7564
+ 'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7337
7565
  /**
7338
7566
  * Do not use `document.cookie` directly.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
7567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-document-cookie.md
7340
7568
  */
7341
7569
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7570
+ /**
7571
+ * Disallow two comparisons of the same operands that can be combined into one.
7572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-double-comparison.md
7573
+ */
7574
+ 'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7575
+ /**
7576
+ * Disallow duplicate adjacent branches in if chains.
7577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-if-branches.md
7578
+ */
7579
+ 'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7580
+ /**
7581
+ * Disallow adjacent duplicate operands in logical expressions.
7582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-logical-operands.md
7583
+ */
7584
+ 'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7585
+ /**
7586
+ * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-loops.md
7588
+ */
7589
+ 'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7590
+ /**
7591
+ * Disallow duplicate values in `Set` constructor array literals.
7592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-set-values.md
7593
+ */
7594
+ 'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7342
7595
  /**
7343
7596
  * Disallow empty files.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
7597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-empty-file.md
7345
7598
  */
7346
- 'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
7599
+ 'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7600
+ /**
7601
+ * Disallow assigning to built-in error properties.
7602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-error-property-assignment.md
7603
+ */
7604
+ 'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7605
+ /**
7606
+ * Disallow exports in scripts.
7607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-exports-in-scripts.md
7608
+ */
7609
+ 'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7610
+ /**
7611
+ * Prefer `for…of` over the `forEach` method.
7612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-each.md
7613
+ */
7614
+ 'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7347
7615
  /**
7348
7616
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
7617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-loop.md
7350
7618
  */
7351
7619
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7352
7620
  /**
7353
- * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
7621
+ * Disallow assigning properties on the global object.
7622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-global-object-property-assignment.md
7623
+ */
7624
+ 'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7625
+ /**
7626
+ * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7628
+ * @deprecated
7355
7629
  */
7356
7630
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7357
7631
  /**
7358
7632
  * Disallow immediate mutation after variable assignment.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-immediate-mutation.md
7360
7634
  */
7361
7635
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7636
+ /**
7637
+ * Disallow impossible comparisons against `.length` or `.size`.
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-impossible-length-comparison.md
7639
+ */
7640
+ 'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7641
+ /**
7642
+ * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-query-selector.md
7644
+ */
7645
+ 'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7646
+ /**
7647
+ * Disallow incorrect template literal interpolation syntax.
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7649
+ */
7650
+ 'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7362
7651
  /**
7363
7652
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7365
7654
  * @deprecated
7366
7655
  */
7367
7656
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7368
7657
  /**
7369
7658
  * Disallow `instanceof` with built-in objects
7370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-instanceof-builtins.md
7371
7660
  */
7372
7661
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7662
+ /**
7663
+ * Disallow calling functions and constructors with an invalid number of arguments.
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-argument-count.md
7665
+ */
7666
+ 'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7667
+ /**
7668
+ * Disallow comparing a single character from a string to a multi-character string.
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-character-comparison.md
7670
+ */
7671
+ 'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7373
7672
  /**
7374
7673
  * Disallow invalid options in `fetch()` and `new Request()`.
7375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
7674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-fetch-options.md
7376
7675
  */
7377
7676
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7677
+ /**
7678
+ * Disallow invalid `accept` values on file inputs.
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-file-input-accept.md
7680
+ */
7681
+ 'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7378
7682
  /**
7379
7683
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
7684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-remove-event-listener.md
7381
7685
  */
7382
7686
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7383
7687
  /**
7384
7688
  * Disallow identifiers starting with `new` or `class`.
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
7689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-keyword-prefix.md
7386
7690
  */
7387
7691
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7692
+ /**
7693
+ * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-late-current-target-access.md
7695
+ */
7696
+ 'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7388
7697
  /**
7389
7698
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7391
7700
  * @deprecated
7392
7701
  */
7393
7702
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7394
7703
  /**
7395
7704
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
7705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-lonely-if.md
7397
7706
  */
7398
7707
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7708
+ /**
7709
+ * Disallow mutating a loop iterable during iteration.
7710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-loop-iterable-mutation.md
7711
+ */
7712
+ 'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7399
7713
  /**
7400
7714
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
7715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-magic-array-flat-depth.md
7402
7716
  */
7403
7717
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7718
+ /**
7719
+ * Disallow manually wrapped comments.
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-manually-wrapped-comments.md
7721
+ */
7722
+ 'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7723
+ /**
7724
+ * Disallow checking a Map key before accessing a different key.
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-mismatched-map-key.md
7726
+ */
7727
+ 'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7728
+ /**
7729
+ * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-misrefactored-assignment.md
7731
+ */
7732
+ 'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7404
7733
  /**
7405
7734
  * Disallow named usage of default import and export.
7406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-named-default.md
7407
7736
  */
7408
7737
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7738
+ /**
7739
+ * Disallow negated array predicate calls.
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-array-predicate.md
7741
+ */
7742
+ 'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7743
+ /**
7744
+ * Disallow negated comparisons.
7745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-comparison.md
7746
+ */
7747
+ 'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7409
7748
  /**
7410
7749
  * Disallow negated conditions.
7411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
7750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-condition.md
7412
7751
  */
7413
7752
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7414
7753
  /**
7415
7754
  * Disallow negated expression in equality check.
7416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
7755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negation-in-equality-check.md
7417
7756
  */
7418
7757
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7419
7758
  /**
7420
7759
  * Disallow nested ternary expressions.
7421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
7760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nested-ternary.md
7422
7761
  */
7423
7762
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7424
7763
  /**
7425
7764
  * Disallow `new Array()`.
7426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
7765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-array.md
7427
7766
  */
7428
7767
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7429
7768
  /**
7430
7769
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
7770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-buffer.md
7432
7771
  */
7433
7772
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7773
+ /**
7774
+ * Disallow non-function values with function-style verb prefixes.
7775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-non-function-verb-prefix.md
7776
+ */
7777
+ 'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7778
+ /**
7779
+ * Disallow non-standard properties on built-in objects.
7780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nonstandard-builtin-properties.md
7781
+ */
7782
+ 'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7434
7783
  /**
7435
7784
  * Disallow the use of the `null` literal.
7436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
7785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-null.md
7437
7786
  */
7438
7787
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7439
7788
  /**
7440
7789
  * Disallow the use of objects as default parameters.
7441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
7790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-as-default-parameter.md
7442
7791
  */
7443
7792
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7793
+ /**
7794
+ * Disallow `Object` methods with `Map` or `Set`.
7795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-methods-with-collections.md
7796
+ */
7797
+ 'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7798
+ /**
7799
+ * Disallow optional chaining on undeclared variables.
7800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7801
+ */
7802
+ 'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7444
7803
  /**
7445
7804
  * Disallow `process.exit()`.
7446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
7805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-process-exit.md
7447
7806
  */
7448
7807
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7808
+ /**
7809
+ * Disallow comparisons made redundant by an equality check in the same logical AND.
7810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-redundant-comparison.md
7811
+ */
7812
+ 'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7813
+ /**
7814
+ * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-return-array-push.md
7816
+ */
7817
+ 'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7818
+ /**
7819
+ * Disallow selector syntax in DOM names.
7820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-selector-as-dom-name.md
7821
+ */
7822
+ 'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7449
7823
  /**
7450
7824
  * Disallow passing single-element arrays to `Promise` methods.
7451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
7825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-single-promise-in-promise-methods.md
7452
7826
  */
7453
7827
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7454
7828
  /**
7455
7829
  * Disallow classes that only have static members.
7456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
7830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-static-only-class.md
7457
7831
  */
7458
7832
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7833
+ /**
7834
+ * Prefer comparing values directly over subtracting and comparing to `0`.
7835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-subtraction-comparison.md
7836
+ */
7837
+ 'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7459
7838
  /**
7460
7839
  * Disallow `then` property.
7461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
7840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-thenable.md
7462
7841
  */
7463
7842
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7464
7843
  /**
7465
7844
  * Disallow assigning `this` to a variable.
7466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
7845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-assignment.md
7467
7846
  */
7468
7847
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7848
+ /**
7849
+ * Disallow `this` outside of classes.
7850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-outside-of-class.md
7851
+ */
7852
+ 'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7853
+ /**
7854
+ * Disallow assigning to top-level variables from inside functions.
7855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-assignment-in-function.md
7856
+ */
7857
+ 'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7858
+ /**
7859
+ * Disallow top-level side effects in exported modules.
7860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-side-effects.md
7861
+ */
7862
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7469
7863
  /**
7470
7864
  * Disallow comparing `undefined` using `typeof`.
7471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
7865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-typeof-undefined.md
7472
7866
  */
7473
7867
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7868
+ /**
7869
+ * Disallow referencing methods without calling them.
7870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-uncalled-method.md
7871
+ */
7872
+ 'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7873
+ /**
7874
+ * Require class members to be declared.
7875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-undeclared-class-members.md
7876
+ */
7877
+ 'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7474
7878
  /**
7475
7879
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7477
7881
  */
7478
7882
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7479
7883
  /**
7480
7884
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
7885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-splice-count.md
7482
7886
  */
7483
7887
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7484
7888
  /**
7485
7889
  * Disallow awaiting non-promise values.
7486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
7890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-await.md
7487
7891
  */
7488
7892
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7893
+ /**
7894
+ * Disallow unnecessary comparisons against boolean literals.
7895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7896
+ */
7897
+ 'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7898
+ /**
7899
+ * Disallow unnecessary `globalThis` references.
7900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-global-this.md
7901
+ */
7902
+ 'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7903
+ /**
7904
+ * Disallow unnecessary nested ternary expressions.
7905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-nested-ternary.md
7906
+ */
7907
+ 'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7489
7908
  /**
7490
7909
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
7910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-polyfills.md
7492
7911
  */
7493
7912
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7494
7913
  /**
7495
7914
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
7915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-slice-end.md
7497
7916
  */
7498
7917
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7918
+ /**
7919
+ * Disallow `Array#splice()` when simpler alternatives exist.
7920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-splice.md
7921
+ */
7922
+ 'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7499
7923
  /**
7500
7924
  * Disallow unreadable array destructuring.
7501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
7925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-array-destructuring.md
7502
7926
  */
7503
- 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
7927
+ 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7928
+ /**
7929
+ * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-for-of-expression.md
7931
+ */
7932
+ 'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7504
7933
  /**
7505
7934
  * Disallow unreadable IIFEs.
7506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
7935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-iife.md
7507
7936
  */
7508
7937
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7938
+ /**
7939
+ * Disallow unreadable `new` expressions.
7940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-new-expression.md
7941
+ */
7942
+ 'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7943
+ /**
7944
+ * Disallow unreadable object destructuring.
7945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-object-destructuring.md
7946
+ */
7947
+ 'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7948
+ /**
7949
+ * Prevent unsafe use of ArrayBuffer view `.buffer`.
7950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-buffer-conversion.md
7951
+ */
7952
+ 'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7953
+ /**
7954
+ * Disallow unsafe DOM HTML APIs.
7955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-dom-html.md
7956
+ */
7957
+ 'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7958
+ /**
7959
+ * Disallow unsafe values as property keys.
7960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-property-key.md
7961
+ */
7962
+ 'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7963
+ /**
7964
+ * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-string-replacement.md
7966
+ */
7967
+ 'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7968
+ /**
7969
+ * Disallow ignoring the return value of selected array methods.
7970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-array-method-return.md
7971
+ */
7972
+ 'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7509
7973
  /**
7510
7974
  * Disallow unused object properties.
7511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
7975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-properties.md
7512
7976
  */
7513
7977
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7978
+ /**
7979
+ * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-boolean-cast.md
7981
+ */
7982
+ 'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7983
+ /**
7984
+ * Disallow useless type coercions of values that are already of the target type.
7985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-coercion.md
7986
+ */
7987
+ 'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7514
7988
  /**
7515
7989
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
7990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-collection-argument.md
7517
7991
  */
7518
7992
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7993
+ /**
7994
+ * Disallow useless compound assignments such as `x += 0`.
7995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-compound-assignment.md
7996
+ */
7997
+ 'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7998
+ /**
7999
+ * Disallow useless concatenation of literals.
8000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-concat.md
8001
+ */
8002
+ 'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8003
+ /**
8004
+ * Disallow useless `continue` statements.
8005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-continue.md
8006
+ */
8007
+ 'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8008
+ /**
8009
+ * Disallow unnecessary existence checks before deletion.
8010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-delete-check.md
8011
+ */
8012
+ 'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8013
+ /**
8014
+ * Disallow `else` after a statement that exits.
8015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-else.md
8016
+ */
8017
+ 'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7519
8018
  /**
7520
8019
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7522
8021
  */
7523
8022
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7524
8023
  /**
7525
8024
  * Disallow useless fallback when spreading in object literals.
7526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
8025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-fallback-in-spread.md
7527
8026
  */
7528
8027
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7529
8028
  /**
7530
8029
  * Disallow unnecessary `.toArray()` on iterators.
7531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
8030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-iterator-to-array.md
7532
8031
  */
7533
8032
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7534
8033
  /**
7535
8034
  * Disallow useless array length check.
7536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
8035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-length-check.md
7537
8036
  */
7538
8037
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8038
+ /**
8039
+ * Disallow unnecessary operands in logical expressions involving boolean literals.
8040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-logical-operand.md
8041
+ */
8042
+ 'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8043
+ /**
8044
+ * Disallow useless overrides of class methods.
8045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-override.md
8046
+ */
8047
+ 'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7539
8048
  /**
7540
8049
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
8050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-promise-resolve-reject.md
7542
8051
  */
7543
8052
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8053
+ /**
8054
+ * Disallow simple recursive function calls that can be replaced with a loop.
8055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-recursion.md
8056
+ */
8057
+ 'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7544
8058
  /**
7545
8059
  * Disallow unnecessary spread.
7546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
8060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-spread.md
7547
8061
  */
7548
8062
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7549
8063
  /**
7550
8064
  * Disallow useless case in switch statements.
7551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
8065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-switch-case.md
7552
8066
  */
7553
8067
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8068
+ /**
8069
+ * Disallow useless template literal expressions.
8070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-template-literals.md
8071
+ */
8072
+ 'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7554
8073
  /**
7555
8074
  * Disallow useless `undefined`.
7556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
8075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-undefined.md
7557
8076
  */
7558
8077
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8078
+ /**
8079
+ * Disallow the bitwise XOR operator where exponentiation was likely intended.
8080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-xor-as-exponentiation.md
8081
+ */
8082
+ 'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7559
8083
  /**
7560
8084
  * Disallow number literals with zero fractions or dangling dots.
7561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
8085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-zero-fractions.md
7562
8086
  */
7563
8087
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7564
8088
  /**
7565
8089
  * Enforce proper case for numeric literals.
7566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
8090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/number-literal-case.md
7567
8091
  */
7568
8092
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7569
8093
  /**
7570
8094
  * Enforce the style of numeric separators by correctly grouping digits.
7571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
8095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/numeric-separators-style.md
7572
8096
  */
7573
8097
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8098
+ /**
8099
+ * Require assignment operator shorthand where possible.
8100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/operator-assignment.md
8101
+ */
8102
+ 'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7574
8103
  /**
7575
8104
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
8105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener.md
7577
8106
  */
7578
8107
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8108
+ /**
8109
+ * Prefer an options object over a boolean in `.addEventListener()`.
8110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener-options.md
8111
+ */
8112
+ 'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7579
8113
  /**
7580
8114
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
8115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-find.md
7582
8116
  */
7583
8117
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7584
8118
  /**
7585
8119
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
8120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat.md
7587
8121
  */
7588
8122
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7589
8123
  /**
7590
- * Prefer `.flatMap(…)` over `.map(…).flat()`.
7591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
8124
+ * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat-map.md
7592
8126
  */
7593
8127
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8128
+ /**
8129
+ * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-async.md
8131
+ */
8132
+ 'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8133
+ /**
8134
+ * Prefer using the `Array.from()` mapping function argument.
8135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-map.md
8136
+ */
8137
+ 'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7594
8138
  /**
7595
8139
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
8140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-index-of.md
7597
8141
  */
7598
8142
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8143
+ /**
8144
+ * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-iterable-methods.md
8146
+ */
8147
+ 'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8148
+ /**
8149
+ * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-last-methods.md
8151
+ */
8152
+ 'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8153
+ /**
8154
+ * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-slice.md
8156
+ */
8157
+ 'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7599
8158
  /**
7600
8159
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
8160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-some.md
7602
8161
  */
7603
8162
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7604
8163
  /**
7605
8164
  * Prefer `.at()` method for index access and `String#charAt()`.
7606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
8165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-at.md
7607
8166
  */
7608
8167
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8168
+ /**
8169
+ * Prefer `await` over promise chaining.
8170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-await.md
8171
+ */
8172
+ 'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7609
8173
  /**
7610
8174
  * Prefer `BigInt` literals over the constructor.
7611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
8175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-bigint-literals.md
7612
8176
  */
7613
8177
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7614
8178
  /**
7615
8179
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
8180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-blob-reading-methods.md
7617
8181
  */
7618
8182
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8183
+ /**
8184
+ * Prefer directly returning boolean expressions over `if` statements.
8185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-boolean-return.md
8186
+ */
8187
+ 'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7619
8188
  /**
7620
8189
  * Prefer class field declarations over `this` assignments in constructors.
7621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
8190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-class-fields.md
7622
8191
  */
7623
8192
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7624
8193
  /**
7625
8194
  * Prefer using `Element#classList.toggle()` to toggle class names.
7626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
8195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-classlist-toggle.md
7627
8196
  */
7628
8197
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7629
8198
  /**
7630
8199
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
8200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-code-point.md
7632
8201
  */
7633
8202
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8203
+ /**
8204
+ * Prefer early continues over whole-loop conditional wrapping.
8205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-continue.md
8206
+ */
8207
+ 'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7634
8208
  /**
7635
8209
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
8210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-date-now.md
7637
8211
  */
7638
8212
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7639
8213
  /**
7640
8214
  * Prefer default parameters over reassignment.
7641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
8215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-default-parameters.md
7642
8216
  */
7643
8217
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7644
8218
  /**
7645
- * Prefer `Node#append()` over `Node#appendChild()`.
7646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
8219
+ * Prefer direct iteration over default iterator method calls.
8220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-direct-iteration.md
8221
+ */
8222
+ 'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8223
+ /**
8224
+ * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dispose.md
8226
+ */
8227
+ 'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8228
+ /**
8229
+ * Prefer `Element#append()` over `Node#appendChild()`.
8230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-append.md
7647
8231
  */
7648
8232
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7649
8233
  /**
7650
- * Prefer using `.dataset` on DOM elements over calling attribute methods.
7651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
8234
+ * Renamed to `unicorn/dom-node-dataset`.
8235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8236
+ * @deprecated
7652
8237
  */
7653
8238
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8239
+ /**
8240
+ * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-html-methods.md
8242
+ */
8243
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
7654
8244
  /**
7655
8245
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
8246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-remove.md
7657
8247
  */
7658
8248
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7659
8249
  /**
7660
8250
  * Prefer `.textContent` over `.innerText`.
7661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
8251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-text-content.md
7662
8252
  */
7663
8253
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8254
+ /**
8255
+ * Prefer early returns over full-function conditional wrapping.
8256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-early-return.md
8257
+ */
8258
+ 'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8259
+ /**
8260
+ * Prefer `else if` over adjacent `if` statements with related conditions.
8261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-else-if.md
8262
+ */
8263
+ 'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7664
8264
  /**
7665
8265
  * Prefer `EventTarget` over `EventEmitter`.
7666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
8266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-event-target.md
7667
8267
  */
7668
8268
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7669
8269
  /**
7670
8270
  * Prefer `export…from` when re-exporting.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
8271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-export-from.md
7672
8272
  */
7673
8273
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8274
+ /**
8275
+ * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-flat-math-min-max.md
8277
+ */
8278
+ 'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8279
+ /**
8280
+ * Prefer `.getOrInsertComputed()` when the default value has side effects.
8281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-get-or-insert-computed.md
8282
+ */
8283
+ 'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8284
+ /**
8285
+ * Prefer global numeric constants over `Number` static properties.
8286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-number-constants.md
8287
+ */
8288
+ 'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7674
8289
  /**
7675
8290
  * Prefer `globalThis` over `window`, `self`, and `global`.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
8291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-this.md
7677
8292
  */
7678
8293
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8294
+ /**
8295
+ * Prefer `.has()` when checking existence.
8296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-has-check.md
8297
+ */
8298
+ 'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8299
+ /**
8300
+ * Prefer moving code shared by all branches of an `if` statement out of the branches.
8301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-hoisting-branch-code.md
8302
+ */
8303
+ 'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8304
+ /**
8305
+ * Prefer HTTPS over HTTP.
8306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-https.md
8307
+ */
8308
+ 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8309
+ /**
8310
+ * Prefer identifiers over string literals in import and export specifiers.
8311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8312
+ */
8313
+ 'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7679
8314
  /**
7680
8315
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
8316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-import-meta-properties.md
7682
8317
  */
7683
8318
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7684
8319
  /**
7685
8320
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
8321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes.md
7687
8322
  */
7688
8323
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7689
8324
  /**
7690
- * Prefer reading a JSON file as a buffer.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
8325
+ * Prefer `.includes()` over repeated equality comparisons.
8326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8327
+ */
8328
+ 'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8329
+ /**
8330
+ * Prefer passing iterables directly to constructors instead of filling empty collections.
8331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterable-in-constructor.md
8332
+ */
8333
+ 'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8334
+ /**
8335
+ * Prefer `Iterator.concat(…)` over temporary spread arrays.
8336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-concat.md
8337
+ */
8338
+ 'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8339
+ /**
8340
+ * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array.md
8342
+ */
8343
+ 'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8344
+ /**
8345
+ * Prefer moving `.toArray()` to the end of iterator helper chains.
8346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8347
+ */
8348
+ 'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8349
+ /**
8350
+ * Renamed to `unicorn/consistent-json-file-read`.
8351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8352
+ * @deprecated
7692
8353
  */
7693
8354
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7694
8355
  /**
7695
- * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
8356
+ * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-keyboard-event-key.md
7697
8358
  */
7698
8359
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8360
+ /**
8361
+ * Prefer `location.assign()` over assigning to `location.href`.
8362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-location-assign.md
8363
+ */
8364
+ 'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7699
8365
  /**
7700
8366
  * Prefer using a logical operator over a ternary.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7702
8368
  */
7703
8369
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8370
+ /**
8371
+ * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-map-from-entries.md
8373
+ */
8374
+ 'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8375
+ /**
8376
+ * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-abs.md
8378
+ */
8379
+ 'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8380
+ /**
8381
+ * Prefer `Math` constants over their approximate numeric values.
8382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-constants.md
8383
+ */
8384
+ 'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7704
8385
  /**
7705
8386
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
8387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-min-max.md
7707
8388
  */
7708
8389
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7709
8390
  /**
7710
- * Enforce the use of `Math.trunc` instead of bitwise operators.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
8391
+ * Prefer `Math.trunc()` for truncating numbers.
8392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-trunc.md
7712
8393
  */
7713
8394
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7714
8395
  /**
7715
- * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
8396
+ * Prefer moving ternaries into the minimal varying part of an expression.
8397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-minimal-ternary.md
8398
+ */
8399
+ 'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8400
+ /**
8401
+ * Prefer modern DOM APIs.
8402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-dom-apis.md
7717
8403
  */
7718
8404
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7719
8405
  /**
7720
8406
  * Prefer modern `Math` APIs over legacy patterns.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
8407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-math-apis.md
7722
8408
  */
7723
8409
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7724
8410
  /**
7725
8411
  * Prefer JavaScript modules (ESM) over CommonJS.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
8412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-module.md
7727
8413
  */
7728
8414
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7729
8415
  /**
7730
8416
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
8417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-native-coercion-functions.md
7732
8418
  */
7733
8419
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7734
8420
  /**
7735
8421
  * Prefer negative index over `.length - index` when possible.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
8422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-negative-index.md
7737
8423
  */
7738
8424
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7739
8425
  /**
7740
- * Prefer using the `node:` protocol when importing Node.js builtin modules.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
8426
+ * Prefer using the `node:` protocol when importing Node.js builtin modules.
8427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-node-protocol.md
8428
+ */
8429
+ 'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8430
+ /**
8431
+ * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-coercion.md
8433
+ */
8434
+ 'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8435
+ /**
8436
+ * Prefer `Number.isSafeInteger()` over integer checks.
8437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-is-safe-integer.md
8438
+ */
8439
+ 'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8440
+ /**
8441
+ * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-properties.md
8443
+ */
8444
+ 'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8445
+ /**
8446
+ * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-define-properties.md
7742
8448
  */
7743
- 'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8449
+ 'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
7744
8450
  /**
7745
- * Prefer `Number` static properties over global ones.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
8451
+ * Prefer object destructuring defaults over default object literals with spread.
8452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-destructuring-defaults.md
7747
8453
  */
7748
- 'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8454
+ 'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7749
8455
  /**
7750
8456
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
8457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-from-entries.md
7752
8458
  */
7753
8459
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8460
+ /**
8461
+ * Prefer the most specific `Object` iterable method.
8462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-iterable-methods.md
8463
+ */
8464
+ 'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
7754
8465
  /**
7755
8466
  * Prefer omitting the `catch` binding parameter.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
8467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-optional-catch-binding.md
7757
8468
  */
7758
8469
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8470
+ /**
8471
+ * Prefer `Path2D` for repeatedly drawn canvas paths.
8472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-path2d.md
8473
+ */
8474
+ 'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8475
+ /**
8476
+ * Prefer private class fields over the underscore-prefix convention.
8477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-private-class-fields.md
8478
+ */
8479
+ 'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8480
+ /**
8481
+ * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-promise-with-resolvers.md
8483
+ */
8484
+ 'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7759
8485
  /**
7760
8486
  * Prefer borrowing methods from the prototype instead of the instance.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
8487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-prototype-methods.md
7762
8488
  */
7763
8489
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7764
8490
  /**
7765
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
8491
+ * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-query-selector.md
7767
8493
  */
7768
- 'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
8494
+ 'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8495
+ /**
8496
+ * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-queue-microtask.md
8498
+ */
8499
+ 'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7769
8500
  /**
7770
8501
  * Prefer `Reflect.apply()` over `Function#apply()`.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
8502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-reflect-apply.md
7772
8503
  */
7773
8504
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7774
8505
  /**
7775
- * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
8506
+ * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-escape.md
8508
+ */
8509
+ 'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8510
+ /**
8511
+ * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-test.md
7777
8513
  */
7778
8514
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7779
8515
  /**
7780
8516
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
8517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-response-static-json.md
7782
8518
  */
7783
8519
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8520
+ /**
8521
+ * Prefer `:scope` when using element query selector methods.
8522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-scoped-selector.md
8523
+ */
8524
+ 'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7784
8525
  /**
7785
8526
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
8527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-has.md
7787
8528
  */
7788
- 'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
8529
+ 'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
7789
8530
  /**
7790
8531
  * Prefer using `Set#size` instead of `Array#length`.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
8532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-size.md
7792
8533
  */
7793
8534
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8535
+ /**
8536
+ * Prefer arrow function properties over methods with a single return.
8537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-short-arrow-method.md
8538
+ */
8539
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
7794
8540
  /**
7795
8541
  * Prefer simple conditions first in logical expressions.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
8542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-condition-first.md
7797
8543
  */
7798
8544
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
7799
8545
  /**
7800
- * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
8546
+ * Prefer a simple comparison function for `Array#sort()`.
8547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-sort-comparator.md
8548
+ */
8549
+ 'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8550
+ /**
8551
+ * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-array-predicate.md
8553
+ */
8554
+ 'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8555
+ /**
8556
+ * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-call.md
7802
8558
  */
7803
8559
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7804
8560
  /**
7805
- * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
8561
+ * Prefer a single object destructuring declaration per local const source.
8562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-object-destructuring.md
8563
+ */
8564
+ 'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8565
+ /**
8566
+ * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-replace.md
8568
+ */
8569
+ 'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8570
+ /**
8571
+ * Prefer declaring variables in the smallest possible scope.
8572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-smaller-scope.md
8573
+ */
8574
+ 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8575
+ /**
8576
+ * Prefer `String#split()` with a limit.
8577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-split-limit.md
8578
+ */
8579
+ 'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8580
+ /**
8581
+ * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-spread.md
7807
8583
  */
7808
8584
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8585
+ /**
8586
+ * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-match-all.md
8588
+ */
8589
+ 'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8590
+ /**
8591
+ * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-pad-start-end.md
8593
+ */
8594
+ 'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7809
8595
  /**
7810
8596
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
8597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-raw.md
7812
8598
  */
7813
8599
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7814
8600
  /**
7815
- * Prefer `String#replaceAll()` over regex searches with the global flag.
7816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
8601
+ * Prefer `String#repeat()` for repeated whitespace.
8602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-repeat.md
8603
+ */
8604
+ 'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8605
+ /**
8606
+ * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-replace-all.md
7817
8608
  */
7818
8609
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7819
8610
  /**
7820
8611
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
8612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-slice.md
7822
8613
  */
7823
8614
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7824
8615
  /**
7825
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
8616
+ * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
8617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-starts-ends-with.md
7827
8618
  */
7828
8619
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7829
8620
  /**
7830
8621
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
8622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-trim-start-end.md
7832
8623
  */
7833
8624
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7834
8625
  /**
7835
8626
  * Prefer using `structuredClone` to create a deep clone.
7836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
8627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-structured-clone.md
7837
8628
  */
7838
8629
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7839
8630
  /**
7840
8631
  * Prefer `switch` over multiple `else-if`.
7841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
8632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-switch.md
7842
8633
  */
7843
8634
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7844
8635
  /**
7845
- * Prefer ternary expressions over simple `if-else` statements.
7846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
8636
+ * Prefer `Temporal` over `Date`.
8637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-temporal.md
8638
+ */
8639
+ 'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8640
+ /**
8641
+ * Prefer ternary expressions over simple `if` statements that return or assign values.
8642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-ternary.md
7847
8643
  */
7848
8644
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
7849
8645
  /**
7850
8646
  * Prefer top-level await over top-level promises and async function calls.
7851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
8647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-top-level-await.md
7852
8648
  */
7853
8649
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7854
8650
  /**
7855
8651
  * Enforce throwing `TypeError` in type checking conditions.
7856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
8652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-error.md
7857
8653
  */
7858
8654
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7859
8655
  /**
7860
- * Prevent abbreviations.
7861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
8656
+ * Require type literals to be last in union types.
8657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-literal-last.md
8658
+ */
8659
+ 'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8660
+ /**
8661
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-uint8array-base64.md
8663
+ */
8664
+ 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8665
+ /**
8666
+ * Prefer the unary minus operator over multiplying or dividing by `-1`.
8667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unary-minus.md
8668
+ */
8669
+ 'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8670
+ /**
8671
+ * Prefer Unicode code point escapes over legacy escape sequences.
8672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8673
+ */
8674
+ 'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8675
+ /**
8676
+ * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-can-parse.md
7862
8678
  */
7863
- 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
8679
+ 'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8680
+ /**
8681
+ * Prefer `URL#href` over stringifying a `URL`.
8682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-href.md
8683
+ */
8684
+ 'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8685
+ /**
8686
+ * Prefer putting the condition in the while statement.
8687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-while-loop-condition.md
8688
+ */
8689
+ 'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8690
+ /**
8691
+ * Renamed to `unicorn/name-replacements`.
8692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8693
+ * @deprecated
8694
+ */
8695
+ 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
7864
8696
  /**
7865
8697
  * Enforce consistent relative URL style.
7866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
8698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/relative-url-style.md
7867
8699
  */
7868
8700
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7869
8701
  /**
7870
8702
  * Enforce using the separator argument with `Array#join()`.
7871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
8703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-join-separator.md
7872
8704
  */
7873
8705
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8706
+ /**
8707
+ * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-sort-compare.md
8709
+ */
8710
+ 'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8711
+ /**
8712
+ * Require `CSS.escape()` for interpolated values in CSS selectors.
8713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-css-escape.md
8714
+ */
8715
+ 'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
7874
8716
  /**
7875
8717
  * Require non-empty module attributes for imports and exports
7876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
8718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-attributes.md
7877
8719
  */
7878
8720
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
7879
8721
  /**
7880
8722
  * Require non-empty specifier list in import and export statements.
7881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
8723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-specifiers.md
7882
8724
  */
7883
8725
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
7884
8726
  /**
7885
8727
  * Enforce using the digits argument with `Number#toFixed()`.
7886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7887
8729
  */
7888
8730
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8731
+ /**
8732
+ * Require passive event listeners for high-frequency events.
8733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-passive-events.md
8734
+ */
8735
+ 'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
7889
8736
  /**
7890
8737
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
8738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-post-message-target-origin.md
7892
8739
  */
7893
8740
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8741
+ /**
8742
+ * Require boolean-returning Proxy traps to return booleans.
8743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-proxy-trap-boolean-return.md
8744
+ */
8745
+ 'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
7894
8746
  /**
7895
8747
  * Enforce better string content.
7896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
8748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/string-content.md
7897
8749
  */
7898
8750
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7899
8751
  /**
7900
8752
  * Enforce consistent brace style for `case` clauses.
7901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
8753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-braces.md
7902
8754
  */
7903
8755
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7904
8756
  /**
7905
8757
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
7906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
8758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-break-position.md
7907
8759
  */
7908
8760
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
7909
8761
  /**
7910
8762
  * Fix whitespace-insensitive template indentation.
7911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
8763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/template-indent.md
7912
8764
  */
7913
8765
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7914
8766
  /**
7915
8767
  * Enforce consistent case for text encoding identifiers.
7916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
8768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/text-encoding-identifier-case.md
7917
8769
  */
7918
8770
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
7919
8771
  /**
7920
8772
  * Require `new` when creating an error.
7921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
8773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/throw-new-error.md
7922
8774
  */
7923
8775
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8776
+ /**
8777
+ * Limit the complexity of `try` blocks.
8778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/try-complexity.md
8779
+ */
8780
+ 'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
7924
8781
  /**
7925
8782
  * Utilities in UnoCSS blocklist
7926
8783
  * @see https://unocss.dev/integrations/eslint#rules
@@ -8270,7 +9127,7 @@ interface RuleOptions {
8270
9127
  */
8271
9128
  'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>;
8272
9129
  /**
8273
- * Enforce consistent spacing between keys and values in object literal properties in `<template>`
9130
+ * Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
8274
9131
  * @see https://eslint.vuejs.org/rules/key-spacing.html
8275
9132
  */
8276
9133
  'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>;
@@ -8992,7 +9849,7 @@ interface RuleOptions {
8992
9849
  */
8993
9850
  'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>;
8994
9851
  /**
8995
- * Require quotes around object literal property names in `<template>`
9852
+ * Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
8996
9853
  * @see https://eslint.vuejs.org/rules/quote-props.html
8997
9854
  */
8998
9855
  'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>;
@@ -9435,6 +10292,11 @@ interface RuleOptions {
9435
10292
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
9436
10293
  */
9437
10294
  'yaml/no-tab-indent'?: Linter.RuleEntry<[]>;
10295
+ /**
10296
+ * disallow trailing whitespace at the end of lines
10297
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-spaces.html
10298
+ */
10299
+ 'yaml/no-trailing-spaces'?: Linter.RuleEntry<YamlNoTrailingSpaces>;
9438
10300
  /**
9439
10301
  * disallow trailing zeros for floats
9440
10302
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
@@ -9510,6 +10372,7 @@ type AngularTemplateConditionalComplexity = [] | [{
9510
10372
  }]; // ----- angular-template/cyclomatic-complexity -----
9511
10373
  type AngularTemplateCyclomaticComplexity = [] | [{
9512
10374
  maxComplexity?: number;
10375
+ variant?: ("classic" | "modified");
9513
10376
  }]; // ----- angular-template/elements-content -----
9514
10377
  type AngularTemplateElementsContent = [] | [{
9515
10378
  allowList?: string[];
@@ -17627,43 +18490,109 @@ type TsUnifiedSignatures = [] | [{
17627
18490
  ignoreDifferentlyNamedParameters?: boolean;
17628
18491
  ignoreOverloadsWithDifferentJSDoc?: boolean;
17629
18492
  }]; // ----- unicode-bom -----
17630
- type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/better-regex -----
17631
- type UnicornBetterRegex = [] | [{
17632
- sortCharacterClasses?: boolean;
17633
- }]; // ----- unicorn/catch-error-name -----
18493
+ type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/catch-error-name -----
17634
18494
  type UnicornCatchErrorName = [] | [{
17635
18495
  name?: string;
17636
18496
  ignore?: unknown[];
17637
- }]; // ----- unicorn/consistent-function-scoping -----
18497
+ }]; // ----- unicorn/class-reference-in-static-methods -----
18498
+ type UnicornClassReferenceInStaticMethods = [] | [{
18499
+ preferThis?: boolean;
18500
+ preferSuper?: boolean;
18501
+ }]; // ----- unicorn/comment-content -----
18502
+ type UnicornCommentContent = [] | [{
18503
+ checkUniformCase?: boolean;
18504
+ extendDefaultReplacements?: boolean;
18505
+ replacements?: {
18506
+ [k: string]: (false | string | {
18507
+ replacement: string;
18508
+ caseSensitive?: boolean;
18509
+ }) | undefined;
18510
+ };
18511
+ }]; // ----- unicorn/consistent-boolean-name -----
18512
+ type UnicornConsistentBooleanName = [] | [{
18513
+ checkProperties?: boolean;
18514
+ prefixes?: {
18515
+ [k: string]: boolean | undefined;
18516
+ };
18517
+ }]; // ----- unicorn/consistent-class-member-order -----
18518
+ type UnicornConsistentClassMemberOrder = [] | [{
18519
+ order?: [("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method")];
18520
+ }]; // ----- unicorn/consistent-compound-words -----
18521
+ type UnicornConsistentCompoundWords = [] | [{
18522
+ checkProperties?: boolean;
18523
+ checkVariables?: boolean;
18524
+ checkDefaultAndNamespaceImports?: (boolean | "internal");
18525
+ checkShorthandImports?: (boolean | "internal");
18526
+ checkShorthandProperties?: boolean;
18527
+ extendDefaultReplacements?: boolean;
18528
+ replacements?: _UnicornConsistentCompoundWords_Replacements;
18529
+ allowList?: _UnicornConsistentCompoundWords_TrueObject;
18530
+ }];
18531
+ interface _UnicornConsistentCompoundWords_Replacements {
18532
+ [k: string]: (false | string) | undefined;
18533
+ }
18534
+ interface _UnicornConsistentCompoundWords_TrueObject {
18535
+ [k: string]: true | undefined;
18536
+ } // ----- unicorn/consistent-conditional-object-spread -----
18537
+ type UnicornConsistentConditionalObjectSpread = [] | [("logical" | "ternary")]; // ----- unicorn/consistent-export-decorator-position -----
18538
+ type UnicornConsistentExportDecoratorPosition = [] | [("above" | "before" | "after")]; // ----- unicorn/consistent-function-scoping -----
17638
18539
  type UnicornConsistentFunctionScoping = [] | [{
17639
18540
  checkArrowFunctions?: boolean;
18541
+ }]; // ----- unicorn/consistent-function-style -----
18542
+ type UnicornConsistentFunctionStyle = [] | [{
18543
+ default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18544
+ namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18545
+ namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18546
+ callbacks?: ("function-expression" | "arrow-function" | "ignore");
18547
+ objectProperties?: ("method" | "function-expression" | "arrow-function" | "ignore");
18548
+ reassignedVariables?: ("function-expression" | "arrow-function" | "ignore");
18549
+ typedVariables?: ("function-expression" | "arrow-function" | "ignore");
18550
+ }]; // ----- unicorn/consistent-json-file-read -----
18551
+ type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/default-export-style -----
18552
+ type UnicornDefaultExportStyle = [] | [{
18553
+ functions?: ("inline" | "separate" | "ignore");
18554
+ classes?: ("inline" | "separate" | "ignore");
18555
+ }]; // ----- unicorn/dom-node-dataset -----
18556
+ type UnicornDomNodeDataset = [] | [{
18557
+ preferAttributes?: boolean;
17640
18558
  }]; // ----- unicorn/escape-case -----
17641
18559
  type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/expiring-todo-comments -----
17642
18560
  type UnicornExpiringTodoComments = [] | [{
17643
18561
  terms?: string[];
17644
18562
  ignore?: unknown[];
17645
- ignoreDates?: boolean;
17646
- ignoreDatesOnPullRequests?: boolean;
18563
+ checkDates?: boolean;
18564
+ checkDatesOnPullRequests?: boolean;
17647
18565
  allowWarningComments?: boolean;
17648
18566
  date?: string;
17649
18567
  }]; // ----- unicorn/explicit-length-check -----
17650
18568
  type UnicornExplicitLengthCheck = [] | [{
17651
18569
  "non-zero"?: ("greater-than" | "not-equal");
17652
- }]; // ----- unicorn/filename-case -----
18570
+ }]; // ----- unicorn/explicit-timer-delay -----
18571
+ type UnicornExplicitTimerDelay = [] | [("always" | "never")]; // ----- unicorn/filename-case -----
17653
18572
  type UnicornFilenameCase = [] | [({
17654
- case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
18573
+ case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
17655
18574
  ignore?: unknown[];
17656
18575
  multipleFileExtensions?: boolean;
18576
+ checkDirectories?: boolean;
17657
18577
  } | {
17658
18578
  cases?: {
17659
18579
  camelCase?: boolean;
18580
+ camelCaseWithAcronyms?: boolean;
17660
18581
  snakeCase?: boolean;
17661
18582
  kebabCase?: boolean;
17662
18583
  pascalCase?: boolean;
17663
18584
  };
17664
18585
  ignore?: unknown[];
17665
18586
  multipleFileExtensions?: boolean;
17666
- })]; // ----- unicorn/import-style -----
18587
+ checkDirectories?: boolean;
18588
+ })]; // ----- unicorn/id-match -----
18589
+ type UnicornIdMatch = [] | [string] | [string, {
18590
+ properties?: boolean;
18591
+ classFields?: boolean;
18592
+ onlyDeclarations?: boolean;
18593
+ ignoreDestructuring?: boolean;
18594
+ checkNamedSpecifiers?: boolean;
18595
+ }]; // ----- unicorn/import-style -----
17667
18596
  type UnicornImportStyle = [] | [{
17668
18597
  checkImport?: boolean;
17669
18598
  checkDynamicImport?: boolean;
@@ -17686,6 +18615,38 @@ type UnicornIsolatedFunctions = [] | [{
17686
18615
  functions?: string[];
17687
18616
  selectors?: string[];
17688
18617
  comments?: string[];
18618
+ }]; // ----- unicorn/logical-assignment-operators -----
18619
+ type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
18620
+ enforceForIfStatements?: boolean;
18621
+ }] | ["never"]) & unknown[]); // ----- unicorn/max-nested-calls -----
18622
+ type UnicornMaxNestedCalls = [] | [{
18623
+ max?: number;
18624
+ }]; // ----- unicorn/name-replacements -----
18625
+ type UnicornNameReplacements = [] | [{
18626
+ checkProperties?: boolean;
18627
+ checkVariables?: boolean;
18628
+ checkDefaultAndNamespaceImports?: (boolean | string);
18629
+ checkShorthandImports?: (boolean | string);
18630
+ checkShorthandProperties?: boolean;
18631
+ checkFilenames?: boolean;
18632
+ extendDefaultReplacements?: boolean;
18633
+ replacements?: _UnicornNameReplacements_NameReplacements;
18634
+ extendDefaultAllowList?: boolean;
18635
+ allowList?: _UnicornNameReplacements_BooleanObject;
18636
+ ignore?: unknown[];
18637
+ }];
18638
+ type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
18639
+ interface _UnicornNameReplacements_NameReplacements {
18640
+ [k: string]: _UnicornNameReplacementsReplacements | undefined;
18641
+ }
18642
+ interface _UnicornNameReplacements_BooleanObject {
18643
+ [k: string]: boolean | undefined;
18644
+ }
18645
+ interface _UnicornNameReplacements_BooleanObject {
18646
+ [k: string]: boolean | undefined;
18647
+ } // ----- unicorn/no-array-callback-reference -----
18648
+ type UnicornNoArrayCallbackReference = [] | [{
18649
+ ignore?: string[];
17689
18650
  }]; // ----- unicorn/no-array-reduce -----
17690
18651
  type UnicornNoArrayReduce = [] | [{
17691
18652
  allowSimpleOperations?: boolean;
@@ -17695,28 +18656,47 @@ type UnicornNoArrayReverse = [] | [{
17695
18656
  }]; // ----- unicorn/no-array-sort -----
17696
18657
  type UnicornNoArraySort = [] | [{
17697
18658
  allowExpressionStatement?: boolean;
18659
+ }]; // ----- unicorn/no-empty-file -----
18660
+ type UnicornNoEmptyFile = [] | [{
18661
+ allowComments?: boolean;
17698
18662
  }]; // ----- unicorn/no-instanceof-builtins -----
17699
18663
  type UnicornNoInstanceofBuiltins = [] | [{
17700
18664
  useErrorIsError?: boolean;
17701
18665
  strategy?: ("loose" | "strict");
17702
18666
  include?: string[];
17703
18667
  exclude?: string[];
18668
+ }]; // ----- unicorn/no-invalid-argument-count -----
18669
+ type UnicornNoInvalidArgumentCount = [] | [{
18670
+ [k: string]: (number | [number, ...(number)[]] | {
18671
+ min?: number;
18672
+ max?: number;
18673
+ }) | undefined;
17704
18674
  }]; // ----- unicorn/no-keyword-prefix -----
17705
18675
  type UnicornNoKeywordPrefix = [] | [{
17706
18676
  disallowedPrefixes?: [] | [string];
17707
18677
  checkProperties?: boolean;
17708
18678
  onlyCamelCase?: boolean;
18679
+ }]; // ----- unicorn/no-negated-comparison -----
18680
+ type UnicornNoNegatedComparison = [] | [{
18681
+ checkLogicalExpressions?: boolean;
18682
+ }]; // ----- unicorn/no-non-function-verb-prefix -----
18683
+ type UnicornNoNonFunctionVerbPrefix = [] | [{
18684
+ verbs?: string[];
17709
18685
  }]; // ----- unicorn/no-null -----
17710
18686
  type UnicornNoNull = [] | [{
18687
+ checkArguments?: boolean;
17711
18688
  checkStrictEquality?: boolean;
17712
18689
  }]; // ----- unicorn/no-typeof-undefined -----
17713
18690
  type UnicornNoTypeofUndefined = [] | [{
17714
18691
  checkGlobalVariables?: boolean;
17715
18692
  }]; // ----- unicorn/no-unnecessary-polyfills -----
17716
18693
  type UnicornNoUnnecessaryPolyfills = [] | [{
17717
- targets: (string | unknown[] | {
18694
+ targets?: (string | unknown[] | {
17718
18695
  [k: string]: unknown | undefined;
17719
18696
  });
18697
+ }]; // ----- unicorn/no-unreadable-array-destructuring -----
18698
+ type UnicornNoUnreadableArrayDestructuring = [] | [{
18699
+ maximumIgnoredElements?: number;
17720
18700
  }]; // ----- unicorn/no-useless-undefined -----
17721
18701
  type UnicornNoUselessUndefined = [] | [{
17722
18702
  checkArguments?: boolean;
@@ -17745,9 +18725,11 @@ type UnicornNumericSeparatorsStyle = [] | [{
17745
18725
  onlyIfContainsSeparator?: boolean;
17746
18726
  minimumDigits?: number;
17747
18727
  groupLength?: number;
18728
+ fractionGroupLength?: number;
17748
18729
  };
17749
18730
  onlyIfContainsSeparator?: boolean;
17750
- }]; // ----- unicorn/prefer-add-event-listener -----
18731
+ }]; // ----- unicorn/operator-assignment -----
18732
+ type UnicornOperatorAssignment = [] | [("always" | "never")]; // ----- unicorn/prefer-add-event-listener -----
17751
18733
  type UnicornPreferAddEventListener = [] | [{
17752
18734
  excludedPackages?: string[];
17753
18735
  }]; // ----- unicorn/prefer-array-find -----
@@ -17760,9 +18742,21 @@ type UnicornPreferArrayFlat = [] | [{
17760
18742
  type UnicornPreferAt = [] | [{
17761
18743
  getLastElementFunctions?: unknown[];
17762
18744
  checkAllIndexAccess?: boolean;
18745
+ }]; // ----- unicorn/prefer-continue -----
18746
+ type UnicornPreferContinue = [] | [{
18747
+ maximumStatements?: number;
18748
+ }]; // ----- unicorn/prefer-early-return -----
18749
+ type UnicornPreferEarlyReturn = [] | [{
18750
+ maximumStatements?: number;
17763
18751
  }]; // ----- unicorn/prefer-export-from -----
17764
18752
  type UnicornPreferExportFrom = [] | [{
17765
- ignoreUsedVariables?: boolean;
18753
+ checkUsedVariables?: boolean;
18754
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
18755
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
18756
+ minimumComparisons?: number;
18757
+ }]; // ----- unicorn/prefer-minimal-ternary -----
18758
+ type UnicornPreferMinimalTernary = [] | [{
18759
+ checkComputedMemberAccess?: boolean;
17766
18760
  }]; // ----- unicorn/prefer-number-properties -----
17767
18761
  type UnicornPreferNumberProperties = [] | [{
17768
18762
  checkInfinity?: boolean;
@@ -17770,9 +18764,22 @@ type UnicornPreferNumberProperties = [] | [{
17770
18764
  }]; // ----- unicorn/prefer-object-from-entries -----
17771
18765
  type UnicornPreferObjectFromEntries = [] | [{
17772
18766
  functions?: unknown[];
18767
+ }]; // ----- unicorn/prefer-query-selector -----
18768
+ type UnicornPreferQuerySelector = [] | [{
18769
+ allowWithVariables?: boolean;
18770
+ }]; // ----- unicorn/prefer-queue-microtask -----
18771
+ type UnicornPreferQueueMicrotask = [] | [{
18772
+ checkSetImmediate?: boolean;
18773
+ checkSetTimeout?: boolean;
18774
+ }]; // ----- unicorn/prefer-set-has -----
18775
+ type UnicornPreferSetHas = [] | [{
18776
+ minimumItems?: number;
17773
18777
  }]; // ----- unicorn/prefer-single-call -----
17774
18778
  type UnicornPreferSingleCall = [] | [{
17775
18779
  ignore?: unknown[];
18780
+ }]; // ----- unicorn/prefer-string-repeat -----
18781
+ type UnicornPreferStringRepeat = [] | [{
18782
+ minimumRepetitions?: number;
17776
18783
  }]; // ----- unicorn/prefer-structured-clone -----
17777
18784
  type UnicornPreferStructuredClone = [] | [{
17778
18785
  functions?: unknown[];
@@ -17780,42 +18787,29 @@ type UnicornPreferStructuredClone = [] | [{
17780
18787
  type UnicornPreferSwitch = [] | [{
17781
18788
  minimumCases?: number;
17782
18789
  emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case");
18790
+ }]; // ----- unicorn/prefer-temporal -----
18791
+ type UnicornPreferTemporal = [] | [{
18792
+ checkDateNow?: boolean;
18793
+ checkReferences?: boolean;
18794
+ checkMethods?: boolean;
17783
18795
  }]; // ----- unicorn/prefer-ternary -----
17784
- type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/prevent-abbreviations -----
17785
- type UnicornPreventAbbreviations = [] | [{
17786
- checkProperties?: boolean;
17787
- checkVariables?: boolean;
17788
- checkDefaultAndNamespaceImports?: (boolean | string);
17789
- checkShorthandImports?: (boolean | string);
17790
- checkShorthandProperties?: boolean;
17791
- checkFilenames?: boolean;
17792
- extendDefaultReplacements?: boolean;
17793
- replacements?: _UnicornPreventAbbreviations_Abbreviations;
17794
- extendDefaultAllowList?: boolean;
17795
- allowList?: _UnicornPreventAbbreviations_BooleanObject;
17796
- ignore?: unknown[];
17797
- }];
17798
- type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined;
17799
- interface _UnicornPreventAbbreviations_Abbreviations {
17800
- [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
17801
- }
17802
- interface _UnicornPreventAbbreviations_BooleanObject {
17803
- [k: string]: boolean | undefined;
17804
- }
17805
- interface _UnicornPreventAbbreviations_BooleanObject {
17806
- [k: string]: boolean | undefined;
17807
- } // ----- unicorn/relative-url-style -----
17808
- type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/string-content -----
18796
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/relative-url-style -----
18797
+ type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
18798
+ type UnicornRequireCssEscape = [] | [{
18799
+ checkAllSelectors?: boolean;
18800
+ }]; // ----- unicorn/string-content -----
17809
18801
  type UnicornStringContent = [] | [{
17810
18802
  patterns?: {
17811
18803
  [k: string]: (string | {
17812
18804
  suggest: string;
17813
18805
  fix?: boolean;
18806
+ caseSensitive?: boolean;
17814
18807
  message?: string;
17815
18808
  }) | undefined;
17816
18809
  };
18810
+ selectors?: string[];
17817
18811
  }]; // ----- unicorn/switch-case-braces -----
17818
- type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
18812
+ type UnicornSwitchCaseBraces = [] | [("always" | "avoid" | "single-statement")]; // ----- unicorn/template-indent -----
17819
18813
  type UnicornTemplateIndent = [] | [{
17820
18814
  indent?: (string | number);
17821
18815
  tags?: string[];
@@ -17825,6 +18819,9 @@ type UnicornTemplateIndent = [] | [{
17825
18819
  }]; // ----- unicorn/text-encoding-identifier-case -----
17826
18820
  type UnicornTextEncodingIdentifierCase = [] | [{
17827
18821
  withDash?: boolean;
18822
+ }]; // ----- unicorn/try-complexity -----
18823
+ type UnicornTryComplexity = [] | [{
18824
+ max?: number;
17828
18825
  }]; // ----- unocss/enforce-class-compile -----
17829
18826
  type UnocssEnforceClassCompile = [] | [{
17830
18827
  prefix?: string;
@@ -17947,6 +18944,7 @@ type VueArrayElementNewline = [] | [(_VueArrayElementNewlineBasicConfig | {
17947
18944
  ArrayPattern?: _VueArrayElementNewlineBasicConfig;
17948
18945
  })];
17949
18946
  type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
18947
+ consistent?: boolean;
17950
18948
  multiline?: boolean;
17951
18949
  minItems?: (number | null);
17952
18950
  }); // ----- vue/arrow-spacing -----
@@ -18006,9 +19004,14 @@ type VueCommaDangle = [] | [(_VueCommaDangleValue | {
18006
19004
  imports?: _VueCommaDangleValueWithIgnore;
18007
19005
  exports?: _VueCommaDangleValueWithIgnore;
18008
19006
  functions?: _VueCommaDangleValueWithIgnore;
19007
+ importAttributes?: _VueCommaDangleValueWithIgnore;
19008
+ dynamicImports?: _VueCommaDangleValueWithIgnore;
19009
+ enums?: _VueCommaDangleValueWithIgnore;
19010
+ generics?: _VueCommaDangleValueWithIgnore;
19011
+ tuples?: _VueCommaDangleValueWithIgnore;
18009
19012
  })];
18010
19013
  type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
18011
- type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline"); // ----- vue/comma-spacing -----
19014
+ type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore"); // ----- vue/comma-spacing -----
18012
19015
  type VueCommaSpacing = [] | [{
18013
19016
  before?: boolean;
18014
19017
  after?: boolean;
@@ -18058,6 +19061,10 @@ type VueFirstAttributeLinebreak = [] | [{
18058
19061
  }]; // ----- vue/func-call-spacing -----
18059
19062
  type VueFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
18060
19063
  allowNewlines?: boolean;
19064
+ optionalChain?: {
19065
+ before?: boolean;
19066
+ after?: boolean;
19067
+ };
18061
19068
  }]); // ----- vue/html-button-has-type -----
18062
19069
  type VueHtmlButtonHasType = [] | [{
18063
19070
  button?: boolean;
@@ -18129,6 +19136,7 @@ type VueKeySpacing = [] | [({
18129
19136
  mode?: ("strict" | "minimum");
18130
19137
  beforeColon?: boolean;
18131
19138
  afterColon?: boolean;
19139
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[];
18132
19140
  } | {
18133
19141
  singleLine?: {
18134
19142
  mode?: ("strict" | "minimum");
@@ -18172,18 +19180,6 @@ type VueKeywordSpacing = [] | [{
18172
19180
  before?: boolean;
18173
19181
  after?: boolean;
18174
19182
  };
18175
- as?: {
18176
- before?: boolean;
18177
- after?: boolean;
18178
- };
18179
- async?: {
18180
- before?: boolean;
18181
- after?: boolean;
18182
- };
18183
- await?: {
18184
- before?: boolean;
18185
- after?: boolean;
18186
- };
18187
19183
  boolean?: {
18188
19184
  before?: boolean;
18189
19185
  after?: boolean;
@@ -18276,18 +19272,10 @@ type VueKeywordSpacing = [] | [{
18276
19272
  before?: boolean;
18277
19273
  after?: boolean;
18278
19274
  };
18279
- from?: {
18280
- before?: boolean;
18281
- after?: boolean;
18282
- };
18283
19275
  function?: {
18284
19276
  before?: boolean;
18285
19277
  after?: boolean;
18286
19278
  };
18287
- get?: {
18288
- before?: boolean;
18289
- after?: boolean;
18290
- };
18291
19279
  goto?: {
18292
19280
  before?: boolean;
18293
19281
  after?: boolean;
@@ -18320,10 +19308,6 @@ type VueKeywordSpacing = [] | [{
18320
19308
  before?: boolean;
18321
19309
  after?: boolean;
18322
19310
  };
18323
- let?: {
18324
- before?: boolean;
18325
- after?: boolean;
18326
- };
18327
19311
  long?: {
18328
19312
  before?: boolean;
18329
19313
  after?: boolean;
@@ -18340,10 +19324,6 @@ type VueKeywordSpacing = [] | [{
18340
19324
  before?: boolean;
18341
19325
  after?: boolean;
18342
19326
  };
18343
- of?: {
18344
- before?: boolean;
18345
- after?: boolean;
18346
- };
18347
19327
  package?: {
18348
19328
  before?: boolean;
18349
19329
  after?: boolean;
@@ -18364,10 +19344,6 @@ type VueKeywordSpacing = [] | [{
18364
19344
  before?: boolean;
18365
19345
  after?: boolean;
18366
19346
  };
18367
- set?: {
18368
- before?: boolean;
18369
- after?: boolean;
18370
- };
18371
19347
  short?: {
18372
19348
  before?: boolean;
18373
19349
  after?: boolean;
@@ -18436,10 +19412,66 @@ type VueKeywordSpacing = [] | [{
18436
19412
  before?: boolean;
18437
19413
  after?: boolean;
18438
19414
  };
19415
+ arguments?: {
19416
+ before?: boolean;
19417
+ after?: boolean;
19418
+ };
19419
+ as?: {
19420
+ before?: boolean;
19421
+ after?: boolean;
19422
+ };
19423
+ async?: {
19424
+ before?: boolean;
19425
+ after?: boolean;
19426
+ };
19427
+ await?: {
19428
+ before?: boolean;
19429
+ after?: boolean;
19430
+ };
19431
+ eval?: {
19432
+ before?: boolean;
19433
+ after?: boolean;
19434
+ };
19435
+ from?: {
19436
+ before?: boolean;
19437
+ after?: boolean;
19438
+ };
19439
+ get?: {
19440
+ before?: boolean;
19441
+ after?: boolean;
19442
+ };
19443
+ let?: {
19444
+ before?: boolean;
19445
+ after?: boolean;
19446
+ };
19447
+ of?: {
19448
+ before?: boolean;
19449
+ after?: boolean;
19450
+ };
19451
+ set?: {
19452
+ before?: boolean;
19453
+ after?: boolean;
19454
+ };
19455
+ type?: {
19456
+ before?: boolean;
19457
+ after?: boolean;
19458
+ };
19459
+ using?: {
19460
+ before?: boolean;
19461
+ after?: boolean;
19462
+ };
18439
19463
  yield?: {
18440
19464
  before?: boolean;
18441
19465
  after?: boolean;
18442
19466
  };
19467
+ accessor?: {
19468
+ before?: boolean;
19469
+ after?: boolean;
19470
+ };
19471
+ satisfies?: {
19472
+ before?: boolean;
19473
+ after?: boolean;
19474
+ };
18443
19475
  };
18444
19476
  }]; // ----- vue/match-component-file-name -----
18445
19477
  type VueMatchComponentFileName = [] | [{
@@ -18559,7 +19591,9 @@ type VueMultilineHtmlElementContentNewline = [] | [{
18559
19591
  ignores?: string[];
18560
19592
  allowEmptyLines?: boolean;
18561
19593
  }]; // ----- vue/multiline-ternary -----
18562
- type VueMultilineTernary = [] | [("always" | "always-multiline" | "never")]; // ----- vue/mustache-interpolation-spacing -----
19594
+ type VueMultilineTernary = [] | [("always" | "always-multiline" | "never")] | [("always" | "always-multiline" | "never"), {
19595
+ ignoreJSX?: boolean;
19596
+ }]; // ----- vue/mustache-interpolation-spacing -----
18563
19597
  type VueMustacheInterpolationSpacing = [] | [("always" | "never")]; // ----- vue/new-line-between-multi-line-property -----
18564
19598
  type VueNewLineBetweenMultiLineProperty = [] | [{
18565
19599
  minLineOfMultilineProperty?: number;
@@ -18619,6 +19653,13 @@ type VueNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
18619
19653
  enforceForNewInMemberExpressions?: boolean;
18620
19654
  enforceForFunctionPrototypeMethods?: boolean;
18621
19655
  allowParensAfterCommentPattern?: string;
19656
+ nestedConditionalExpressions?: boolean;
19657
+ allowNodesInSpreadElement?: {
19658
+ ConditionalExpression?: boolean;
19659
+ LogicalExpression?: boolean;
19660
+ AwaitExpression?: boolean;
19661
+ };
19662
+ ignoredNodes?: string[];
18622
19663
  }]); // ----- vue/no-implicit-coercion -----
18623
19664
  type VueNoImplicitCoercion = [] | [{
18624
19665
  boolean?: boolean;
@@ -18842,14 +19883,41 @@ type VueObjectCurlyNewline = [] | [((("always" | "never") | {
18842
19883
  minProperties?: number;
18843
19884
  consistent?: boolean;
18844
19885
  });
19886
+ TSTypeLiteral?: (("always" | "never") | {
19887
+ multiline?: boolean;
19888
+ minProperties?: number;
19889
+ consistent?: boolean;
19890
+ });
19891
+ TSInterfaceBody?: (("always" | "never") | {
19892
+ multiline?: boolean;
19893
+ minProperties?: number;
19894
+ consistent?: boolean;
19895
+ });
19896
+ TSEnumBody?: (("always" | "never") | {
19897
+ multiline?: boolean;
19898
+ minProperties?: number;
19899
+ consistent?: boolean;
19900
+ });
18845
19901
  })]; // ----- vue/object-curly-spacing -----
18846
19902
  type VueObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
18847
19903
  arraysInObjects?: boolean;
18848
19904
  objectsInObjects?: boolean;
19905
+ overrides?: {
19906
+ ObjectPattern?: ("always" | "never");
19907
+ ObjectExpression?: ("always" | "never");
19908
+ ImportDeclaration?: ("always" | "never");
19909
+ ImportAttributes?: ("always" | "never");
19910
+ ExportNamedDeclaration?: ("always" | "never");
19911
+ ExportAllDeclaration?: ("always" | "never");
19912
+ TSMappedType?: ("always" | "never");
19913
+ TSTypeLiteral?: ("always" | "never");
19914
+ TSInterfaceBody?: ("always" | "never");
19915
+ TSEnumBody?: ("always" | "never");
19916
+ };
19917
+ emptyObjects?: ("ignore" | "always" | "never");
18849
19918
  }]; // ----- vue/object-property-newline -----
18850
19919
  type VueObjectPropertyNewline = [] | [{
18851
19920
  allowAllPropertiesOnSameLine?: boolean;
18852
- allowMultiplePropertiesPerLine?: boolean;
18853
19921
  }]; // ----- vue/object-shorthand -----
18854
19922
  type VueObjectShorthand = ([] | [("always" | "methods" | "properties" | "never" | "consistent" | "consistent-as-needed")] | [] | [("always" | "methods" | "properties")] | [("always" | "methods" | "properties"), {
18855
19923
  avoidQuotes?: boolean;
@@ -18859,7 +19927,7 @@ type VueObjectShorthand = ([] | [("always" | "methods" | "properties" | "never"
18859
19927
  avoidQuotes?: boolean;
18860
19928
  avoidExplicitReturnArrows?: boolean;
18861
19929
  }]); // ----- vue/operator-linebreak -----
18862
- type VueOperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [("after" | "before" | "none" | null), {
19930
+ type VueOperatorLinebreak = [] | [(("after" | "before" | "none") | null)] | [(("after" | "before" | "none") | null), {
18863
19931
  overrides?: {
18864
19932
  [k: string]: ("after" | "before" | "none" | "ignore") | undefined;
18865
19933
  };
@@ -18947,6 +20015,7 @@ type VueSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
18947
20015
  }]; // ----- vue/space-infix-ops -----
18948
20016
  type VueSpaceInfixOps = [] | [{
18949
20017
  int32Hint?: boolean;
20018
+ ignoreTypes?: boolean;
18950
20019
  }]; // ----- vue/space-unary-ops -----
18951
20020
  type VueSpaceUnaryOps = [] | [{
18952
20021
  words?: boolean;
@@ -19094,6 +20163,10 @@ type YamlNoMultipleEmptyLines = [] | [{
19094
20163
  max: number;
19095
20164
  maxEOF?: number;
19096
20165
  maxBOF?: number;
20166
+ }]; // ----- yaml/no-trailing-spaces -----
20167
+ type YamlNoTrailingSpaces = [] | [{
20168
+ skipBlankLines?: boolean;
20169
+ ignoreComments?: boolean;
19097
20170
  }]; // ----- yaml/plain-scalar -----
19098
20171
  type YamlPlainScalar = [] | [("always" | "never")] | [("always" | "never"), {
19099
20172
  ignorePatterns?: string[];
@@ -19188,7 +20261,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
19188
20261
  exceptRange?: boolean;
19189
20262
  onlyEquality?: boolean;
19190
20263
  }]; // Names of all the configs
19191
- type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files';
20264
+ type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/setup' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files';
19192
20265
  //#endregion
19193
20266
  //#region src/vender/prettier-types.d.ts
19194
20267
  /**