@pengzhanbo/eslint-config 2.9.2 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +944 -529
- package/dist/index.js +10 -8
- package/package.json +48 -48
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,11 @@ interface RuleOptions {
|
|
|
194
194
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/prefer-static-string-properties.md
|
|
195
195
|
*/
|
|
196
196
|
'angular-template/prefer-static-string-properties'?: Linter.RuleEntry<AngularTemplatePreferStaticStringProperties>;
|
|
197
|
+
/**
|
|
198
|
+
* Suggests using [style] bindings over ngStyle where applicable
|
|
199
|
+
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/prefer-style-binding.md
|
|
200
|
+
*/
|
|
201
|
+
'angular-template/prefer-style-binding'?: Linter.RuleEntry<[]>;
|
|
197
202
|
/**
|
|
198
203
|
* Ensure that template literals are used instead of concatenating strings or expressions.
|
|
199
204
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/prefer-template-literal.md
|
|
@@ -273,7 +278,7 @@ interface RuleOptions {
|
|
|
273
278
|
* Requires inject() calls to be declared at the top of the class, before any other member
|
|
274
279
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/inject-at-top.md
|
|
275
280
|
*/
|
|
276
|
-
'angular/inject-at-top'?: Linter.RuleEntry<
|
|
281
|
+
'angular/inject-at-top'?: Linter.RuleEntry<AngularInjectAtTop>;
|
|
277
282
|
/**
|
|
278
283
|
* Angular Lifecycle methods should not be async. Angular does not wait for async lifecycle but the code incorrectly suggests it does.
|
|
279
284
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-async-lifecycle-method.md
|
|
@@ -408,7 +413,7 @@ interface RuleOptions {
|
|
|
408
413
|
* Use `model` instead of `input` and `output` for two-way bindings
|
|
409
414
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-signal-model.md
|
|
410
415
|
*/
|
|
411
|
-
'angular/prefer-signal-model'?: Linter.RuleEntry<
|
|
416
|
+
'angular/prefer-signal-model'?: Linter.RuleEntry<AngularPreferSignalModel>;
|
|
412
417
|
/**
|
|
413
418
|
* Use readonly signals instead of `@Input()`, `@ViewChild()` and other legacy decorators
|
|
414
419
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-signals.md
|
|
@@ -418,7 +423,12 @@ interface RuleOptions {
|
|
|
418
423
|
* Ensures Components, Directives and Pipes do not opt out of standalone.
|
|
419
424
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md
|
|
420
425
|
*/
|
|
421
|
-
'angular/prefer-standalone'?: Linter.RuleEntry<
|
|
426
|
+
'angular/prefer-standalone'?: Linter.RuleEntry<AngularPreferStandalone>;
|
|
427
|
+
/**
|
|
428
|
+
* Ensures that reactive contexts such as computed(), linkedSignal() and effect() read at least one reactive value (a signal). A reactive context with no reactive dependencies never re-runs, which is almost always a mistake.
|
|
429
|
+
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/reactive-context-must-read-signal.md
|
|
430
|
+
*/
|
|
431
|
+
'angular/reactive-context-must-read-signal'?: Linter.RuleEntry<AngularReactiveContextMustReadSignal>;
|
|
422
432
|
/**
|
|
423
433
|
* The ./ and ../ prefix is standard syntax for relative URLs; don't depend on Angular's current ability to do without that prefix.
|
|
424
434
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/relative-url-prefix.md
|
|
@@ -440,7 +450,7 @@ interface RuleOptions {
|
|
|
440
450
|
*/
|
|
441
451
|
'angular/runtime-localize'?: Linter.RuleEntry<[]>;
|
|
442
452
|
/**
|
|
443
|
-
* Ensures that keys in type decorators (Component, Directive, NgModule, Pipe) are sorted in a consistent order
|
|
453
|
+
* Ensures that keys in type decorators (Component, Directive, Injectable, NgModule, Pipe) are sorted in a consistent order
|
|
444
454
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-keys-in-type-decorator.md
|
|
445
455
|
*/
|
|
446
456
|
'angular/sort-keys-in-type-decorator'?: Linter.RuleEntry<AngularSortKeysInTypeDecorator>;
|
|
@@ -1217,7 +1227,7 @@ interface RuleOptions {
|
|
|
1217
1227
|
* Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
|
|
1218
1228
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
|
|
1219
1229
|
*/
|
|
1220
|
-
'jsdoc/check-syntax'?: Linter.RuleEntry<
|
|
1230
|
+
'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
|
|
1221
1231
|
/**
|
|
1222
1232
|
* Reports invalid block tag names.
|
|
1223
1233
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
@@ -1532,6 +1542,11 @@ interface RuleOptions {
|
|
|
1532
1542
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
1533
1543
|
*/
|
|
1534
1544
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Disallows (or requires descriptions for) `@ts-<directive>` comments, mirroring `@typescript-eslint/ban-ts-comment`.
|
|
1547
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-ban-ts-comment.md#repos-sticky-header
|
|
1548
|
+
*/
|
|
1549
|
+
'jsdoc/ts-ban-ts-comment'?: Linter.RuleEntry<JsdocTsBanTsComment>;
|
|
1535
1550
|
/**
|
|
1536
1551
|
* Prefers either function properties or method signatures
|
|
1537
1552
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
@@ -3754,7 +3769,7 @@ interface RuleOptions {
|
|
|
3754
3769
|
* Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
|
|
3755
3770
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
3756
3771
|
*/
|
|
3757
|
-
'react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<
|
|
3772
|
+
'react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<ReactDomNoUnsafeTargetBlank>;
|
|
3758
3773
|
/**
|
|
3759
3774
|
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
3760
3775
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
@@ -3772,7 +3787,7 @@ interface RuleOptions {
|
|
|
3772
3787
|
'react/error-boundaries'?: Linter.RuleEntry<[]>;
|
|
3773
3788
|
/**
|
|
3774
3789
|
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
3775
|
-
* @see https://github.com/
|
|
3790
|
+
* @see https://github.com/react/react/issues/14920
|
|
3776
3791
|
*/
|
|
3777
3792
|
'react/exhaustive-deps'?: Linter.RuleEntry<ReactExhaustiveDeps>;
|
|
3778
3793
|
/**
|
|
@@ -3781,7 +3796,7 @@ interface RuleOptions {
|
|
|
3781
3796
|
*/
|
|
3782
3797
|
'react/globals'?: Linter.RuleEntry<[]>;
|
|
3783
3798
|
/**
|
|
3784
|
-
* Validates against
|
|
3799
|
+
* Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
|
|
3785
3800
|
* @see https://eslint-react.xyz/docs/rules/immutability
|
|
3786
3801
|
*/
|
|
3787
3802
|
'react/immutability'?: Linter.RuleEntry<[]>;
|
|
@@ -3946,7 +3961,7 @@ interface RuleOptions {
|
|
|
3946
3961
|
*/
|
|
3947
3962
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
3948
3963
|
/**
|
|
3949
|
-
* Enforces that
|
|
3964
|
+
* Enforces that anonymous components wrapped in 'memo' or 'forwardRef' have a 'displayName' that can be used in DevTools.
|
|
3950
3965
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
3951
3966
|
*/
|
|
3952
3967
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
@@ -3971,7 +3986,7 @@ interface RuleOptions {
|
|
|
3971
3986
|
*/
|
|
3972
3987
|
'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
3973
3988
|
/**
|
|
3974
|
-
* Disallows
|
|
3989
|
+
* Disallows declaring lazy components that wrap dynamic imports inside other components or hooks.
|
|
3975
3990
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
3976
3991
|
*/
|
|
3977
3992
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
@@ -4011,7 +4026,7 @@ interface RuleOptions {
|
|
|
4011
4026
|
*/
|
|
4012
4027
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
4013
4028
|
/**
|
|
4014
|
-
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
4029
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider' or the '<Context>' shorthand in React 19 and above.
|
|
4015
4030
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
4016
4031
|
*/
|
|
4017
4032
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -4041,7 +4056,7 @@ interface RuleOptions {
|
|
|
4041
4056
|
*/
|
|
4042
4057
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
4043
4058
|
/**
|
|
4044
|
-
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
4059
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions or construct known-impure objects during render.
|
|
4045
4060
|
* @see https://eslint-react.xyz/docs/rules/purity
|
|
4046
4061
|
*/
|
|
4047
4062
|
'react/purity'?: Linter.RuleEntry<[]>;
|
|
@@ -4081,7 +4096,7 @@ interface RuleOptions {
|
|
|
4081
4096
|
*/
|
|
4082
4097
|
'react/unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
4083
4098
|
/**
|
|
4084
|
-
* Validates
|
|
4099
|
+
* Validates 'useMemo' usage: the result must be used and the callback must take no parameters, not be async or a generator, not reassign outer variables, and return a value.
|
|
4085
4100
|
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
4086
4101
|
*/
|
|
4087
4102
|
'react/use-memo'?: Linter.RuleEntry<[]>;
|
|
@@ -4127,7 +4142,7 @@ interface RuleOptions {
|
|
|
4127
4142
|
'react/x-error-boundaries'?: Linter.RuleEntry<[]>;
|
|
4128
4143
|
/**
|
|
4129
4144
|
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
4130
|
-
* @see https://github.com/
|
|
4145
|
+
* @see https://github.com/react/react/issues/14920
|
|
4131
4146
|
*/
|
|
4132
4147
|
'react/x-exhaustive-deps'?: Linter.RuleEntry<ReactXExhaustiveDeps>;
|
|
4133
4148
|
/**
|
|
@@ -4136,7 +4151,7 @@ interface RuleOptions {
|
|
|
4136
4151
|
*/
|
|
4137
4152
|
'react/x-globals'?: Linter.RuleEntry<[]>;
|
|
4138
4153
|
/**
|
|
4139
|
-
* Validates against
|
|
4154
|
+
* Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
|
|
4140
4155
|
* @see https://eslint-react.xyz/docs/rules/immutability
|
|
4141
4156
|
*/
|
|
4142
4157
|
'react/x-immutability'?: Linter.RuleEntry<[]>;
|
|
@@ -4246,7 +4261,7 @@ interface RuleOptions {
|
|
|
4246
4261
|
*/
|
|
4247
4262
|
'react/x-no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
4248
4263
|
/**
|
|
4249
|
-
* Enforces that
|
|
4264
|
+
* Enforces that anonymous components wrapped in 'memo' or 'forwardRef' have a 'displayName' that can be used in DevTools.
|
|
4250
4265
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
4251
4266
|
*/
|
|
4252
4267
|
'react/x-no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
@@ -4271,7 +4286,7 @@ interface RuleOptions {
|
|
|
4271
4286
|
*/
|
|
4272
4287
|
'react/x-no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
4273
4288
|
/**
|
|
4274
|
-
* Disallows
|
|
4289
|
+
* Disallows declaring lazy components that wrap dynamic imports inside other components or hooks.
|
|
4275
4290
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
4276
4291
|
*/
|
|
4277
4292
|
'react/x-no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
@@ -4311,7 +4326,7 @@ interface RuleOptions {
|
|
|
4311
4326
|
*/
|
|
4312
4327
|
'react/x-no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
4313
4328
|
/**
|
|
4314
|
-
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
4329
|
+
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider' or the '<Context>' shorthand in React 19 and above.
|
|
4315
4330
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
4316
4331
|
*/
|
|
4317
4332
|
'react/x-no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -4341,7 +4356,7 @@ interface RuleOptions {
|
|
|
4341
4356
|
*/
|
|
4342
4357
|
'react/x-no-use-context'?: Linter.RuleEntry<[]>;
|
|
4343
4358
|
/**
|
|
4344
|
-
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
4359
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions or construct known-impure objects during render.
|
|
4345
4360
|
* @see https://eslint-react.xyz/docs/rules/purity
|
|
4346
4361
|
*/
|
|
4347
4362
|
'react/x-purity'?: Linter.RuleEntry<[]>;
|
|
@@ -4376,7 +4391,7 @@ interface RuleOptions {
|
|
|
4376
4391
|
*/
|
|
4377
4392
|
'react/x-unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
4378
4393
|
/**
|
|
4379
|
-
* Validates
|
|
4394
|
+
* Validates 'useMemo' usage: the result must be used and the callback must take no parameters, not be async or a generator, not reassign outer variables, and return a value.
|
|
4380
4395
|
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
4381
4396
|
*/
|
|
4382
4397
|
'react/x-use-memo'?: Linter.RuleEntry<[]>;
|
|
@@ -4884,6 +4899,11 @@ interface RuleOptions {
|
|
|
4884
4899
|
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
|
|
4885
4900
|
*/
|
|
4886
4901
|
'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
|
|
4902
|
+
/**
|
|
4903
|
+
* Disallow boolean values on enumerated attributes like draggable and tristate aria-*, which take string tokens — a boolean false removes the attribute instead of writing "false".
|
|
4904
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-boolean-enumerated-attribute.md
|
|
4905
|
+
*/
|
|
4906
|
+
'solid/no-boolean-enumerated-attribute'?: Linter.RuleEntry<[]>;
|
|
4887
4907
|
/**
|
|
4888
4908
|
* Disallow browser-only globals inside server functions, which run exclusively on the server.
|
|
4889
4909
|
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
|
|
@@ -4934,11 +4954,26 @@ interface RuleOptions {
|
|
|
4934
4954
|
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
|
|
4935
4955
|
*/
|
|
4936
4956
|
'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
|
|
4957
|
+
/**
|
|
4958
|
+
* Disallow mutating a store's read proxy; store state changes only through the setter's mutable draft.
|
|
4959
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-store-mutation-outside-setter.md
|
|
4960
|
+
*/
|
|
4961
|
+
'solid/no-store-mutation-outside-setter'?: Linter.RuleEntry<[]>;
|
|
4937
4962
|
/**
|
|
4938
4963
|
* Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
|
|
4939
4964
|
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
|
|
4940
4965
|
*/
|
|
4941
4966
|
'solid/no-unknown-namespaces'?: Linter.RuleEntry<SolidNoUnknownNamespaces>;
|
|
4967
|
+
/**
|
|
4968
|
+
* Disallow signals that are never written (use a plain value) or never read (dead state).
|
|
4969
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unused-signal.md
|
|
4970
|
+
*/
|
|
4971
|
+
'solid/no-unused-signal'?: Linter.RuleEntry<[]>;
|
|
4972
|
+
/**
|
|
4973
|
+
* Disallow writing signals or stores inside `createMemo`, the compute half of `createEffect`, or a component body, which are pure owned scopes.
|
|
4974
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-write-in-pure-computation.md
|
|
4975
|
+
*/
|
|
4976
|
+
'solid/no-write-in-pure-computation'?: Linter.RuleEntry<[]>;
|
|
4942
4977
|
/**
|
|
4943
4978
|
* Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.
|
|
4944
4979
|
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-classlist.md
|
|
@@ -6744,6 +6779,11 @@ interface RuleOptions {
|
|
|
6744
6779
|
* @see https://typescript-eslint.io/rules/no-for-in-array
|
|
6745
6780
|
*/
|
|
6746
6781
|
'ts/no-for-in-array'?: Linter.RuleEntry<[]>;
|
|
6782
|
+
/**
|
|
6783
|
+
* Disallow type operations that resolve to the "empty object" type
|
|
6784
|
+
* @see https://typescript-eslint.io/rules/no-generated-empty-object-type
|
|
6785
|
+
*/
|
|
6786
|
+
'ts/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
|
|
6747
6787
|
/**
|
|
6748
6788
|
* Disallow the use of `eval()`-like functions
|
|
6749
6789
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
@@ -6943,6 +6983,11 @@ interface RuleOptions {
|
|
|
6943
6983
|
* @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
|
|
6944
6984
|
*/
|
|
6945
6985
|
'ts/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
|
|
6986
|
+
/**
|
|
6987
|
+
* Disallow assigning non-enum values to enum typed locations
|
|
6988
|
+
* @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
|
|
6989
|
+
*/
|
|
6990
|
+
'ts/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
|
|
6946
6991
|
/**
|
|
6947
6992
|
* Disallow comparing an enum value with a non-enum value
|
|
6948
6993
|
* @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
|
|
@@ -7219,1740 +7264,2002 @@ interface RuleOptions {
|
|
|
7219
7264
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7220
7265
|
/**
|
|
7221
7266
|
* Prefer better DOM traversal APIs.
|
|
7222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/better-dom-traversing.md
|
|
7223
7268
|
*/
|
|
7224
7269
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
7225
7270
|
/**
|
|
7226
7271
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
7227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
7228
7273
|
* @deprecated
|
|
7229
7274
|
*/
|
|
7230
7275
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
7231
7276
|
/**
|
|
7232
7277
|
* Enforce a specific parameter name in catch clauses.
|
|
7233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/catch-error-name.md
|
|
7234
7279
|
*/
|
|
7235
7280
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
7236
7281
|
/**
|
|
7237
7282
|
* Enforce consistent class references in static methods.
|
|
7238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/class-reference-in-static-methods.md
|
|
7239
7284
|
*/
|
|
7240
7285
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
7286
|
+
/**
|
|
7287
|
+
* Enforce consistent spacing before and after commas in JSON and SOML.
|
|
7288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comma-spacing.md
|
|
7289
|
+
*/
|
|
7290
|
+
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
7241
7291
|
/**
|
|
7242
7292
|
* Enforce better comment content.
|
|
7243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comment-content.md
|
|
7244
7294
|
*/
|
|
7245
7295
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
7246
7296
|
/**
|
|
7247
7297
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
7248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-arrow-return-style.md
|
|
7249
7299
|
*/
|
|
7250
7300
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
7251
7301
|
/**
|
|
7252
7302
|
* Enforce consistent assertion style with `node:assert`.
|
|
7253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-assert.md
|
|
7254
7304
|
*/
|
|
7255
7305
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
7256
7306
|
/**
|
|
7257
7307
|
* Enforce consistent naming for boolean names.
|
|
7258
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-boolean-name.md
|
|
7259
7309
|
*/
|
|
7260
7310
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
7261
7311
|
/**
|
|
7262
7312
|
* Enforce consistent class member order.
|
|
7263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-class-member-order.md
|
|
7264
7314
|
*/
|
|
7265
7315
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
7266
7316
|
/**
|
|
7267
7317
|
* Enforce consistent spelling of compound words in identifiers.
|
|
7268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-compound-words.md
|
|
7269
7319
|
*/
|
|
7270
7320
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
7271
7321
|
/**
|
|
7272
7322
|
* Enforce consistent conditional object spread style.
|
|
7273
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
7274
7324
|
*/
|
|
7275
7325
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
7276
7326
|
/**
|
|
7277
7327
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-date-clone.md
|
|
7279
7329
|
*/
|
|
7280
7330
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
7281
7331
|
/**
|
|
7282
7332
|
* Use destructured variables over properties.
|
|
7283
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-destructuring.md
|
|
7284
7334
|
*/
|
|
7285
7335
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
7286
7336
|
/**
|
|
7287
7337
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7288
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-empty-array-spread.md
|
|
7289
7339
|
*/
|
|
7290
7340
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
7291
7341
|
/**
|
|
7292
7342
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7293
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-existence-index-check.md
|
|
7294
7344
|
*/
|
|
7295
7345
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
7296
7346
|
/**
|
|
7297
7347
|
* Enforce consistent decorator position on exported classes.
|
|
7298
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-export-decorator-position.md
|
|
7299
7349
|
*/
|
|
7300
7350
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
7301
7351
|
/**
|
|
7302
7352
|
* Move function definitions to the highest possible scope.
|
|
7303
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-scoping.md
|
|
7304
7354
|
*/
|
|
7305
7355
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
7306
7356
|
/**
|
|
7307
7357
|
* Enforce function syntax by role.
|
|
7308
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-style.md
|
|
7309
7359
|
*/
|
|
7310
7360
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
7311
7361
|
/**
|
|
7312
7362
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
7313
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-json-file-read.md
|
|
7314
7364
|
*/
|
|
7315
7365
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
7316
7366
|
/**
|
|
7317
7367
|
* Enforce consistent optional chaining for same-base member access.
|
|
7318
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-optional-chaining.md
|
|
7319
7369
|
*/
|
|
7320
7370
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
7321
7371
|
/**
|
|
7322
7372
|
* Enforce consistent style for escaping `${` in template literals.
|
|
7323
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-template-literal-escape.md
|
|
7324
7374
|
*/
|
|
7325
7375
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
7326
7376
|
/**
|
|
7327
7377
|
* Enforce consistent labels on tuple type elements.
|
|
7328
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-tuple-labels.md
|
|
7329
7379
|
*/
|
|
7330
7380
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
7331
7381
|
/**
|
|
7332
7382
|
* Enforce correct `Error` subclassing.
|
|
7333
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/custom-error-definition.md
|
|
7334
7384
|
*/
|
|
7335
7385
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
7336
7386
|
/**
|
|
7337
7387
|
* Enforce consistent default export declarations.
|
|
7338
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/default-export-style.md
|
|
7339
7389
|
*/
|
|
7340
7390
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
7341
7391
|
/**
|
|
7342
7392
|
* Enforce consistent style for DOM element dataset access.
|
|
7343
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/dom-node-dataset.md
|
|
7344
7394
|
*/
|
|
7345
7395
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
7346
7396
|
/**
|
|
7347
7397
|
* Enforce no spaces between braces.
|
|
7348
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/empty-brace-spaces.md
|
|
7349
7399
|
*/
|
|
7350
7400
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
7351
7401
|
/**
|
|
7352
7402
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/error-message.md
|
|
7354
7404
|
*/
|
|
7355
7405
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
7356
7406
|
/**
|
|
7357
7407
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7358
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/escape-case.md
|
|
7359
7409
|
*/
|
|
7360
7410
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
7361
7411
|
/**
|
|
7362
7412
|
* Add expiration conditions to TODO comments.
|
|
7363
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/expiring-todo-comments.md
|
|
7364
7414
|
*/
|
|
7365
7415
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
7366
7416
|
/**
|
|
7367
7417
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7368
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-length-check.md
|
|
7369
7419
|
*/
|
|
7370
7420
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
7371
7421
|
/**
|
|
7372
7422
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
7373
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-timer-delay.md
|
|
7374
7424
|
*/
|
|
7375
7425
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
7376
7426
|
/**
|
|
7377
7427
|
* Enforce a case style for filenames and directory names.
|
|
7378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/filename-case.md
|
|
7379
7429
|
*/
|
|
7380
7430
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
7381
7431
|
/**
|
|
7382
7432
|
* Require identifiers to match a specified regular expression.
|
|
7383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/id-match.md
|
|
7384
7434
|
*/
|
|
7385
7435
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
7386
7436
|
/**
|
|
7387
7437
|
* Enforce specific import styles per module.
|
|
7388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/import-style.md
|
|
7389
7439
|
*/
|
|
7390
7440
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
7441
|
+
/**
|
|
7442
|
+
* Enforce consistent indentation in JSON and CSS.
|
|
7443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/indent.md
|
|
7444
|
+
*/
|
|
7445
|
+
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
7391
7446
|
/**
|
|
7392
7447
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
7393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/isolated-functions.md
|
|
7394
7449
|
*/
|
|
7395
7450
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
7396
7451
|
/**
|
|
7397
7452
|
* Enforce a consistent style for optional loop sources.
|
|
7398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/iteration-fallback-style.md
|
|
7399
7454
|
*/
|
|
7400
7455
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
7456
|
+
/**
|
|
7457
|
+
* Enforce a case style for data keys.
|
|
7458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/key-name-casing.md
|
|
7459
|
+
*/
|
|
7460
|
+
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
7401
7461
|
/**
|
|
7402
7462
|
* Require or disallow logical assignment operator shorthand
|
|
7403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/logical-assignment-operators.md
|
|
7404
7464
|
*/
|
|
7405
7465
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
7406
7466
|
/**
|
|
7407
7467
|
* Limit the depth of nested calls.
|
|
7408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/max-nested-calls.md
|
|
7409
7469
|
*/
|
|
7410
7470
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
7411
7471
|
/**
|
|
7412
7472
|
* Enforce replacements for variable, property, and filenames.
|
|
7413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/name-replacements.md
|
|
7414
7474
|
*/
|
|
7415
7475
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
7416
7476
|
/**
|
|
7417
7477
|
* Enforce correct use of `new` for builtin constructors.
|
|
7418
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/new-for-builtins.md
|
|
7419
7479
|
*/
|
|
7420
7480
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
7421
7481
|
/**
|
|
7422
7482
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
7424
7484
|
*/
|
|
7425
7485
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
7426
7486
|
/**
|
|
7427
7487
|
* Disallow recursive access to `this` within getters and setters.
|
|
7428
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accessor-recursion.md
|
|
7429
7489
|
*/
|
|
7430
7490
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
7431
7491
|
/**
|
|
7432
7492
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
7433
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
7434
7494
|
*/
|
|
7435
7495
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
7436
7496
|
/**
|
|
7437
7497
|
* Disallow anonymous functions and classes as the default export.
|
|
7438
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-anonymous-default-export.md
|
|
7439
7499
|
*/
|
|
7440
7500
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
7441
7501
|
/**
|
|
7442
7502
|
* Prevent passing a function reference directly to iterator methods.
|
|
7443
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-callback-reference.md
|
|
7444
7504
|
*/
|
|
7445
7505
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
7446
7506
|
/**
|
|
7447
7507
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
7448
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-concat-in-loop.md
|
|
7449
7509
|
*/
|
|
7450
7510
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
7451
7511
|
/**
|
|
7452
7512
|
* Disallow using reference values as `Array#fill()` values.
|
|
7453
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
7454
7514
|
*/
|
|
7455
7515
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
7456
7516
|
/**
|
|
7457
7517
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
7458
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-from-fill.md
|
|
7459
7519
|
*/
|
|
7460
7520
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
7461
7521
|
/**
|
|
7462
7522
|
* Disallow front-of-array mutation.
|
|
7463
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-front-mutation.md
|
|
7464
7524
|
*/
|
|
7465
7525
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
7466
7526
|
/**
|
|
7467
7527
|
* Disallow using the `this` argument in array methods.
|
|
7468
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-method-this-argument.md
|
|
7469
7529
|
*/
|
|
7470
7530
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
7471
7531
|
/**
|
|
7472
7532
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7473
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
7474
7534
|
* @deprecated
|
|
7475
7535
|
*/
|
|
7476
7536
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
7477
7537
|
/**
|
|
7478
7538
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reduce.md
|
|
7480
7540
|
*/
|
|
7481
7541
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
7482
7542
|
/**
|
|
7483
7543
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
7484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reverse.md
|
|
7485
7545
|
*/
|
|
7486
7546
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
7487
7547
|
/**
|
|
7488
7548
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
7489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort.md
|
|
7490
7550
|
*/
|
|
7491
7551
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
7492
7552
|
/**
|
|
7493
7553
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
7494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
7495
7555
|
*/
|
|
7496
7556
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
7497
7557
|
/**
|
|
7498
7558
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
7499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-splice.md
|
|
7500
7560
|
*/
|
|
7501
7561
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
7502
7562
|
/**
|
|
7503
|
-
* Disallow asterisk prefixes in
|
|
7504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7563
|
+
* Disallow asterisk prefixes and shared indentation in multiline comments.
|
|
7564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
7505
7565
|
*/
|
|
7506
7566
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
7567
|
+
/**
|
|
7568
|
+
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
7569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-iterator-callback.md
|
|
7570
|
+
*/
|
|
7571
|
+
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
7507
7572
|
/**
|
|
7508
7573
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
7509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-promise-finally.md
|
|
7510
7575
|
*/
|
|
7511
7576
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
7512
7577
|
/**
|
|
7513
7578
|
* Disallow member access from await expression.
|
|
7514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-expression-member.md
|
|
7515
7580
|
*/
|
|
7516
7581
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
7517
7582
|
/**
|
|
7518
7583
|
* Disallow using `await` in `Promise` method parameters.
|
|
7519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-in-promise-methods.md
|
|
7520
7585
|
*/
|
|
7521
7586
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7522
7587
|
/**
|
|
7523
7588
|
* Disallow barrel files.
|
|
7524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-barrel-files.md
|
|
7525
7590
|
*/
|
|
7526
7591
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
7527
7592
|
/**
|
|
7528
7593
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
7529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-blob-to-file.md
|
|
7530
7595
|
*/
|
|
7531
7596
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
7532
7597
|
/**
|
|
7533
7598
|
* Disallow boolean-returning sort comparators.
|
|
7534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
7535
7600
|
*/
|
|
7536
7601
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
7537
7602
|
/**
|
|
7538
|
-
* Disallow `break` and `continue` in nested loops and switches inside loops.
|
|
7539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7603
|
+
* Disallow `break` and optionally `continue` in nested loops and switches inside loops.
|
|
7604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-break-in-nested-loop.md
|
|
7540
7605
|
*/
|
|
7541
|
-
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<
|
|
7606
|
+
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
7542
7607
|
/**
|
|
7543
7608
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
7544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-canvas-to-image.md
|
|
7545
7610
|
*/
|
|
7546
7611
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
7547
7612
|
/**
|
|
7548
7613
|
* Disallow chained comparisons such as `a < b < c`.
|
|
7549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-chained-comparison.md
|
|
7550
7615
|
*/
|
|
7551
7616
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
7552
7617
|
/**
|
|
7553
7618
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
7554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-collection-bracket-access.md
|
|
7555
7620
|
*/
|
|
7556
7621
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
7557
7622
|
/**
|
|
7558
7623
|
* Disallow dynamic object property existence checks.
|
|
7559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-computed-property-existence-check.md
|
|
7560
7625
|
*/
|
|
7561
7626
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
7627
|
+
/**
|
|
7628
|
+
* Disallow conflicting CSS query and HTML form constraints.
|
|
7629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-conflicting-constraints.md
|
|
7630
|
+
*/
|
|
7631
|
+
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
7562
7632
|
/**
|
|
7563
7633
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
7564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-splice.md
|
|
7565
7635
|
*/
|
|
7566
7636
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
7567
7637
|
/**
|
|
7568
7638
|
* Disallow confusing uses of `Array#with()`.
|
|
7569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-with.md
|
|
7570
7640
|
*/
|
|
7571
7641
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
7572
7642
|
/**
|
|
7573
7643
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-console-spaces.md
|
|
7575
7645
|
*/
|
|
7576
7646
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
7577
7647
|
/**
|
|
7578
7648
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
7579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-constant-zero-expression.md
|
|
7580
7650
|
*/
|
|
7581
7651
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
7582
7652
|
/**
|
|
7583
7653
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
7584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
7585
7655
|
*/
|
|
7586
7656
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
7657
|
+
/**
|
|
7658
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
7659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
7660
|
+
* @deprecated
|
|
7661
|
+
*/
|
|
7662
|
+
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
7587
7663
|
/**
|
|
7588
7664
|
* Do not use `document.cookie` directly.
|
|
7589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-document-cookie.md
|
|
7590
7666
|
*/
|
|
7591
7667
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
7592
7668
|
/**
|
|
7593
7669
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
7594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-double-comparison.md
|
|
7595
7671
|
*/
|
|
7596
7672
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
7673
|
+
/**
|
|
7674
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
7675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
7676
|
+
* @deprecated
|
|
7677
|
+
*/
|
|
7678
|
+
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
7679
|
+
/**
|
|
7680
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
7681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
7682
|
+
* @deprecated
|
|
7683
|
+
*/
|
|
7684
|
+
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
7597
7685
|
/**
|
|
7598
7686
|
* Disallow duplicate adjacent branches in if chains.
|
|
7599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-if-branches.md
|
|
7600
7688
|
*/
|
|
7601
7689
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
7602
7690
|
/**
|
|
7603
7691
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
7604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
7605
7693
|
*/
|
|
7606
7694
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
7607
7695
|
/**
|
|
7608
7696
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
7609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-loops.md
|
|
7610
7698
|
*/
|
|
7611
7699
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
7612
7700
|
/**
|
|
7613
7701
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
7614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-set-values.md
|
|
7615
7703
|
*/
|
|
7616
7704
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
7617
7705
|
/**
|
|
7618
7706
|
* Disallow empty files.
|
|
7619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-file.md
|
|
7620
7708
|
*/
|
|
7621
7709
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
7710
|
+
/**
|
|
7711
|
+
* Disallow empty link text in Markdown.
|
|
7712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-link-text.md
|
|
7713
|
+
*/
|
|
7714
|
+
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
7622
7715
|
/**
|
|
7623
7716
|
* Disallow assigning to built-in error properties.
|
|
7624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-error-property-assignment.md
|
|
7625
7718
|
*/
|
|
7626
7719
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7627
7720
|
/**
|
|
7628
7721
|
* Disallow exports in scripts.
|
|
7629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-exports-in-scripts.md
|
|
7630
7723
|
*/
|
|
7631
7724
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
7632
7725
|
/**
|
|
7633
7726
|
* Prefer `for…of` over the `forEach` method.
|
|
7634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-each.md
|
|
7635
7728
|
*/
|
|
7636
7729
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
7637
7730
|
/**
|
|
7638
7731
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-loop.md
|
|
7640
7733
|
*/
|
|
7641
7734
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7642
7735
|
/**
|
|
7643
7736
|
* Disallow assigning properties on the global object.
|
|
7644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-global-object-property-assignment.md
|
|
7645
7738
|
*/
|
|
7646
7739
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7647
7740
|
/**
|
|
7648
|
-
* Replaced by `unicorn/prefer-unicode-code-point-escapes
|
|
7649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7741
|
+
* Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
7742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
7650
7743
|
* @deprecated
|
|
7651
7744
|
*/
|
|
7652
7745
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7653
7746
|
/**
|
|
7654
|
-
* Disallow immediate mutation after
|
|
7655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7747
|
+
* Disallow immediate mutation after assignment and initialization immediately after declaration.
|
|
7748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-immediate-mutation.md
|
|
7656
7749
|
*/
|
|
7657
|
-
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<
|
|
7750
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
7658
7751
|
/**
|
|
7659
7752
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
7660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-impossible-length-comparison.md
|
|
7661
7754
|
*/
|
|
7662
7755
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
7756
|
+
/**
|
|
7757
|
+
* Disallow class accessors that hide an inherited getter or setter.
|
|
7758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
7759
|
+
*/
|
|
7760
|
+
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
7663
7761
|
/**
|
|
7664
7762
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
7665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-query-selector.md
|
|
7666
7764
|
*/
|
|
7667
7765
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
7668
7766
|
/**
|
|
7669
7767
|
* Disallow incorrect template literal interpolation syntax.
|
|
7670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
7671
7769
|
*/
|
|
7672
7770
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
7771
|
+
/**
|
|
7772
|
+
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
7773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
7774
|
+
*/
|
|
7775
|
+
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
7673
7776
|
/**
|
|
7674
7777
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7676
7779
|
* @deprecated
|
|
7677
7780
|
*/
|
|
7678
7781
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7679
7782
|
/**
|
|
7680
7783
|
* Disallow `instanceof` with built-in objects
|
|
7681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-instanceof-builtins.md
|
|
7682
7785
|
*/
|
|
7683
7786
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7684
7787
|
/**
|
|
7685
7788
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
7686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-argument-count.md
|
|
7687
7790
|
*/
|
|
7688
7791
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
7792
|
+
/**
|
|
7793
|
+
* Disallow invalid values for HTML boolean attributes.
|
|
7794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
7795
|
+
*/
|
|
7796
|
+
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
7689
7797
|
/**
|
|
7690
7798
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
7691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-character-comparison.md
|
|
7692
7800
|
*/
|
|
7693
7801
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
7802
|
+
/**
|
|
7803
|
+
* Disallow invalid DOM tokens.
|
|
7804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-dom-token.md
|
|
7805
|
+
*/
|
|
7806
|
+
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
7694
7807
|
/**
|
|
7695
7808
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7697
7810
|
*/
|
|
7698
7811
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7699
7812
|
/**
|
|
7700
7813
|
* Disallow invalid `accept` values on file inputs.
|
|
7701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
7702
7815
|
*/
|
|
7703
7816
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
7817
|
+
/**
|
|
7818
|
+
* Disallow invalid subresource integrity metadata.
|
|
7819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-integrity.md
|
|
7820
|
+
*/
|
|
7821
|
+
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
7822
|
+
/**
|
|
7823
|
+
* Disallow invalid or ignored Intl options.
|
|
7824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-intl-options.md
|
|
7825
|
+
*/
|
|
7826
|
+
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
7827
|
+
/**
|
|
7828
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
7829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
7830
|
+
* @deprecated
|
|
7831
|
+
*/
|
|
7832
|
+
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
7833
|
+
/**
|
|
7834
|
+
* Disallow invalid property descriptors.
|
|
7835
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
7836
|
+
*/
|
|
7837
|
+
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
7704
7838
|
/**
|
|
7705
7839
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7840
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7707
7841
|
*/
|
|
7708
7842
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7843
|
+
/**
|
|
7844
|
+
* Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
|
|
7845
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-response-options.md
|
|
7846
|
+
*/
|
|
7847
|
+
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
7848
|
+
/**
|
|
7849
|
+
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
7850
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-style-set-property.md
|
|
7851
|
+
*/
|
|
7852
|
+
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
7853
|
+
/**
|
|
7854
|
+
* Disallow statically known invalid Temporal arithmetic.
|
|
7855
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
7856
|
+
*/
|
|
7857
|
+
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
7858
|
+
/**
|
|
7859
|
+
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
7860
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
7861
|
+
*/
|
|
7862
|
+
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
7709
7863
|
/**
|
|
7710
7864
|
* Disallow invalid implementations of well-known symbol methods.
|
|
7711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
7712
7866
|
*/
|
|
7713
7867
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
7868
|
+
/**
|
|
7869
|
+
* Disallow `javascript:` URLs in Markdown.
|
|
7870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-javascript-url.md
|
|
7871
|
+
*/
|
|
7872
|
+
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
7714
7873
|
/**
|
|
7715
7874
|
* Disallow identifiers starting with `new` or `class`.
|
|
7716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-keyword-prefix.md
|
|
7717
7876
|
*/
|
|
7718
7877
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7719
7878
|
/**
|
|
7720
7879
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
7721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-current-target-access.md
|
|
7722
7881
|
*/
|
|
7723
7882
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
7724
7883
|
/**
|
|
7725
7884
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
7726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-event-control.md
|
|
7727
7886
|
*/
|
|
7728
7887
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
7888
|
+
/**
|
|
7889
|
+
* Disallow empty lines at the beginning of a file.
|
|
7890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-leading-empty-lines.md
|
|
7891
|
+
*/
|
|
7892
|
+
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
7729
7893
|
/**
|
|
7730
7894
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7732
7896
|
* @deprecated
|
|
7733
7897
|
*/
|
|
7734
7898
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7735
7899
|
/**
|
|
7736
7900
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-lonely-if.md
|
|
7738
7902
|
*/
|
|
7739
7903
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7740
7904
|
/**
|
|
7741
7905
|
* Disallow mutating a loop iterable during iteration.
|
|
7742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
7743
7907
|
*/
|
|
7744
7908
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
7909
|
+
/**
|
|
7910
|
+
* Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
|
|
7911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loss-of-precision.md
|
|
7912
|
+
*/
|
|
7913
|
+
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
7745
7914
|
/**
|
|
7746
7915
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7748
7917
|
*/
|
|
7749
7918
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7750
7919
|
/**
|
|
7751
7920
|
* Disallow manually wrapped comments.
|
|
7752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
7753
7922
|
*/
|
|
7754
7923
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
7755
7924
|
/**
|
|
7756
7925
|
* Disallow checking a Map key before accessing a different key.
|
|
7757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-mismatched-map-key.md
|
|
7758
7927
|
*/
|
|
7759
7928
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
7760
7929
|
/**
|
|
7761
7930
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
7762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-misrefactored-assignment.md
|
|
7763
7932
|
*/
|
|
7764
7933
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
7765
7934
|
/**
|
|
7766
7935
|
* Disallow references to missing local resources.
|
|
7767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-missing-local-resource.md
|
|
7768
7937
|
*/
|
|
7769
7938
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
7770
7939
|
/**
|
|
7771
7940
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
7772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
7773
7942
|
*/
|
|
7774
7943
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
7775
7944
|
/**
|
|
7776
7945
|
* Disallow named usage of default import and export.
|
|
7777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-named-default.md
|
|
7778
7947
|
*/
|
|
7779
7948
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7780
7949
|
/**
|
|
7781
7950
|
* Disallow negated array predicate calls.
|
|
7782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-array-predicate.md
|
|
7783
7952
|
*/
|
|
7784
7953
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
7785
7954
|
/**
|
|
7786
7955
|
* Disallow negated comparisons.
|
|
7787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-comparison.md
|
|
7788
7957
|
*/
|
|
7789
7958
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
7790
7959
|
/**
|
|
7791
7960
|
* Disallow negated conditions.
|
|
7792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-condition.md
|
|
7793
7962
|
*/
|
|
7794
7963
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7795
7964
|
/**
|
|
7796
7965
|
* Disallow negated expression in equality check.
|
|
7797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7798
7967
|
*/
|
|
7799
7968
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7800
7969
|
/**
|
|
7801
7970
|
* Disallow nested ternary expressions.
|
|
7802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nested-ternary.md
|
|
7803
7972
|
*/
|
|
7804
7973
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7974
|
+
/**
|
|
7975
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
7976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
7977
|
+
* @deprecated
|
|
7978
|
+
*/
|
|
7979
|
+
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
7805
7980
|
/**
|
|
7806
7981
|
* Disallow `new Array()`.
|
|
7807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-array.md
|
|
7808
7983
|
*/
|
|
7809
7984
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7810
7985
|
/**
|
|
7811
7986
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-buffer.md
|
|
7813
7988
|
*/
|
|
7814
7989
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7815
7990
|
/**
|
|
7816
7991
|
* Disallow non-function values with function-style verb prefixes.
|
|
7817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
7818
7993
|
*/
|
|
7819
7994
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
7820
7995
|
/**
|
|
7821
7996
|
* Disallow non-standard properties on built-in objects.
|
|
7822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
7823
7998
|
*/
|
|
7824
7999
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
7825
8000
|
/**
|
|
7826
8001
|
* Disallow the use of the `null` literal.
|
|
7827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-null.md
|
|
7828
8003
|
*/
|
|
7829
8004
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7830
8005
|
/**
|
|
7831
8006
|
* Disallow the use of objects as default parameters.
|
|
7832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7833
8008
|
*/
|
|
7834
8009
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7835
8010
|
/**
|
|
7836
8011
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
7837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-methods-with-collections.md
|
|
7838
8013
|
*/
|
|
7839
8014
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
7840
8015
|
/**
|
|
7841
8016
|
* Disallow optional chaining on undeclared variables.
|
|
7842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
7843
8018
|
*/
|
|
7844
8019
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
8020
|
+
/**
|
|
8021
|
+
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
8022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
8023
|
+
*/
|
|
8024
|
+
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
7845
8025
|
/**
|
|
7846
8026
|
* Disallow `process.exit()`.
|
|
7847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-process-exit.md
|
|
7848
8028
|
*/
|
|
7849
8029
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7850
8030
|
/**
|
|
7851
8031
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
7852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-redundant-comparison.md
|
|
7853
8033
|
*/
|
|
7854
8034
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
8035
|
+
/**
|
|
8036
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
8037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
8038
|
+
* @deprecated
|
|
8039
|
+
*/
|
|
8040
|
+
'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
8041
|
+
/**
|
|
8042
|
+
* Disallow repeating the same wrapper at every call to a function.
|
|
8043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-repeated-call-wrappers.md
|
|
8044
|
+
*/
|
|
8045
|
+
'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
|
|
7855
8046
|
/**
|
|
7856
8047
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
7857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-return-array-push.md
|
|
7858
8049
|
*/
|
|
7859
8050
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
7860
8051
|
/**
|
|
7861
8052
|
* Disallow selector syntax in DOM names.
|
|
7862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-selector-as-dom-name.md
|
|
7863
8054
|
*/
|
|
7864
8055
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
7865
8056
|
/**
|
|
7866
8057
|
* Disallow shorthand properties that override related longhand properties.
|
|
7867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
7868
8059
|
*/
|
|
7869
8060
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
7870
8061
|
/**
|
|
7871
8062
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7873
8064
|
*/
|
|
7874
8065
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7875
8066
|
/**
|
|
7876
8067
|
* Disallow classes that only have static members.
|
|
7877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-static-only-class.md
|
|
7878
8069
|
*/
|
|
7879
8070
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7880
8071
|
/**
|
|
7881
8072
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
7882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-subtraction-comparison.md
|
|
7883
8074
|
*/
|
|
7884
8075
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
7885
8076
|
/**
|
|
7886
8077
|
* Disallow `then` property.
|
|
7887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-thenable.md
|
|
7888
8079
|
*/
|
|
7889
8080
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7890
8081
|
/**
|
|
7891
8082
|
* Disallow assigning `this` to a variable.
|
|
7892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-assignment.md
|
|
7893
8084
|
*/
|
|
7894
8085
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7895
8086
|
/**
|
|
7896
8087
|
* Disallow `this` outside of classes.
|
|
7897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-outside-of-class.md
|
|
7898
8089
|
*/
|
|
7899
8090
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
7900
8091
|
/**
|
|
7901
8092
|
* Disallow assigning to top-level variables from inside functions.
|
|
7902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
7903
8094
|
*/
|
|
7904
8095
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
7905
8096
|
/**
|
|
7906
8097
|
* Disallow top-level side effects in exported modules.
|
|
7907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-side-effects.md
|
|
7908
8099
|
*/
|
|
7909
|
-
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<
|
|
8100
|
+
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
|
|
7910
8101
|
/**
|
|
7911
8102
|
* Disallow `all` as a transition property.
|
|
7912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-transition-all.md
|
|
7913
8104
|
*/
|
|
7914
8105
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
7915
8106
|
/**
|
|
7916
8107
|
* Disallow comparing `undefined` using `typeof`.
|
|
7917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-typeof-undefined.md
|
|
7918
8109
|
*/
|
|
7919
8110
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7920
8111
|
/**
|
|
7921
8112
|
* Disallow referencing methods without calling them.
|
|
7922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-uncalled-method.md
|
|
7923
8114
|
*/
|
|
7924
8115
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
7925
8116
|
/**
|
|
7926
8117
|
* Require class members to be declared.
|
|
7927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-undeclared-class-members.md
|
|
7928
8119
|
*/
|
|
7929
8120
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
8121
|
+
/**
|
|
8122
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
8123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
8124
|
+
* @deprecated
|
|
8125
|
+
*/
|
|
8126
|
+
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
8127
|
+
/**
|
|
8128
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
8129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
8130
|
+
* @deprecated
|
|
8131
|
+
*/
|
|
8132
|
+
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
7930
8133
|
/**
|
|
7931
8134
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7933
8136
|
*/
|
|
7934
8137
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7935
8138
|
/**
|
|
7936
|
-
* Disallow `Array#flatMap()
|
|
7937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8139
|
+
* Disallow unnecessary use of `Array#flatMap()`.
|
|
8140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
7938
8141
|
*/
|
|
7939
8142
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7940
8143
|
/**
|
|
7941
8144
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7943
8146
|
*/
|
|
7944
8147
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7945
8148
|
/**
|
|
7946
8149
|
* Disallow awaiting non-promise values.
|
|
7947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-await.md
|
|
7948
8151
|
*/
|
|
7949
8152
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7950
8153
|
/**
|
|
7951
8154
|
* Disallow unnecessary comparisons against boolean literals.
|
|
7952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
7953
8156
|
*/
|
|
7954
8157
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
8158
|
+
/**
|
|
8159
|
+
* Disallow arguments that match their parameter defaults.
|
|
8160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-default-arguments.md
|
|
8161
|
+
*/
|
|
8162
|
+
'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
|
|
7955
8163
|
/**
|
|
7956
8164
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
7957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
7958
8166
|
*/
|
|
7959
8167
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7960
8168
|
/**
|
|
7961
8169
|
* Disallow unnecessary `globalThis` references.
|
|
7962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-global-this.md
|
|
7963
8171
|
*/
|
|
7964
8172
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
7965
8173
|
/**
|
|
7966
8174
|
* Disallow unnecessary nested ternary expressions.
|
|
7967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
7968
8176
|
*/
|
|
7969
8177
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
8178
|
+
/**
|
|
8179
|
+
* Disallow parameters that receive the same value at every call.
|
|
8180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-parameters.md
|
|
8181
|
+
*/
|
|
8182
|
+
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
7970
8183
|
/**
|
|
7971
8184
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
7973
8186
|
*/
|
|
7974
8187
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7975
8188
|
/**
|
|
7976
8189
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
7978
8191
|
*/
|
|
7979
8192
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7980
8193
|
/**
|
|
7981
8194
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
7982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-splice.md
|
|
7983
8196
|
*/
|
|
7984
8197
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
7985
8198
|
/**
|
|
7986
8199
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
7987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
7988
8201
|
*/
|
|
7989
8202
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
7990
8203
|
/**
|
|
7991
8204
|
* Disallow unreadable array destructuring.
|
|
7992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
7993
8206
|
*/
|
|
7994
8207
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
7995
8208
|
/**
|
|
7996
8209
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
7997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
7998
8211
|
*/
|
|
7999
8212
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
8000
8213
|
/**
|
|
8001
8214
|
* Disallow unreadable IIFEs.
|
|
8002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-iife.md
|
|
8003
8216
|
*/
|
|
8004
8217
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
8005
8218
|
/**
|
|
8006
8219
|
* Disallow unreadable `new` expressions.
|
|
8007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-new-expression.md
|
|
8008
8221
|
*/
|
|
8009
8222
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
8010
8223
|
/**
|
|
8011
8224
|
* Disallow unreadable object destructuring.
|
|
8012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
8013
8226
|
*/
|
|
8014
8227
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
8015
8228
|
/**
|
|
8016
8229
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
8017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
8018
8231
|
*/
|
|
8019
8232
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
8020
8233
|
/**
|
|
8021
8234
|
* Disallow unsafe DOM HTML APIs.
|
|
8022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-dom-html.md
|
|
8023
8236
|
*/
|
|
8024
8237
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
8238
|
+
/**
|
|
8239
|
+
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
8240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
8241
|
+
*/
|
|
8242
|
+
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
8025
8243
|
/**
|
|
8026
8244
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
8027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
8028
8246
|
*/
|
|
8029
8247
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
8030
8248
|
/**
|
|
8031
8249
|
* Disallow unsafe values as property keys.
|
|
8032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-property-key.md
|
|
8033
8251
|
*/
|
|
8034
8252
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
8035
8253
|
/**
|
|
8036
8254
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
8037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
8038
8256
|
*/
|
|
8039
8257
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
8040
8258
|
/**
|
|
8041
8259
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
8042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
8043
8261
|
*/
|
|
8044
8262
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
8045
8263
|
/**
|
|
8046
|
-
*
|
|
8047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8264
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
8265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
8266
|
+
* @deprecated
|
|
8267
|
+
*/
|
|
8268
|
+
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
8269
|
+
/**
|
|
8270
|
+
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
|
|
8271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
|
|
8272
|
+
* @deprecated
|
|
8048
8273
|
*/
|
|
8049
8274
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
8275
|
+
/**
|
|
8276
|
+
* Disallow ignoring the return value of selected built-in methods.
|
|
8277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-builtin-method-return.md
|
|
8278
|
+
*/
|
|
8279
|
+
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
8280
|
+
/**
|
|
8281
|
+
* Disallow discarding lazy iterator helpers.
|
|
8282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-iterator-helper.md
|
|
8283
|
+
*/
|
|
8284
|
+
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
8050
8285
|
/**
|
|
8051
8286
|
* Disallow unused object properties.
|
|
8052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-properties.md
|
|
8053
8288
|
*/
|
|
8054
8289
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
8290
|
+
/**
|
|
8291
|
+
* Disallow passing full URLs to `URLSearchParams`.
|
|
8292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-url-in-search-params.md
|
|
8293
|
+
*/
|
|
8294
|
+
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
8055
8295
|
/**
|
|
8056
8296
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
8057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-boolean-cast.md
|
|
8058
8298
|
*/
|
|
8059
8299
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
8060
8300
|
/**
|
|
8061
8301
|
* Disallow useless type coercions of values that are already of the target type.
|
|
8062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-coercion.md
|
|
8063
8303
|
*/
|
|
8064
8304
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
8065
8305
|
/**
|
|
8066
8306
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
8067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-collection-argument.md
|
|
8068
8308
|
*/
|
|
8069
8309
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
8070
8310
|
/**
|
|
8071
8311
|
* Disallow useless compound assignments such as `x += 0`.
|
|
8072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-compound-assignment.md
|
|
8073
8313
|
*/
|
|
8074
8314
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
8075
8315
|
/**
|
|
8076
8316
|
* Disallow useless concatenation of literals.
|
|
8077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-concat.md
|
|
8078
8318
|
*/
|
|
8079
8319
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
8080
8320
|
/**
|
|
8081
8321
|
* Disallow useless `continue` statements.
|
|
8082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-continue.md
|
|
8083
8323
|
*/
|
|
8084
8324
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
8085
8325
|
/**
|
|
8086
8326
|
* Disallow unnecessary existence checks before deletion.
|
|
8087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-delete-check.md
|
|
8088
8328
|
*/
|
|
8089
8329
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
8090
8330
|
/**
|
|
8091
8331
|
* Disallow `else` after a statement that exits.
|
|
8092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-else.md
|
|
8093
8333
|
*/
|
|
8094
8334
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
8095
8335
|
/**
|
|
8096
8336
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
8097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
8098
8338
|
*/
|
|
8099
8339
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
8100
8340
|
/**
|
|
8101
8341
|
* Disallow useless fallback when spreading in object literals.
|
|
8102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
8103
8343
|
*/
|
|
8104
8344
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
8105
8345
|
/**
|
|
8106
8346
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
8107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
8108
8348
|
*/
|
|
8109
8349
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
8110
8350
|
/**
|
|
8111
8351
|
* Disallow useless array length check.
|
|
8112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-length-check.md
|
|
8113
8353
|
*/
|
|
8114
8354
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
8115
8355
|
/**
|
|
8116
8356
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
8117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-logical-operand.md
|
|
8118
8358
|
*/
|
|
8119
8359
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
8120
8360
|
/**
|
|
8121
8361
|
* Disallow useless overrides of class methods.
|
|
8122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-override.md
|
|
8123
8363
|
*/
|
|
8124
8364
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
8125
8365
|
/**
|
|
8126
8366
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
8127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
8128
8368
|
*/
|
|
8129
8369
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
8130
8370
|
/**
|
|
8131
8371
|
* Disallow redundant re-exports.
|
|
8132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-re-export.md
|
|
8133
8373
|
*/
|
|
8134
8374
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
8135
8375
|
/**
|
|
8136
8376
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
8137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-recursion.md
|
|
8138
8378
|
*/
|
|
8139
8379
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
8380
|
+
/**
|
|
8381
|
+
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
8382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-set-construction.md
|
|
8383
|
+
*/
|
|
8384
|
+
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
8140
8385
|
/**
|
|
8141
8386
|
* Disallow unnecessary spread.
|
|
8142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-spread.md
|
|
8143
8388
|
*/
|
|
8144
8389
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
8145
8390
|
/**
|
|
8146
8391
|
* Disallow useless case in switch statements.
|
|
8147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-switch-case.md
|
|
8148
8393
|
*/
|
|
8149
8394
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
8150
8395
|
/**
|
|
8151
8396
|
* Disallow useless template literal expressions.
|
|
8152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-template-literals.md
|
|
8153
8398
|
*/
|
|
8154
8399
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
8155
8400
|
/**
|
|
8156
8401
|
* Disallow useless `undefined`.
|
|
8157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-undefined.md
|
|
8158
8403
|
*/
|
|
8159
8404
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
8405
|
+
/**
|
|
8406
|
+
* Disallow returning or exporting resources declared with `using`, including through capturing functions.
|
|
8407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-using-resource-escape.md
|
|
8408
|
+
*/
|
|
8409
|
+
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
8160
8410
|
/**
|
|
8161
8411
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
8162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
8163
8413
|
*/
|
|
8164
8414
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
8165
8415
|
/**
|
|
8166
|
-
*
|
|
8167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8416
|
+
* Require consistent decimal numbers without redundant zeros.
|
|
8417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-zero-fractions.md
|
|
8168
8418
|
*/
|
|
8169
8419
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
8170
8420
|
/**
|
|
8171
8421
|
* Enforce proper case for numeric literals.
|
|
8172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/number-literal-case.md
|
|
8173
8423
|
*/
|
|
8174
8424
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
8175
8425
|
/**
|
|
8176
8426
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
8177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/numeric-separators-style.md
|
|
8178
8428
|
*/
|
|
8179
8429
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
8180
8430
|
/**
|
|
8181
8431
|
* Require assignment operator shorthand where possible.
|
|
8182
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/operator-assignment.md
|
|
8183
8433
|
*/
|
|
8184
8434
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
8185
8435
|
/**
|
|
8186
8436
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
8187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-any.md
|
|
8188
8438
|
*/
|
|
8189
8439
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
8190
8440
|
/**
|
|
8191
8441
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
8192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
8193
8443
|
*/
|
|
8194
8444
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
8195
8445
|
/**
|
|
8196
8446
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
8197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener.md
|
|
8198
8448
|
*/
|
|
8199
8449
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
8200
8450
|
/**
|
|
8201
8451
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
8202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
8203
8453
|
*/
|
|
8204
8454
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
8205
8455
|
/**
|
|
8206
8456
|
* Prefer `AggregateError` when throwing collected errors.
|
|
8207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-aggregate-error.md
|
|
8208
8458
|
*/
|
|
8209
8459
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
8210
8460
|
/**
|
|
8211
8461
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
8212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-find.md
|
|
8213
8463
|
*/
|
|
8214
8464
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
8215
8465
|
/**
|
|
8216
8466
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
8217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat.md
|
|
8218
8468
|
*/
|
|
8219
8469
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
8220
8470
|
/**
|
|
8221
8471
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
8222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat-map.md
|
|
8223
8473
|
*/
|
|
8224
8474
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
8225
8475
|
/**
|
|
8226
|
-
* Prefer `Array.fromAsync()` over
|
|
8227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8476
|
+
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
8477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-async.md
|
|
8228
8478
|
*/
|
|
8229
8479
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
8230
8480
|
/**
|
|
8231
8481
|
* Prefer using the `Array.from()` mapping function argument.
|
|
8232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-map.md
|
|
8233
8483
|
*/
|
|
8234
8484
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
8235
8485
|
/**
|
|
8236
8486
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
8237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-range.md
|
|
8238
8488
|
*/
|
|
8239
8489
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
8240
8490
|
/**
|
|
8241
8491
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
8242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-index-of.md
|
|
8243
8493
|
*/
|
|
8244
8494
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
8245
8495
|
/**
|
|
8246
8496
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
8247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
8248
8498
|
*/
|
|
8249
8499
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
8250
8500
|
/**
|
|
8251
8501
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
8252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-last-methods.md
|
|
8253
8503
|
*/
|
|
8254
8504
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
8255
8505
|
/**
|
|
8256
8506
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
8257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-slice.md
|
|
8258
8508
|
*/
|
|
8259
8509
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
8260
8510
|
/**
|
|
8261
8511
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
8262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-some.md
|
|
8263
8513
|
*/
|
|
8264
8514
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
8265
8515
|
/**
|
|
8266
8516
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
8267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-at.md
|
|
8268
8518
|
*/
|
|
8269
8519
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
8270
8520
|
/**
|
|
8271
8521
|
* Prefer `await` over promise chaining.
|
|
8272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-await.md
|
|
8273
8523
|
*/
|
|
8274
8524
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
8275
8525
|
/**
|
|
8276
8526
|
* Prefer `BigInt` literals over the constructor.
|
|
8277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-bigint-literals.md
|
|
8278
8528
|
*/
|
|
8279
8529
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
8280
8530
|
/**
|
|
8281
8531
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
8282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
8283
8533
|
*/
|
|
8284
8534
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
8285
8535
|
/**
|
|
8286
8536
|
* Prefer block statements over IIFEs used only for scoping.
|
|
8287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
8288
8538
|
*/
|
|
8289
8539
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
8290
8540
|
/**
|
|
8291
8541
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
8292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-boolean-return.md
|
|
8293
8543
|
*/
|
|
8294
8544
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
8295
8545
|
/**
|
|
8296
8546
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
8297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-class-fields.md
|
|
8298
8548
|
*/
|
|
8299
8549
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
8300
8550
|
/**
|
|
8301
8551
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
8302
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-classlist-toggle.md
|
|
8303
8553
|
*/
|
|
8304
8554
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
8305
8555
|
/**
|
|
8306
8556
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
8307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-code-point.md
|
|
8308
8558
|
*/
|
|
8309
8559
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
8310
8560
|
/**
|
|
8311
|
-
* Prefer
|
|
8312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8561
|
+
* Prefer combining consecutive guards with identical exit statements.
|
|
8562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-combined-guards.md
|
|
8563
|
+
*/
|
|
8564
|
+
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
8565
|
+
/**
|
|
8566
|
+
* Prefer early continues over conditionals wrapping the remainder of the loop body.
|
|
8567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-continue.md
|
|
8313
8568
|
*/
|
|
8314
8569
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
8315
8570
|
/**
|
|
8316
8571
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
8317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-date-now.md
|
|
8318
8573
|
*/
|
|
8319
8574
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
8320
8575
|
/**
|
|
8321
|
-
* Prefer default parameters over reassignment.
|
|
8322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8576
|
+
* Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
|
|
8577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-default-parameters.md
|
|
8323
8578
|
*/
|
|
8324
|
-
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<
|
|
8579
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
|
|
8325
8580
|
/**
|
|
8326
8581
|
* Prefer direct iteration over default iterator method calls.
|
|
8327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-direct-iteration.md
|
|
8328
8583
|
*/
|
|
8329
8584
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
8330
8585
|
/**
|
|
8331
8586
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
8332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dispose.md
|
|
8333
8588
|
*/
|
|
8334
8589
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
8335
8590
|
/**
|
|
8336
8591
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
8337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-append.md
|
|
8338
8593
|
*/
|
|
8339
8594
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
8340
8595
|
/**
|
|
8341
8596
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
8342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
8343
8598
|
* @deprecated
|
|
8344
8599
|
*/
|
|
8345
8600
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
8346
8601
|
/**
|
|
8347
8602
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
8348
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
8349
8604
|
*/
|
|
8350
8605
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
8351
8606
|
/**
|
|
8352
8607
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
8353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-remove.md
|
|
8354
8609
|
*/
|
|
8355
8610
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
8356
8611
|
/**
|
|
8357
|
-
* Prefer `.replaceChildren()` when
|
|
8358
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8612
|
+
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
8613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
8359
8614
|
*/
|
|
8360
8615
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
8361
8616
|
/**
|
|
8362
8617
|
* Prefer `.textContent` over `.innerText`.
|
|
8363
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
8364
8619
|
*/
|
|
8365
8620
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
8366
8621
|
/**
|
|
8367
|
-
* Prefer early returns over
|
|
8368
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8622
|
+
* Prefer early returns over conditionals wrapping the remainder of the function body.
|
|
8623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-early-return.md
|
|
8369
8624
|
*/
|
|
8370
8625
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
8371
8626
|
/**
|
|
8372
8627
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
8373
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-else-if.md
|
|
8374
8629
|
*/
|
|
8375
8630
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
8376
8631
|
/**
|
|
8377
8632
|
* Prefer `Error.isError()` when checking for errors.
|
|
8378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-error-is-error.md
|
|
8379
8634
|
*/
|
|
8380
8635
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
8636
|
+
/**
|
|
8637
|
+
* Prefer escape sequences for irregular whitespace characters.
|
|
8638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
8639
|
+
*/
|
|
8640
|
+
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
8381
8641
|
/**
|
|
8382
8642
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
8383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-event-target.md
|
|
8384
8644
|
*/
|
|
8385
8645
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
8386
8646
|
/**
|
|
8387
|
-
*
|
|
8388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8647
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
8648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
8649
|
+
* @deprecated
|
|
8389
8650
|
*/
|
|
8390
|
-
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<
|
|
8651
|
+
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
8391
8652
|
/**
|
|
8392
8653
|
* Prefer `export…from` when re-exporting.
|
|
8393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-export-from.md
|
|
8394
8655
|
*/
|
|
8395
8656
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
8396
8657
|
/**
|
|
8397
8658
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
8398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
8399
8660
|
*/
|
|
8400
8661
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8401
8662
|
/**
|
|
8402
8663
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
8403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
8404
8665
|
*/
|
|
8405
8666
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
8406
8667
|
/**
|
|
8407
8668
|
* Prefer global numeric constants over `Number` static properties.
|
|
8408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-number-constants.md
|
|
8409
8670
|
*/
|
|
8410
8671
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
8411
8672
|
/**
|
|
8412
8673
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
8413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-this.md
|
|
8414
8675
|
*/
|
|
8415
8676
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
8416
8677
|
/**
|
|
8417
|
-
* Prefer `Object.groupBy()` or `Map.groupBy()` over
|
|
8418
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8678
|
+
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
8679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-group-by.md
|
|
8419
8680
|
*/
|
|
8420
8681
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
8421
8682
|
/**
|
|
8422
8683
|
* Prefer `.has()` when checking existence.
|
|
8423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-has-check.md
|
|
8424
8685
|
*/
|
|
8425
8686
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
8426
8687
|
/**
|
|
8427
8688
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
8428
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
8429
8690
|
*/
|
|
8430
8691
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
8431
8692
|
/**
|
|
8432
8693
|
* Prefer HTTPS over HTTP.
|
|
8433
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-https.md
|
|
8434
8695
|
*/
|
|
8435
8696
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
8436
8697
|
/**
|
|
8437
8698
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
8438
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
8439
8700
|
*/
|
|
8440
8701
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
8441
8702
|
/**
|
|
8442
8703
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
8443
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-import-meta-properties.md
|
|
8444
8705
|
*/
|
|
8445
8706
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
8446
8707
|
/**
|
|
8447
8708
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
8448
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes.md
|
|
8449
8710
|
*/
|
|
8450
8711
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
8451
8712
|
/**
|
|
8452
8713
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
8453
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
8454
8715
|
*/
|
|
8455
8716
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
8456
8717
|
/**
|
|
8457
8718
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
8458
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
8459
8720
|
*/
|
|
8460
8721
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
8461
8722
|
/**
|
|
8462
8723
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
8463
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-concat.md
|
|
8464
8725
|
*/
|
|
8465
8726
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
8466
8727
|
/**
|
|
8467
8728
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
8468
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-helpers.md
|
|
8469
8730
|
*/
|
|
8470
8731
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
8471
8732
|
/**
|
|
8472
8733
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
8473
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array.md
|
|
8474
8735
|
*/
|
|
8475
8736
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
8476
8737
|
/**
|
|
8477
8738
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
8478
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
8479
8740
|
*/
|
|
8480
8741
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
8742
|
+
/**
|
|
8743
|
+
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
8744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-zip.md
|
|
8745
|
+
*/
|
|
8746
|
+
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
8747
|
+
/**
|
|
8748
|
+
* Prefer JSON imports over reading and parsing JSON files.
|
|
8749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-json-import.md
|
|
8750
|
+
*/
|
|
8751
|
+
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
8481
8752
|
/**
|
|
8482
8753
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
8483
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
8484
8755
|
* @deprecated
|
|
8485
8756
|
*/
|
|
8486
8757
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
8487
8758
|
/**
|
|
8488
8759
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
8489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
8490
8761
|
*/
|
|
8491
8762
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
8763
|
+
/**
|
|
8764
|
+
* Prefer literal printable ASCII characters over escape sequences.
|
|
8765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-literal-ascii.md
|
|
8766
|
+
*/
|
|
8767
|
+
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
8492
8768
|
/**
|
|
8493
8769
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
8494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-location-assign.md
|
|
8495
8771
|
*/
|
|
8496
8772
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
8497
8773
|
/**
|
|
8498
8774
|
* Prefer using a logical operator over a ternary.
|
|
8499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
8500
8776
|
*/
|
|
8501
8777
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
8502
8778
|
/**
|
|
8503
8779
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
8504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-map-from-entries.md
|
|
8505
8781
|
*/
|
|
8506
8782
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
8507
8783
|
/**
|
|
8508
8784
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
8509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-abs.md
|
|
8510
8786
|
*/
|
|
8511
8787
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
8512
8788
|
/**
|
|
8513
8789
|
* Prefer `Math` constants over their approximate numeric values.
|
|
8514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8790
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-constants.md
|
|
8515
8791
|
*/
|
|
8516
8792
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
8517
8793
|
/**
|
|
8518
8794
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
8519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8795
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-min-max.md
|
|
8520
8796
|
*/
|
|
8521
8797
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8522
8798
|
/**
|
|
8523
8799
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
8524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8800
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-trunc.md
|
|
8525
8801
|
*/
|
|
8526
8802
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
8803
|
+
/**
|
|
8804
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
8805
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
8806
|
+
* @deprecated
|
|
8807
|
+
*/
|
|
8808
|
+
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
8527
8809
|
/**
|
|
8528
8810
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
8529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-minimal-ternary.md
|
|
8530
8812
|
*/
|
|
8531
8813
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
8532
8814
|
/**
|
|
8533
8815
|
* Prefer modern DOM APIs.
|
|
8534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
8535
8817
|
*/
|
|
8536
8818
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
8537
8819
|
/**
|
|
8538
8820
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
8539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-math-apis.md
|
|
8540
8822
|
*/
|
|
8541
8823
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
8542
8824
|
/**
|
|
8543
8825
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
8544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-module.md
|
|
8545
8827
|
*/
|
|
8546
8828
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
8547
8829
|
/**
|
|
8548
8830
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
8549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
8550
8832
|
*/
|
|
8551
8833
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
8552
8834
|
/**
|
|
8553
8835
|
* Prefer negative index over `.length - index` when possible.
|
|
8554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-negative-index.md
|
|
8555
8837
|
*/
|
|
8556
8838
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
8557
8839
|
/**
|
|
8558
8840
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
8559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-node-protocol.md
|
|
8560
8842
|
*/
|
|
8561
8843
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
8562
8844
|
/**
|
|
8563
8845
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
8564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-coercion.md
|
|
8565
8847
|
*/
|
|
8566
8848
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
8567
8849
|
/**
|
|
8568
8850
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
8569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
8570
8852
|
*/
|
|
8571
8853
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
8572
8854
|
/**
|
|
8573
8855
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
8574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-properties.md
|
|
8575
8857
|
*/
|
|
8576
8858
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
8577
8859
|
/**
|
|
8578
8860
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
8579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-define-properties.md
|
|
8580
8862
|
*/
|
|
8581
8863
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
8582
8864
|
/**
|
|
8583
8865
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
8584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
8585
8867
|
*/
|
|
8586
8868
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
8587
8869
|
/**
|
|
8588
8870
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
8589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-from-entries.md
|
|
8590
8872
|
*/
|
|
8591
8873
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
8592
8874
|
/**
|
|
8593
8875
|
* Prefer the most specific `Object` iterable method.
|
|
8594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
8595
8877
|
*/
|
|
8596
8878
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
8597
8879
|
/**
|
|
8598
8880
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
8599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-observer-apis.md
|
|
8600
8882
|
*/
|
|
8601
8883
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
8602
8884
|
/**
|
|
8603
8885
|
* Prefer omitting the `catch` binding parameter.
|
|
8604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
8605
8887
|
*/
|
|
8606
8888
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
8607
8889
|
/**
|
|
8608
8890
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
8609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-path2d.md
|
|
8610
8892
|
*/
|
|
8611
8893
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
8612
8894
|
/**
|
|
8613
8895
|
* Prefer private class fields over the underscore-prefix convention.
|
|
8614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-private-class-fields.md
|
|
8615
8897
|
*/
|
|
8616
8898
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
8899
|
+
/**
|
|
8900
|
+
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
|
|
8901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-static-methods.md
|
|
8902
|
+
*/
|
|
8903
|
+
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
8617
8904
|
/**
|
|
8618
8905
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
8619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-try.md
|
|
8620
8907
|
*/
|
|
8621
8908
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
8622
8909
|
/**
|
|
8623
8910
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
8624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
8625
8912
|
*/
|
|
8626
8913
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
8627
8914
|
/**
|
|
8628
8915
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
8629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-prototype-methods.md
|
|
8630
8917
|
*/
|
|
8631
8918
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
8632
8919
|
/**
|
|
8633
8920
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
8634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-query-selector.md
|
|
8635
8922
|
*/
|
|
8636
8923
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
8637
8924
|
/**
|
|
8638
8925
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
8639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-queue-microtask.md
|
|
8640
8927
|
*/
|
|
8641
8928
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
8642
8929
|
/**
|
|
8643
8930
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
8644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-reflect-apply.md
|
|
8645
8932
|
*/
|
|
8646
8933
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
8647
8934
|
/**
|
|
8648
8935
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
8649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-escape.md
|
|
8650
8937
|
*/
|
|
8651
8938
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
8652
8939
|
/**
|
|
8653
8940
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
8654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-test.md
|
|
8655
8942
|
*/
|
|
8656
8943
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
8657
8944
|
/**
|
|
8658
8945
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
8659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-response-static-json.md
|
|
8660
8947
|
*/
|
|
8661
8948
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
8662
8949
|
/**
|
|
8663
8950
|
* Prefer `:scope` when using element query selector methods.
|
|
8664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-scoped-selector.md
|
|
8665
8952
|
*/
|
|
8666
8953
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
8667
8954
|
/**
|
|
8668
8955
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
8669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-has.md
|
|
8670
8957
|
*/
|
|
8671
8958
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
8672
8959
|
/**
|
|
8673
8960
|
* Prefer `Set` methods for Set operations.
|
|
8674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-methods.md
|
|
8675
8962
|
*/
|
|
8676
8963
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
8677
8964
|
/**
|
|
8678
8965
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
8679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-size.md
|
|
8680
8967
|
*/
|
|
8681
8968
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
8682
8969
|
/**
|
|
8683
8970
|
* Prefer arrow function properties over methods with a single return.
|
|
8684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-arrow-method.md
|
|
8685
8972
|
*/
|
|
8686
8973
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
8974
|
+
/**
|
|
8975
|
+
* Prefer shorter alternatives to Unicode escape sequences.
|
|
8976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
8977
|
+
*/
|
|
8978
|
+
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
8687
8979
|
/**
|
|
8688
8980
|
* Prefer simple conditions first in logical expressions.
|
|
8689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-condition-first.md
|
|
8690
8982
|
*/
|
|
8691
8983
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
8692
8984
|
/**
|
|
8693
8985
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
8694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
8695
8987
|
*/
|
|
8696
8988
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
8697
8989
|
/**
|
|
8698
8990
|
* Prefer simplified conditions.
|
|
8699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simplified-conditions.md
|
|
8700
8992
|
*/
|
|
8701
|
-
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<
|
|
8993
|
+
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
8702
8994
|
/**
|
|
8703
8995
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
8704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-array-predicate.md
|
|
8705
8997
|
*/
|
|
8706
8998
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
8707
8999
|
/**
|
|
8708
9000
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
8709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-call.md
|
|
8710
9002
|
*/
|
|
8711
9003
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
8712
9004
|
/**
|
|
8713
9005
|
* Prefer a single object destructuring declaration per local const source.
|
|
8714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
8715
9007
|
*/
|
|
8716
9008
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
8717
9009
|
/**
|
|
8718
9010
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
8719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-replace.md
|
|
8720
9012
|
*/
|
|
8721
9013
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
8722
9014
|
/**
|
|
8723
9015
|
* Prefer declaring variables in the smallest possible scope.
|
|
8724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-smaller-scope.md
|
|
8725
9017
|
*/
|
|
8726
9018
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
8727
9019
|
/**
|
|
8728
9020
|
* Prefer `String#split()` with a limit.
|
|
8729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-split-limit.md
|
|
8730
9022
|
*/
|
|
8731
9023
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
8732
9024
|
/**
|
|
8733
9025
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
8734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-spread.md
|
|
8735
9027
|
*/
|
|
8736
9028
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
8737
9029
|
/**
|
|
8738
9030
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
8739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-match-all.md
|
|
8740
9032
|
*/
|
|
8741
9033
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
8742
9034
|
/**
|
|
8743
9035
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
8744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
8745
9037
|
*/
|
|
8746
9038
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
8747
9039
|
/**
|
|
8748
9040
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
8749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-raw.md
|
|
8750
9042
|
*/
|
|
8751
9043
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
8752
9044
|
/**
|
|
8753
9045
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
8754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-repeat.md
|
|
8755
9047
|
*/
|
|
8756
9048
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
8757
9049
|
/**
|
|
8758
9050
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
8759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-replace-all.md
|
|
8760
9052
|
*/
|
|
8761
9053
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
8762
9054
|
/**
|
|
8763
9055
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
8764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-slice.md
|
|
8765
9057
|
*/
|
|
8766
9058
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
8767
9059
|
/**
|
|
8768
9060
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
8769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
8770
9062
|
*/
|
|
8771
9063
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
8772
9064
|
/**
|
|
8773
9065
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
8774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
8775
9067
|
*/
|
|
8776
9068
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
8777
9069
|
/**
|
|
8778
9070
|
* Prefer using `structuredClone` to create a deep clone.
|
|
8779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-structured-clone.md
|
|
8780
9072
|
*/
|
|
8781
9073
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
8782
9074
|
/**
|
|
8783
9075
|
* Prefer `switch` over multiple `else-if`.
|
|
8784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-switch.md
|
|
8785
9077
|
*/
|
|
8786
9078
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
8787
9079
|
/**
|
|
8788
9080
|
* Prefer `Temporal` over `Date`.
|
|
8789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal.md
|
|
8790
9082
|
*/
|
|
8791
9083
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
8792
9084
|
/**
|
|
8793
|
-
* Prefer
|
|
8794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9085
|
+
* Prefer direct Temporal conversion methods.
|
|
9086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal-conversion.md
|
|
9087
|
+
*/
|
|
9088
|
+
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
9089
|
+
/**
|
|
9090
|
+
* Prefer ternary expressions over simple `if` statements.
|
|
9091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-ternary.md
|
|
8795
9092
|
*/
|
|
8796
9093
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
8797
9094
|
/**
|
|
8798
9095
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
8799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-then-catch.md
|
|
8800
9097
|
*/
|
|
8801
9098
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
8802
9099
|
/**
|
|
8803
9100
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
8804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-toggle-attribute.md
|
|
8805
9102
|
*/
|
|
8806
9103
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
8807
9104
|
/**
|
|
8808
9105
|
* Prefer top-level await over top-level promises and async function calls.
|
|
8809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-top-level-await.md
|
|
8810
9107
|
*/
|
|
8811
9108
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
8812
9109
|
/**
|
|
8813
9110
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
8814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-error.md
|
|
8815
9112
|
*/
|
|
8816
9113
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
8817
9114
|
/**
|
|
8818
9115
|
* Require type literals to be last in union types.
|
|
8819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-literal-last.md
|
|
8820
9117
|
*/
|
|
8821
9118
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
8822
9119
|
/**
|
|
8823
|
-
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over
|
|
8824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9120
|
+
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
|
|
9121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-base64.md
|
|
8825
9122
|
*/
|
|
8826
9123
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
9124
|
+
/**
|
|
9125
|
+
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
|
|
9126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-hex.md
|
|
9127
|
+
*/
|
|
9128
|
+
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
|
|
8827
9129
|
/**
|
|
8828
9130
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
8829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unary-minus.md
|
|
8830
9132
|
*/
|
|
8831
9133
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
8832
9134
|
/**
|
|
8833
9135
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
8834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
8835
9137
|
*/
|
|
8836
9138
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
8837
9139
|
/**
|
|
8838
9140
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
8839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-can-parse.md
|
|
8840
9142
|
*/
|
|
8841
9143
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
8842
9144
|
/**
|
|
8843
9145
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
8844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-href.md
|
|
8845
9147
|
*/
|
|
8846
9148
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
8847
9149
|
/**
|
|
8848
9150
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
8849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-search-parameters.md
|
|
8850
9152
|
*/
|
|
8851
9153
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
8852
9154
|
/**
|
|
8853
9155
|
* Prefer putting the condition in the while statement.
|
|
8854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-while-loop-condition.md
|
|
8855
9157
|
*/
|
|
8856
9158
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
8857
9159
|
/**
|
|
8858
9160
|
* Renamed to `unicorn/name-replacements`.
|
|
8859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
8860
9162
|
* @deprecated
|
|
8861
9163
|
*/
|
|
8862
9164
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
8863
9165
|
/**
|
|
8864
9166
|
* Enforce consistent relative URL style.
|
|
8865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/relative-url-style.md
|
|
8866
9168
|
*/
|
|
8867
9169
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
8868
9170
|
/**
|
|
8869
9171
|
* Enforce using the separator argument with `Array#join()`.
|
|
8870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-join-separator.md
|
|
8871
9173
|
*/
|
|
8872
9174
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
8873
9175
|
/**
|
|
8874
9176
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
8875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-sort-compare.md
|
|
8876
9178
|
*/
|
|
8877
9179
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
8878
9180
|
/**
|
|
8879
9181
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
8880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-css-escape.md
|
|
8881
9183
|
*/
|
|
8882
9184
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
8883
9185
|
/**
|
|
8884
9186
|
* Require configured YAML frontmatter fields.
|
|
8885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-frontmatter-fields.md
|
|
8886
9188
|
*/
|
|
8887
9189
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
8888
9190
|
/**
|
|
8889
9191
|
* Require non-empty module attributes for imports and exports
|
|
8890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-attributes.md
|
|
8891
9193
|
*/
|
|
8892
9194
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
8893
9195
|
/**
|
|
8894
9196
|
* Require non-empty specifier list in import and export statements.
|
|
8895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-specifiers.md
|
|
8896
9198
|
*/
|
|
8897
9199
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
8898
9200
|
/**
|
|
8899
9201
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
8900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
8901
9203
|
*/
|
|
8902
9204
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
8903
9205
|
/**
|
|
8904
9206
|
* Require passive event listeners for high-frequency events.
|
|
8905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-passive-events.md
|
|
8906
9208
|
*/
|
|
8907
9209
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
8908
9210
|
/**
|
|
8909
9211
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
8910
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-post-message-target-origin.md
|
|
8911
9213
|
*/
|
|
8912
9214
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
8913
9215
|
/**
|
|
8914
9216
|
* Require boolean-returning Proxy traps to return booleans.
|
|
8915
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
8916
9218
|
*/
|
|
8917
9219
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
9220
|
+
/**
|
|
9221
|
+
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
9222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-text-decoder-streaming.md
|
|
9223
|
+
*/
|
|
9224
|
+
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
8918
9225
|
/**
|
|
8919
9226
|
* Enforce a consistent style for single-line block comments.
|
|
8920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/single-line-block-comment-style.md
|
|
8921
9228
|
*/
|
|
8922
9229
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
8923
9230
|
/**
|
|
8924
9231
|
* Enforce better string content.
|
|
8925
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/string-content.md
|
|
8926
9233
|
*/
|
|
8927
9234
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
8928
9235
|
/**
|
|
8929
9236
|
* Enforce consistent brace style for `case` clauses.
|
|
8930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-braces.md
|
|
8931
9238
|
*/
|
|
8932
9239
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
8933
9240
|
/**
|
|
8934
9241
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
8935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-break-position.md
|
|
8936
9243
|
*/
|
|
8937
9244
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
8938
9245
|
/**
|
|
8939
9246
|
* Fix whitespace-insensitive template indentation.
|
|
8940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/template-indent.md
|
|
8941
9248
|
*/
|
|
8942
9249
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
8943
9250
|
/**
|
|
8944
9251
|
* Enforce consistent case for text encoding identifiers.
|
|
8945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/text-encoding-identifier-case.md
|
|
8946
9253
|
*/
|
|
8947
9254
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
8948
9255
|
/**
|
|
8949
9256
|
* Require `new` when creating an error.
|
|
8950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/throw-new-error.md
|
|
8951
9258
|
*/
|
|
8952
9259
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
8953
9260
|
/**
|
|
8954
9261
|
* Limit the complexity of `try` blocks.
|
|
8955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/try-complexity.md
|
|
8956
9263
|
*/
|
|
8957
9264
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
8958
9265
|
/**
|
|
@@ -9758,6 +10065,11 @@ interface RuleOptions {
|
|
|
9758
10065
|
* @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
|
|
9759
10066
|
*/
|
|
9760
10067
|
'vue/no-setup-props-reactivity-loss'?: Linter.RuleEntry<[]>;
|
|
10068
|
+
/**
|
|
10069
|
+
* disallow the use of event names that collide with native web event names
|
|
10070
|
+
* @see https://eslint.vuejs.org/rules/no-shadow-native-events.html
|
|
10071
|
+
*/
|
|
10072
|
+
'vue/no-shadow-native-events'?: Linter.RuleEntry<[]>;
|
|
9761
10073
|
/**
|
|
9762
10074
|
* enforce component's data property to be a function
|
|
9763
10075
|
* @see https://eslint.vuejs.org/rules/no-shared-component-data.html
|
|
@@ -10551,6 +10863,8 @@ type AngularTemplateButtonHasType = [] | [{
|
|
|
10551
10863
|
// ----- angular-template/click-events-have-key-events -----
|
|
10552
10864
|
type AngularTemplateClickEventsHaveKeyEvents = [] | [{
|
|
10553
10865
|
ignoreWithDirectives?: string[];
|
|
10866
|
+
requireKeyCode?: boolean;
|
|
10867
|
+
allowedKeyCodes?: string[];
|
|
10554
10868
|
}];
|
|
10555
10869
|
// ----- angular-template/conditional-complexity -----
|
|
10556
10870
|
type AngularTemplateConditionalComplexity = [] | [{
|
|
@@ -10609,8 +10923,8 @@ type AngularTemplateNoDuplicateAttributes = [] | [{
|
|
|
10609
10923
|
}];
|
|
10610
10924
|
// ----- angular-template/no-inline-styles -----
|
|
10611
10925
|
type AngularTemplateNoInlineStyles = [] | [{
|
|
10612
|
-
allowNgStyle?: boolean;
|
|
10613
|
-
allowBindToStyle?: boolean;
|
|
10926
|
+
allowNgStyle?: (boolean | "dynamic");
|
|
10927
|
+
allowBindToStyle?: (boolean | "dynamic");
|
|
10614
10928
|
}];
|
|
10615
10929
|
// ----- angular-template/no-interpolation-in-attributes -----
|
|
10616
10930
|
type AngularTemplateNoInterpolationInAttributes = [] | [{
|
|
@@ -10653,19 +10967,19 @@ type AngularComponentMaxInlineDeclarations = [] | [{
|
|
|
10653
10967
|
// ----- angular/component-selector -----
|
|
10654
10968
|
type AngularComponentSelector = [] | [({
|
|
10655
10969
|
type: (string | ("element" | "attribute")[]);
|
|
10656
|
-
prefix?: (string |
|
|
10970
|
+
prefix?: (string | string[]);
|
|
10657
10971
|
style: ("camelCase" | "kebab-case");
|
|
10658
10972
|
} | [{
|
|
10659
10973
|
type: ("element" | "attribute");
|
|
10660
|
-
prefix?: (string |
|
|
10974
|
+
prefix?: (string | string[]);
|
|
10661
10975
|
style: ("camelCase" | "kebab-case");
|
|
10662
10976
|
}] | [{
|
|
10663
10977
|
type: ("element" | "attribute");
|
|
10664
|
-
prefix?: (string |
|
|
10978
|
+
prefix?: (string | string[]);
|
|
10665
10979
|
style: ("camelCase" | "kebab-case");
|
|
10666
10980
|
}, {
|
|
10667
10981
|
type: ("element" | "attribute");
|
|
10668
|
-
prefix?: (string |
|
|
10982
|
+
prefix?: (string | string[]);
|
|
10669
10983
|
style: ("camelCase" | "kebab-case");
|
|
10670
10984
|
}])];
|
|
10671
10985
|
// ----- angular/consistent-component-styles -----
|
|
@@ -10677,21 +10991,25 @@ type AngularDirectiveClassSuffix = [] | [{
|
|
|
10677
10991
|
// ----- angular/directive-selector -----
|
|
10678
10992
|
type AngularDirectiveSelector = [] | [({
|
|
10679
10993
|
type: (string | ("element" | "attribute")[]);
|
|
10680
|
-
prefix?: (string |
|
|
10994
|
+
prefix?: (string | string[]);
|
|
10681
10995
|
style: ("camelCase" | "kebab-case");
|
|
10682
10996
|
} | [{
|
|
10683
10997
|
type: ("element" | "attribute");
|
|
10684
|
-
prefix?: (string |
|
|
10998
|
+
prefix?: (string | string[]);
|
|
10685
10999
|
style: ("camelCase" | "kebab-case");
|
|
10686
11000
|
}] | [{
|
|
10687
11001
|
type: ("element" | "attribute");
|
|
10688
|
-
prefix?: (string |
|
|
11002
|
+
prefix?: (string | string[]);
|
|
10689
11003
|
style: ("camelCase" | "kebab-case");
|
|
10690
11004
|
}, {
|
|
10691
11005
|
type: ("element" | "attribute");
|
|
10692
|
-
prefix?: (string |
|
|
11006
|
+
prefix?: (string | string[]);
|
|
10693
11007
|
style: ("camelCase" | "kebab-case");
|
|
10694
11008
|
}])];
|
|
11009
|
+
// ----- angular/inject-at-top -----
|
|
11010
|
+
type AngularInjectAtTop = [] | [{
|
|
11011
|
+
additionalInjectFunctions?: string[];
|
|
11012
|
+
}];
|
|
10695
11013
|
// ----- angular/no-input-prefix -----
|
|
10696
11014
|
type AngularNoInputPrefix = [] | [{
|
|
10697
11015
|
prefixes?: string[];
|
|
@@ -10708,6 +11026,10 @@ type AngularPipePrefix = [] | [{
|
|
|
10708
11026
|
type AngularPreferOnPushComponentChangeDetection = [] | [{
|
|
10709
11027
|
allowExplicitOnPush?: boolean;
|
|
10710
11028
|
}];
|
|
11029
|
+
// ----- angular/prefer-signal-model -----
|
|
11030
|
+
type AngularPreferSignalModel = [] | [{
|
|
11031
|
+
useTypeChecking?: boolean;
|
|
11032
|
+
}];
|
|
10711
11033
|
// ----- angular/prefer-signals -----
|
|
10712
11034
|
type AngularPreferSignals = [] | [{
|
|
10713
11035
|
preferReadonlySignalProperties?: boolean;
|
|
@@ -10716,6 +11038,14 @@ type AngularPreferSignals = [] | [{
|
|
|
10716
11038
|
useTypeChecking?: boolean;
|
|
10717
11039
|
additionalSignalCreationFunctions?: string[];
|
|
10718
11040
|
}];
|
|
11041
|
+
// ----- angular/prefer-standalone -----
|
|
11042
|
+
type AngularPreferStandalone = [] | [{
|
|
11043
|
+
allowExplicitStandalone?: boolean;
|
|
11044
|
+
}];
|
|
11045
|
+
// ----- angular/reactive-context-must-read-signal -----
|
|
11046
|
+
type AngularReactiveContextMustReadSignal = [] | [{
|
|
11047
|
+
checkResources?: boolean;
|
|
11048
|
+
}];
|
|
10719
11049
|
// ----- angular/require-localize-metadata -----
|
|
10720
11050
|
type AngularRequireLocalizeMetadata = [] | [{
|
|
10721
11051
|
requireDescription?: boolean;
|
|
@@ -10726,12 +11056,15 @@ type AngularRequireLocalizeMetadata = [] | [{
|
|
|
10726
11056
|
type AngularSortKeysInTypeDecorator = [] | [{
|
|
10727
11057
|
Component?: string[];
|
|
10728
11058
|
Directive?: string[];
|
|
11059
|
+
Injectable?: string[];
|
|
10729
11060
|
NgModule?: string[];
|
|
10730
11061
|
Pipe?: string[];
|
|
11062
|
+
allowUnconfiguredProperties?: boolean;
|
|
10731
11063
|
}];
|
|
10732
11064
|
// ----- angular/use-injectable-provided-in -----
|
|
10733
11065
|
type AngularUseInjectableProvidedIn = [] | [{
|
|
10734
11066
|
ignoreClassNamePattern?: string;
|
|
11067
|
+
allowProvidedInNull?: boolean;
|
|
10735
11068
|
}];
|
|
10736
11069
|
// ----- antfu/consistent-chaining -----
|
|
10737
11070
|
type AntfuConsistentChaining = [] | [{
|
|
@@ -11115,10 +11448,12 @@ type EslintCommentsDisableEnablePair = [] | [{
|
|
|
11115
11448
|
type EslintCommentsNoRestrictedDisable = string[];
|
|
11116
11449
|
// ----- eslint-comments/no-use -----
|
|
11117
11450
|
type EslintCommentsNoUse = [] | [{
|
|
11118
|
-
|
|
11451
|
+
additionalDirectives?: string[];
|
|
11452
|
+
allow?: string[];
|
|
11119
11453
|
}];
|
|
11120
11454
|
// ----- eslint-comments/require-description -----
|
|
11121
11455
|
type EslintCommentsRequireDescription = [] | [{
|
|
11456
|
+
additionalDirectives?: string[];
|
|
11122
11457
|
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
11123
11458
|
}];
|
|
11124
11459
|
// ----- format/dprint -----
|
|
@@ -11284,6 +11619,7 @@ type InitDeclarations = ([] | ["always"] | [] | ["never"] | ["never", {
|
|
|
11284
11619
|
}]);
|
|
11285
11620
|
// ----- jsdoc/check-alignment -----
|
|
11286
11621
|
type JsdocCheckAlignment = [] | [{
|
|
11622
|
+
ignoreEmptyLines?: boolean;
|
|
11287
11623
|
innerIndent?: number;
|
|
11288
11624
|
}];
|
|
11289
11625
|
// ----- jsdoc/check-examples -----
|
|
@@ -11311,6 +11647,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
11311
11647
|
// ----- jsdoc/check-indentation -----
|
|
11312
11648
|
type JsdocCheckIndentation = [] | [{
|
|
11313
11649
|
allowIndentedSections?: boolean;
|
|
11650
|
+
allowNoSpaceAfterAsterisk?: boolean;
|
|
11314
11651
|
excludeTags?: string[];
|
|
11315
11652
|
}];
|
|
11316
11653
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -11346,6 +11683,10 @@ type JsdocCheckParamNames = [] | [{
|
|
|
11346
11683
|
type JsdocCheckPropertyNames = [] | [{
|
|
11347
11684
|
enableFixer?: boolean;
|
|
11348
11685
|
}];
|
|
11686
|
+
// ----- jsdoc/check-syntax -----
|
|
11687
|
+
type JsdocCheckSyntax = [] | [{
|
|
11688
|
+
enableFixer?: boolean;
|
|
11689
|
+
}];
|
|
11349
11690
|
// ----- jsdoc/check-tag-names -----
|
|
11350
11691
|
type JsdocCheckTagNames = [] | [{
|
|
11351
11692
|
definedTags?: string[];
|
|
@@ -11524,6 +11865,8 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
11524
11865
|
type JsdocNoUnnecessaryTypeAssertion = [] | [{
|
|
11525
11866
|
checkLiteralConstAssertions?: boolean;
|
|
11526
11867
|
enableFixer?: boolean;
|
|
11868
|
+
fixTypeChangingCasts?: boolean;
|
|
11869
|
+
preferConstToLiteralTuples?: boolean;
|
|
11527
11870
|
treatAnyAsRedundant?: boolean;
|
|
11528
11871
|
typesToIgnore?: string[];
|
|
11529
11872
|
}];
|
|
@@ -11729,7 +12072,6 @@ type JsdocRequireTags = [] | [{
|
|
|
11729
12072
|
tags?: (string | {
|
|
11730
12073
|
context?: string;
|
|
11731
12074
|
tag?: string;
|
|
11732
|
-
[k: string]: unknown | undefined;
|
|
11733
12075
|
})[];
|
|
11734
12076
|
}];
|
|
11735
12077
|
// ----- jsdoc/require-template -----
|
|
@@ -11800,6 +12142,22 @@ type JsdocTextEscaping = [] | [{
|
|
|
11800
12142
|
escapeHTML?: boolean;
|
|
11801
12143
|
escapeMarkdown?: boolean;
|
|
11802
12144
|
}];
|
|
12145
|
+
// ----- jsdoc/ts-ban-ts-comment -----
|
|
12146
|
+
type JsdocTsBanTsComment = [] | [{
|
|
12147
|
+
minimumDescriptionLength?: number;
|
|
12148
|
+
"ts-check"?: (boolean | "allow-with-description" | {
|
|
12149
|
+
descriptionFormat?: string;
|
|
12150
|
+
});
|
|
12151
|
+
"ts-expect-error"?: (boolean | "allow-with-description" | {
|
|
12152
|
+
descriptionFormat?: string;
|
|
12153
|
+
});
|
|
12154
|
+
"ts-ignore"?: (boolean | "allow-with-description" | {
|
|
12155
|
+
descriptionFormat?: string;
|
|
12156
|
+
});
|
|
12157
|
+
"ts-nocheck"?: (boolean | "allow-with-description" | {
|
|
12158
|
+
descriptionFormat?: string;
|
|
12159
|
+
});
|
|
12160
|
+
}];
|
|
11803
12161
|
// ----- jsdoc/ts-method-signature-style -----
|
|
11804
12162
|
type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
|
|
11805
12163
|
enableFixer?: boolean;
|
|
@@ -13541,7 +13899,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = [] | [{
|
|
|
13541
13899
|
type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
13542
13900
|
version?: string;
|
|
13543
13901
|
allowExperimental?: boolean;
|
|
13544
|
-
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.locks" | "navigator.locks.request" | "navigator.locks.query" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decapsulateBits" | "crypto.subtle.decapsulateKey" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encapsulateBits" | "crypto.subtle.encapsulateKey" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.getPublicKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "SubtleCrypto.supports" | "CloseEvent" | "CustomEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decapsulateBits" | "crypto.webcrypto.subtle.decapsulateKey" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encapsulateBits" | "crypto.webcrypto.subtle.encapsulateKey" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.getPublicKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.argon2" | "crypto.argon2Sync" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.decapsulate" | "crypto.diffieHellman" | "crypto.encapsulate" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.mkdtempDisposable" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.mkdtempDisposableSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.Utf8Stream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.mkdtempDisposable" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.setMaxIdleHTTPParsers" | "http.Agent()" | "http.Agent" | "http.ClientRequest()" | "http.ClientRequest" | "http.Server()" | "http.Server" | "http.ServerResponse()" | "http.ServerResponse" | "http.IncomingMessage()" | "http.IncomingMessage" | "http.OutgoingMessage()" | "http.OutgoingMessage" | "http.WebSocket()" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.Network.webSocketCreated" | "inspector.Network.webSocketHandshakeResponseReceived" | "inspector.Network.webSocketClosed" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.Network.webSocketCreated" | "inspector/promises.Network.webSocketHandshakeResponseReceived" | "inspector/promises.Network.webSocketClosed" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.BlockList.isBlockList" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.eventLoopUtilization" | "perf_hooks.timerify" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getAssetKeys" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getAssetKeys" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "_stream_duplex" | "_stream_passthrough" | "_stream_readable" | "_stream_transform" | "_stream_wrap" | "_stream_writable" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.DatabaseSync" | "sqlite.Session" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.property" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "_tls_common" | "_tls_wrap" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "v8.startCpuProfile" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.threadName" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.locks" | "worker_threads.locks.request" | "worker_threads.locks.query" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
13902
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "QuotaExceededError" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "Worker" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.locks" | "navigator.locks.request" | "navigator.locks.query" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "Buffer.stringLength" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decapsulateBits" | "crypto.subtle.decapsulateKey" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encapsulateBits" | "crypto.subtle.encapsulateKey" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.getPublicKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "SubtleCrypto.supports" | "CloseEvent" | "CustomEvent" | "ErrorEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.permission.drop" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.addUncaughtExceptionCaptureCallback" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "bench" | "bench.after" | "bench.afterEach" | "bench.before" | "bench.beforeEach" | "bench.bench" | "bench.bench.only" | "bench.bench.skip" | "bench.createRunner" | "bench.describe" | "bench.only" | "bench.run" | "bench.runFile" | "bench.skip" | "bench.suite" | "bench/reporters" | "bench/reporters.json" | "bench/reporters.spec" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isLatin1" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.Buffer.stringLength" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decapsulateBits" | "crypto.webcrypto.subtle.decapsulateKey" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encapsulateBits" | "crypto.webcrypto.subtle.encapsulateKey" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.getPublicKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.argon2" | "crypto.argon2Sync" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createMac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.decapsulate" | "crypto.diffieHellman" | "crypto.encapsulate" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.getMacs" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.parsePKCS12" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.randomUUIDv7" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.boundedChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "diagnostics_channel.BoundedChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "dtls" | "dtls.connect" | "dtls.createSecureContext" | "dtls.listen" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "ffi" | "ffi.DynamicLibrary" | "ffi.dlclose" | "ffi.dlopen" | "ffi.dlsym" | "ffi.exportArrayBuffer" | "ffi.exportArrayBufferView" | "ffi.exportBuffer" | "ffi.exportString" | "ffi.getCurrentEventLoop" | "ffi.getFloat32" | "ffi.getFloat64" | "ffi.getInt16" | "ffi.getInt32" | "ffi.getInt64" | "ffi.getInt8" | "ffi.getRawPointer" | "ffi.getUint16" | "ffi.getUint32" | "ffi.getUint64" | "ffi.getUint8" | "ffi.setFloat32" | "ffi.setFloat64" | "ffi.setInt16" | "ffi.setInt32" | "ffi.setInt64" | "ffi.setInt8" | "ffi.setUint16" | "ffi.setUint32" | "ffi.setUint64" | "ffi.setUint8" | "ffi.suffix" | "ffi.toArrayBuffer" | "ffi.toBuffer" | "ffi.toString" | "ffi.types" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.mkdtempDisposable" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.mkdtempDisposableSync" | "fs.opendirSync" | "fs.openSync" | "fs.openAsBlobSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.F_OK" | "fs.R_OK" | "fs.W_OK" | "fs.X_OK" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.Utf8Stream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.mkdtempDisposable" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.isValidHeaderName" | "http.isValidHeaderValue" | "http.websocketMask" | "http.websocketUnmask" | "http.setMaxIdleHTTPParsers" | "http.setGlobalProxyFromEnv" | "http.Agent()" | "http.Agent" | "http.ClientRequest()" | "http.ClientRequest" | "http.Server()" | "http.Server" | "http.ServerResponse()" | "http.ServerResponse" | "http.IncomingMessage()" | "http.IncomingMessage" | "http.OutgoingMessage()" | "http.OutgoingMessage" | "http.WebSocket()" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.DOMStorage.domStorageItemAdded" | "inspector.DOMStorage.domStorageItemRemoved" | "inspector.DOMStorage.domStorageItemUpdated" | "inspector.DOMStorage.domStorageItemsCleared" | "inspector.DOMStorage.registerStorage" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.Network.webSocketCreated" | "inspector.Network.webSocketHandshakeResponseReceived" | "inspector.Network.webSocketClosed" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.DOMStorage.domStorageItemAdded" | "inspector/promises.DOMStorage.domStorageItemRemoved" | "inspector/promises.DOMStorage.domStorageItemUpdated" | "inspector/promises.DOMStorage.domStorageItemsCleared" | "inspector/promises.DOMStorage.registerStorage" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.Network.webSocketCreated" | "inspector/promises.Network.webSocketHandshakeResponseReceived" | "inspector/promises.Network.webSocketClosed" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module._debug" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module._debug" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BoundSocket" | "net.BlockList" | "net.BlockList.isBlockList" | "net.BlockList.PRIVATE_RANGES" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.createSlidingWindowHistogram" | "perf_hooks.eventLoopUtilization" | "perf_hooks.importHistogram" | "perf_hooks.timerify" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getAssetKeys" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getAssetKeys" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.ReadableStreamTee" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.bytes" | "stream/consumers.json" | "stream/consumers.text" | "stream/iter" | "stream/iter.array" | "stream/iter.arrayBuffer" | "stream/iter.arrayBufferSync" | "stream/iter.arraySync" | "stream/iter.broadcast" | "stream/iter.broadcastProtocol" | "stream/iter.bytes" | "stream/iter.bytesSync" | "stream/iter.drainableProtocol" | "stream/iter.dump" | "stream/iter.dumpSync" | "stream/iter.duplex" | "stream/iter.from" | "stream/iter.fromSync" | "stream/iter.merge" | "stream/iter.ondrain" | "stream/iter.pipeTo" | "stream/iter.pipeToSync" | "stream/iter.pull" | "stream/iter.pullSync" | "stream/iter.push" | "stream/iter.share" | "stream/iter.shareProtocol" | "stream/iter.shareSync" | "stream/iter.shareSyncProtocol" | "stream/iter.tap" | "stream/iter.tapSync" | "stream/iter.text" | "stream/iter.textSync" | "stream/iter.toAsyncStreamable" | "stream/iter.toStreamable" | "stream/iter.fromReadable" | "stream/iter.fromWritable" | "stream/iter.toReadable" | "stream/iter.toReadableSync" | "stream/iter.toWritable" | "stream/iter.Broadcast" | "stream/iter.Broadcast.from" | "stream/iter.Share" | "stream/iter.Share.from" | "stream/iter.Stream" | "stream/iter.Stream.array" | "stream/iter.Stream.arrayBuffer" | "stream/iter.Stream.arrayBufferSync" | "stream/iter.Stream.arraySync" | "stream/iter.Stream.broadcast" | "stream/iter.Stream.broadcastProtocol" | "stream/iter.Stream.bytes" | "stream/iter.Stream.bytesSync" | "stream/iter.Stream.drainableProtocol" | "stream/iter.Stream.dump" | "stream/iter.Stream.dumpSync" | "stream/iter.Stream.duplex" | "stream/iter.Stream.from" | "stream/iter.Stream.fromSync" | "stream/iter.Stream.merge" | "stream/iter.Stream.ondrain" | "stream/iter.Stream.pipeTo" | "stream/iter.Stream.pipeToSync" | "stream/iter.Stream.pull" | "stream/iter.Stream.pullSync" | "stream/iter.Stream.push" | "stream/iter.Stream.share" | "stream/iter.Stream.shareProtocol" | "stream/iter.Stream.shareSync" | "stream/iter.Stream.shareSyncProtocol" | "stream/iter.Stream.tap" | "stream/iter.Stream.tapSync" | "stream/iter.Stream.text" | "stream/iter.Stream.textSync" | "stream/iter.Stream.toAsyncStreamable" | "stream/iter.Stream.toStreamable" | "stream/iter.SyncShare" | "stream/iter.SyncShare.fromSync" | "_stream_duplex" | "_stream_passthrough" | "_stream_readable" | "_stream_transform" | "_stream_wrap" | "_stream_writable" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.Database" | "sqlite.DatabaseSync" | "sqlite.Session" | "sqlite.Statement" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.getTestContext" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.property" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCertificateCompressionAlgorithms" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "_tls_common" | "_tls_wrap" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.convertProcessSignalToExitCode" | "util.debounce" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.isPartialDeepStrictEqual" | "util.markPromiseAsHandled" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.throttle" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEType.parse" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.setHeapProfileNearHeapLimit" | "v8.GCProfiler" | "v8.startCpuProfile" | "v8.startHeapProfile" | "vfs" | "vfs.ComposableProvider" | "vfs.create" | "vfs.MemoryProvider" | "vfs.registerProvider" | "vfs.RealFSProvider" | "vfs.vfsBase" | "vfs.VirtualFileSystem" | "vfs.VirtualProvider" | "vfs.ZipProvider" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.threadName" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.locks" | "worker_threads.locks.request" | "worker_threads.locks.query" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.createZipArchive" | "zlib.createZipArchiveSync" | "zlib.getMaxZipContentSize" | "zlib.setMaxZipContentSize" | "zlib.zipFiles" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib.ZipBuffer" | "zlib.ZipEntry" | "zlib.ZipEntry.create" | "zlib.ZipEntry.createStream" | "zlib.ZipEntry.createSymlink" | "zlib.ZipEntry.createSync" | "zlib.ZipEntry.read" | "zlib.ZipFile" | "zlib.ZipFile.open" | "zlib.ZipFile.openSync" | "zlib" | "zlib/iter" | "zlib/iter.compressBrotli" | "zlib/iter.compressBrotliSync" | "zlib/iter.compressDeflate" | "zlib/iter.compressDeflateSync" | "zlib/iter.compressGzip" | "zlib/iter.compressGzipSync" | "zlib/iter.compressZstd" | "zlib/iter.compressZstdSync" | "zlib/iter.decompressBrotli" | "zlib/iter.decompressBrotliSync" | "zlib/iter.decompressDeflate" | "zlib/iter.decompressDeflateSync" | "zlib/iter.decompressGzip" | "zlib/iter.decompressGzipSync" | "zlib/iter.decompressZstd" | "zlib/iter.decompressZstdSync" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
13545
13903
|
}];
|
|
13546
13904
|
// ----- node/prefer-global/buffer -----
|
|
13547
13905
|
type NodePreferGlobalBuffer = [] | [("always" | "never")];
|
|
@@ -16553,6 +16911,7 @@ type ReactRefreshOnlyExportComponents = [] | [{
|
|
|
16553
16911
|
extraHOCs?: string[];
|
|
16554
16912
|
allowExportNames?: string[];
|
|
16555
16913
|
allowConstantExport?: boolean;
|
|
16914
|
+
allowCompoundComponents?: boolean;
|
|
16556
16915
|
checkJS?: boolean;
|
|
16557
16916
|
}];
|
|
16558
16917
|
// ----- react/dom-no-unknown-property -----
|
|
@@ -16560,6 +16919,10 @@ type ReactDomNoUnknownProperty = [] | [{
|
|
|
16560
16919
|
ignore?: string[];
|
|
16561
16920
|
requireDataLowercase?: boolean;
|
|
16562
16921
|
}];
|
|
16922
|
+
// ----- react/dom-no-unsafe-target-blank -----
|
|
16923
|
+
type ReactDomNoUnsafeTargetBlank = [] | [{
|
|
16924
|
+
allowReferrer?: boolean;
|
|
16925
|
+
}];
|
|
16563
16926
|
// ----- react/exhaustive-deps -----
|
|
16564
16927
|
type ReactExhaustiveDeps = [] | [{
|
|
16565
16928
|
additionalHooks?: string;
|
|
@@ -19687,6 +20050,9 @@ type UnicornFilenameCase = [] | [({
|
|
|
19687
20050
|
})[];
|
|
19688
20051
|
multipleFileExtensions?: boolean;
|
|
19689
20052
|
checkDirectories?: boolean;
|
|
20053
|
+
directoryRoots?: (string | {
|
|
20054
|
+
[k: string]: unknown | undefined;
|
|
20055
|
+
})[];
|
|
19690
20056
|
} | {
|
|
19691
20057
|
cases?: {
|
|
19692
20058
|
camelCase?: boolean;
|
|
@@ -19700,6 +20066,9 @@ type UnicornFilenameCase = [] | [({
|
|
|
19700
20066
|
})[];
|
|
19701
20067
|
multipleFileExtensions?: boolean;
|
|
19702
20068
|
checkDirectories?: boolean;
|
|
20069
|
+
directoryRoots?: (string | {
|
|
20070
|
+
[k: string]: unknown | undefined;
|
|
20071
|
+
})[];
|
|
19703
20072
|
})];
|
|
19704
20073
|
// ----- unicorn/id-match -----
|
|
19705
20074
|
type UnicornIdMatch = [] | [string] | [string, {
|
|
@@ -19725,6 +20094,11 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
19725
20094
|
interface _UnicornImportStyle_BooleanObject {
|
|
19726
20095
|
[k: string]: boolean | undefined;
|
|
19727
20096
|
}
|
|
20097
|
+
// ----- unicorn/indent -----
|
|
20098
|
+
type UnicornIndent = [] | [{
|
|
20099
|
+
indent?: ("tab" | number);
|
|
20100
|
+
tabWidth?: number;
|
|
20101
|
+
}];
|
|
19728
20102
|
// ----- unicorn/isolated-functions -----
|
|
19729
20103
|
type UnicornIsolatedFunctions = [] | [{
|
|
19730
20104
|
overrideGlobals?: {
|
|
@@ -19736,6 +20110,15 @@ type UnicornIsolatedFunctions = [] | [{
|
|
|
19736
20110
|
}];
|
|
19737
20111
|
// ----- unicorn/iteration-fallback-style -----
|
|
19738
20112
|
type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
|
|
20113
|
+
// ----- unicorn/key-name-casing -----
|
|
20114
|
+
type UnicornKeyNameCasing = [] | [{
|
|
20115
|
+
camelCase?: boolean;
|
|
20116
|
+
PascalCase?: boolean;
|
|
20117
|
+
SCREAMING_SNAKE_CASE?: boolean;
|
|
20118
|
+
"kebab-case"?: boolean;
|
|
20119
|
+
snake_case?: boolean;
|
|
20120
|
+
ignore?: string[];
|
|
20121
|
+
}];
|
|
19739
20122
|
// ----- unicorn/logical-assignment-operators -----
|
|
19740
20123
|
type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
19741
20124
|
enforceForIfStatements?: boolean;
|
|
@@ -19786,10 +20169,18 @@ type UnicornNoArrayReverse = [] | [{
|
|
|
19786
20169
|
type UnicornNoArraySort = [] | [{
|
|
19787
20170
|
allowExpressionStatement?: boolean;
|
|
19788
20171
|
}];
|
|
20172
|
+
// ----- unicorn/no-break-in-nested-loop -----
|
|
20173
|
+
type UnicornNoBreakInNestedLoop = [] | [{
|
|
20174
|
+
checkContinue?: boolean;
|
|
20175
|
+
}];
|
|
19789
20176
|
// ----- unicorn/no-empty-file -----
|
|
19790
20177
|
type UnicornNoEmptyFile = [] | [{
|
|
19791
20178
|
allowComments?: boolean;
|
|
19792
20179
|
}];
|
|
20180
|
+
// ----- unicorn/no-immediate-mutation -----
|
|
20181
|
+
type UnicornNoImmediateMutation = [] | [{
|
|
20182
|
+
checkConditionals?: boolean;
|
|
20183
|
+
}];
|
|
19793
20184
|
// ----- unicorn/no-instanceof-builtins -----
|
|
19794
20185
|
type UnicornNoInstanceofBuiltins = [] | [{
|
|
19795
20186
|
useErrorIsError?: boolean;
|
|
@@ -19826,10 +20217,20 @@ type UnicornNoNull = [] | [{
|
|
|
19826
20217
|
checkArguments?: boolean;
|
|
19827
20218
|
checkStrictEquality?: boolean;
|
|
19828
20219
|
}];
|
|
20220
|
+
// ----- unicorn/no-top-level-side-effects -----
|
|
20221
|
+
type UnicornNoTopLevelSideEffects = [] | [{
|
|
20222
|
+
allow?: {
|
|
20223
|
+
[k: string]: string[] | undefined;
|
|
20224
|
+
};
|
|
20225
|
+
}];
|
|
19829
20226
|
// ----- unicorn/no-typeof-undefined -----
|
|
19830
20227
|
type UnicornNoTypeofUndefined = [] | [{
|
|
19831
20228
|
checkGlobalVariables?: boolean;
|
|
19832
20229
|
}];
|
|
20230
|
+
// ----- unicorn/no-unnecessary-parameters -----
|
|
20231
|
+
type UnicornNoUnnecessaryParameters = [] | [{
|
|
20232
|
+
minimumCallCount?: number;
|
|
20233
|
+
}];
|
|
19833
20234
|
// ----- unicorn/no-unnecessary-polyfills -----
|
|
19834
20235
|
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
19835
20236
|
targets?: (string | string[] | {
|
|
@@ -19893,9 +20294,19 @@ type UnicornPreferAt = [] | [{
|
|
|
19893
20294
|
getLastElementFunctions?: string[];
|
|
19894
20295
|
checkAllIndexAccess?: boolean;
|
|
19895
20296
|
}];
|
|
20297
|
+
// ----- unicorn/prefer-combined-guards -----
|
|
20298
|
+
type UnicornPreferCombinedGuards = [] | [{
|
|
20299
|
+
checkCompoundConditions?: boolean;
|
|
20300
|
+
checkMultiStatementBodies?: boolean;
|
|
20301
|
+
}];
|
|
19896
20302
|
// ----- unicorn/prefer-continue -----
|
|
19897
20303
|
type UnicornPreferContinue = [] | [{
|
|
19898
20304
|
maximumStatements?: number;
|
|
20305
|
+
checkShortBodies?: boolean;
|
|
20306
|
+
}];
|
|
20307
|
+
// ----- unicorn/prefer-default-parameters -----
|
|
20308
|
+
type UnicornPreferDefaultParameters = [] | [{
|
|
20309
|
+
checkFallbackExpressions?: boolean;
|
|
19899
20310
|
}];
|
|
19900
20311
|
// ----- unicorn/prefer-dom-node-html-methods -----
|
|
19901
20312
|
type UnicornPreferDomNodeHtmlMethods = [] | [{
|
|
@@ -19905,10 +20316,7 @@ type UnicornPreferDomNodeHtmlMethods = [] | [{
|
|
|
19905
20316
|
// ----- unicorn/prefer-early-return -----
|
|
19906
20317
|
type UnicornPreferEarlyReturn = [] | [{
|
|
19907
20318
|
maximumStatements?: number;
|
|
19908
|
-
|
|
19909
|
-
// ----- unicorn/prefer-explicit-viewport-units -----
|
|
19910
|
-
type UnicornPreferExplicitViewportUnits = [] | [{
|
|
19911
|
-
unit?: ("dvh" | "svh" | "lvh");
|
|
20319
|
+
checkShortBodies?: boolean;
|
|
19912
20320
|
}];
|
|
19913
20321
|
// ----- unicorn/prefer-export-from -----
|
|
19914
20322
|
type UnicornPreferExportFrom = [] | [{
|
|
@@ -19953,6 +20361,10 @@ type UnicornPreferSetHas = [] | [{
|
|
|
19953
20361
|
}];
|
|
19954
20362
|
// ----- unicorn/prefer-short-arrow-method -----
|
|
19955
20363
|
type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
|
|
20364
|
+
// ----- unicorn/prefer-simplified-conditions -----
|
|
20365
|
+
type UnicornPreferSimplifiedConditions = [] | [{
|
|
20366
|
+
negatedConditions?: ("simplify" | "expand");
|
|
20367
|
+
}];
|
|
19956
20368
|
// ----- unicorn/prefer-single-call -----
|
|
19957
20369
|
type UnicornPreferSingleCall = [] | [{
|
|
19958
20370
|
ignore?: string[];
|
|
@@ -19977,7 +20389,10 @@ type UnicornPreferTemporal = [] | [{
|
|
|
19977
20389
|
checkMethods?: boolean;
|
|
19978
20390
|
}];
|
|
19979
20391
|
// ----- unicorn/prefer-ternary -----
|
|
19980
|
-
type UnicornPreferTernary = [] | [("always" | "only-single-line")]
|
|
20392
|
+
type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
|
|
20393
|
+
checkVaryingBase?: boolean;
|
|
20394
|
+
checkComputedMemberAccess?: boolean;
|
|
20395
|
+
}];
|
|
19981
20396
|
// ----- unicorn/relative-url-style -----
|
|
19982
20397
|
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
19983
20398
|
// ----- unicorn/require-css-escape -----
|
|
@@ -20912,7 +21327,7 @@ type VueNoDeprecatedSlotAttribute = [] | [{
|
|
|
20912
21327
|
}];
|
|
20913
21328
|
// ----- vue/no-dupe-keys -----
|
|
20914
21329
|
type VueNoDupeKeys = [] | [{
|
|
20915
|
-
groups?:
|
|
21330
|
+
groups?: string[];
|
|
20916
21331
|
}];
|
|
20917
21332
|
// ----- vue/no-duplicate-attr-inheritance -----
|
|
20918
21333
|
type VueNoDuplicateAttrInheritance = [] | [{
|
|
@@ -21042,8 +21457,8 @@ type VueNoReservedComponentNames = [] | [{
|
|
|
21042
21457
|
}];
|
|
21043
21458
|
// ----- vue/no-reserved-keys -----
|
|
21044
21459
|
type VueNoReservedKeys = [] | [{
|
|
21045
|
-
reserved?:
|
|
21046
|
-
groups?:
|
|
21460
|
+
reserved?: string[];
|
|
21461
|
+
groups?: string[];
|
|
21047
21462
|
}];
|
|
21048
21463
|
// ----- vue/no-reserved-props -----
|
|
21049
21464
|
type VueNoReservedProps = [] | [{
|
|
@@ -21131,7 +21546,7 @@ type VueNoTemplateTargetBlank = [] | [{
|
|
|
21131
21546
|
}];
|
|
21132
21547
|
// ----- vue/no-undef-components -----
|
|
21133
21548
|
type VueNoUndefComponents = [] | [{
|
|
21134
|
-
ignorePatterns?:
|
|
21549
|
+
ignorePatterns?: string[];
|
|
21135
21550
|
}];
|
|
21136
21551
|
// ----- vue/no-undef-directives -----
|
|
21137
21552
|
type VueNoUndefDirectives = [] | [{
|
|
@@ -21265,7 +21680,7 @@ type VueOperatorLinebreak = [] | [(("after" | "before" | "none") | null)] | [(("
|
|
|
21265
21680
|
}];
|
|
21266
21681
|
// ----- vue/order-in-components -----
|
|
21267
21682
|
type VueOrderInComponents = [] | [{
|
|
21268
|
-
order?:
|
|
21683
|
+
order?: (string | string[])[];
|
|
21269
21684
|
}];
|
|
21270
21685
|
// ----- vue/padding-line-between-blocks -----
|
|
21271
21686
|
type VuePaddingLineBetweenBlocks = [] | [("never" | "always")];
|
|
@@ -21354,8 +21769,8 @@ type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")];
|
|
|
21354
21769
|
// ----- vue/sort-keys -----
|
|
21355
21770
|
type VueSortKeys = [] | [("asc" | "desc")] | [("asc" | "desc"), {
|
|
21356
21771
|
caseSensitive?: boolean;
|
|
21357
|
-
ignoreChildrenOf?:
|
|
21358
|
-
ignoreGrandchildrenOf?:
|
|
21772
|
+
ignoreChildrenOf?: string[];
|
|
21773
|
+
ignoreGrandchildrenOf?: string[];
|
|
21359
21774
|
minKeys?: number;
|
|
21360
21775
|
natural?: boolean;
|
|
21361
21776
|
allowLineSeparatedGroups?: boolean;
|
|
@@ -21415,7 +21830,7 @@ type VueValidVFor = [] | [{
|
|
|
21415
21830
|
}];
|
|
21416
21831
|
// ----- vue/valid-v-on -----
|
|
21417
21832
|
type VueValidVOn = [] | [{
|
|
21418
|
-
modifiers?:
|
|
21833
|
+
modifiers?: string[];
|
|
21419
21834
|
}];
|
|
21420
21835
|
// ----- vue/valid-v-slot -----
|
|
21421
21836
|
type VueValidVSlot = [] | [{
|
|
@@ -21785,14 +22200,14 @@ interface VendoredPrettierOptionsRequired {
|
|
|
21785
22200
|
}
|
|
21786
22201
|
//#endregion
|
|
21787
22202
|
//#region src/types.d.ts
|
|
21788
|
-
type Awaitable<T> = T | Promise<T>;
|
|
21789
|
-
type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
|
|
22203
|
+
export type Awaitable<T> = T | Promise<T>;
|
|
22204
|
+
export type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
|
|
21790
22205
|
/**
|
|
21791
22206
|
* An updated version of ESLint's `Linter.Config`, which provides autocompletion
|
|
21792
22207
|
* for `rules` and relaxes type limitations for `plugins` and `rules`, because
|
|
21793
22208
|
* many plugins still lack proper type definitions.
|
|
21794
22209
|
*/
|
|
21795
|
-
type TypedFlatConfigItem = Omit<ConfigWithExtends, "plugins" | "rules"> & {
|
|
22210
|
+
export type TypedFlatConfigItem = Omit<ConfigWithExtends, "plugins" | "rules"> & {
|
|
21796
22211
|
/**
|
|
21797
22212
|
* An object containing a name-value mapping of plugin names to plugin objects.
|
|
21798
22213
|
* When `files` is specified, these plugins are only available to the matching files.
|
|
@@ -21806,13 +22221,13 @@ type TypedFlatConfigItem = Omit<ConfigWithExtends, "plugins" | "rules"> & {
|
|
|
21806
22221
|
*/
|
|
21807
22222
|
rules?: Rules;
|
|
21808
22223
|
};
|
|
21809
|
-
interface OptionsFiles {
|
|
22224
|
+
export interface OptionsFiles {
|
|
21810
22225
|
/**
|
|
21811
22226
|
* Override the `files` option to provide custom globs.
|
|
21812
22227
|
*/
|
|
21813
22228
|
files?: string[];
|
|
21814
22229
|
}
|
|
21815
|
-
interface OptionsVue extends OptionsOverrides {
|
|
22230
|
+
export interface OptionsVue extends OptionsOverrides {
|
|
21816
22231
|
/**
|
|
21817
22232
|
* Create virtual files for Vue SFC blocks to enable linting.
|
|
21818
22233
|
*
|
|
@@ -21834,8 +22249,8 @@ interface OptionsVue extends OptionsOverrides {
|
|
|
21834
22249
|
*/
|
|
21835
22250
|
a11y?: boolean;
|
|
21836
22251
|
}
|
|
21837
|
-
interface OptionsJSXA11y extends OptionsOverrides {}
|
|
21838
|
-
interface OptionsJSX {
|
|
22252
|
+
export interface OptionsJSXA11y extends OptionsOverrides {}
|
|
22253
|
+
export interface OptionsJSX {
|
|
21839
22254
|
/**
|
|
21840
22255
|
* Enable JSX accessibility rules.
|
|
21841
22256
|
*
|
|
@@ -21847,8 +22262,8 @@ interface OptionsJSX {
|
|
|
21847
22262
|
*/
|
|
21848
22263
|
a11y?: boolean | OptionsJSXA11y;
|
|
21849
22264
|
}
|
|
21850
|
-
type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly);
|
|
21851
|
-
interface OptionsFormatters {
|
|
22265
|
+
export type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly);
|
|
22266
|
+
export interface OptionsFormatters {
|
|
21852
22267
|
/**
|
|
21853
22268
|
* Enable formatting support for CSS, Less, Sass, and SCSS.
|
|
21854
22269
|
*
|
|
@@ -21904,7 +22319,7 @@ interface OptionsFormatters {
|
|
|
21904
22319
|
*/
|
|
21905
22320
|
astro?: "prettier" | boolean;
|
|
21906
22321
|
}
|
|
21907
|
-
interface OptionsComponentExts {
|
|
22322
|
+
export interface OptionsComponentExts {
|
|
21908
22323
|
/**
|
|
21909
22324
|
* Additional extensions for components.
|
|
21910
22325
|
*
|
|
@@ -21913,7 +22328,7 @@ interface OptionsComponentExts {
|
|
|
21913
22328
|
*/
|
|
21914
22329
|
componentExts?: string[];
|
|
21915
22330
|
}
|
|
21916
|
-
interface OptionsE18e extends OptionsOverrides {
|
|
22331
|
+
export interface OptionsE18e extends OptionsOverrides {
|
|
21917
22332
|
/**
|
|
21918
22333
|
* Include modernization rules
|
|
21919
22334
|
*
|
|
@@ -21936,7 +22351,7 @@ interface OptionsE18e extends OptionsOverrides {
|
|
|
21936
22351
|
*/
|
|
21937
22352
|
performanceImprovements?: boolean;
|
|
21938
22353
|
}
|
|
21939
|
-
interface OptionsUnicorn extends OptionsOverrides {
|
|
22354
|
+
export interface OptionsUnicorn extends OptionsOverrides {
|
|
21940
22355
|
/**
|
|
21941
22356
|
* Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
|
|
21942
22357
|
*
|
|
@@ -21944,7 +22359,7 @@ interface OptionsUnicorn extends OptionsOverrides {
|
|
|
21944
22359
|
*/
|
|
21945
22360
|
allRecommended?: boolean;
|
|
21946
22361
|
}
|
|
21947
|
-
interface OptionsMarkdown extends OptionsOverrides {
|
|
22362
|
+
export interface OptionsMarkdown extends OptionsOverrides {
|
|
21948
22363
|
/**
|
|
21949
22364
|
* Enable GFM (GitHub Flavored Markdown) support.
|
|
21950
22365
|
*
|
|
@@ -21956,7 +22371,7 @@ interface OptionsMarkdown extends OptionsOverrides {
|
|
|
21956
22371
|
*/
|
|
21957
22372
|
overridesMarkdown?: TypedFlatConfigItem["rules"];
|
|
21958
22373
|
}
|
|
21959
|
-
interface OptionsTypeScriptParserOptions {
|
|
22374
|
+
export interface OptionsTypeScriptParserOptions {
|
|
21960
22375
|
/**
|
|
21961
22376
|
* Additional parser options for TypeScript.
|
|
21962
22377
|
*/
|
|
@@ -21972,7 +22387,7 @@ interface OptionsTypeScriptParserOptions {
|
|
|
21972
22387
|
*/
|
|
21973
22388
|
ignoresTypeAware?: string[];
|
|
21974
22389
|
}
|
|
21975
|
-
interface OptionsTypeScriptWithTypes {
|
|
22390
|
+
export interface OptionsTypeScriptWithTypes {
|
|
21976
22391
|
/**
|
|
21977
22392
|
* When this options is provided, type aware rules will be enabled.
|
|
21978
22393
|
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
@@ -21983,20 +22398,20 @@ interface OptionsTypeScriptWithTypes {
|
|
|
21983
22398
|
*/
|
|
21984
22399
|
overridesTypeAware?: TypedFlatConfigItem["rules"];
|
|
21985
22400
|
}
|
|
21986
|
-
interface OptionsHasTypeScript {
|
|
22401
|
+
export interface OptionsHasTypeScript {
|
|
21987
22402
|
typescript?: boolean;
|
|
21988
22403
|
}
|
|
21989
|
-
interface OptionsStylistic {
|
|
22404
|
+
export interface OptionsStylistic {
|
|
21990
22405
|
stylistic?: boolean | StylisticConfig;
|
|
21991
22406
|
}
|
|
21992
|
-
interface OptionsStylistic {
|
|
22407
|
+
export interface OptionsStylistic {
|
|
21993
22408
|
stylistic?: boolean | StylisticConfig;
|
|
21994
22409
|
}
|
|
21995
|
-
interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi" | "braceStyle" | "experimental"> {}
|
|
21996
|
-
interface OptionsOverrides {
|
|
22410
|
+
export interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi" | "braceStyle" | "experimental"> {}
|
|
22411
|
+
export interface OptionsOverrides {
|
|
21997
22412
|
overrides?: TypedFlatConfigItem["rules"];
|
|
21998
22413
|
}
|
|
21999
|
-
interface OptionsProjectType {
|
|
22414
|
+
export interface OptionsProjectType {
|
|
22000
22415
|
/**
|
|
22001
22416
|
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
22002
22417
|
*
|
|
@@ -22004,7 +22419,7 @@ interface OptionsProjectType {
|
|
|
22004
22419
|
*/
|
|
22005
22420
|
type?: "app" | "lib";
|
|
22006
22421
|
}
|
|
22007
|
-
interface OptionsTypeScriptErasableOnly {
|
|
22422
|
+
export interface OptionsTypeScriptErasableOnly {
|
|
22008
22423
|
/**
|
|
22009
22424
|
* Enable erasable syntax only rules.
|
|
22010
22425
|
*
|
|
@@ -22013,16 +22428,16 @@ interface OptionsTypeScriptErasableOnly {
|
|
|
22013
22428
|
*/
|
|
22014
22429
|
erasableOnly?: boolean;
|
|
22015
22430
|
}
|
|
22016
|
-
interface OptionsRegExp {
|
|
22431
|
+
export interface OptionsRegExp {
|
|
22017
22432
|
/**
|
|
22018
22433
|
* Override rulelevels
|
|
22019
22434
|
*/
|
|
22020
22435
|
level?: "error" | "warn";
|
|
22021
22436
|
}
|
|
22022
|
-
interface OptionsIsInEditor {
|
|
22437
|
+
export interface OptionsIsInEditor {
|
|
22023
22438
|
isInEditor?: boolean;
|
|
22024
22439
|
}
|
|
22025
|
-
interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
|
|
22440
|
+
export interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
|
|
22026
22441
|
/**
|
|
22027
22442
|
* Requires catalogs usage
|
|
22028
22443
|
*
|
|
@@ -22048,7 +22463,7 @@ interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
|
|
|
22048
22463
|
*/
|
|
22049
22464
|
sort?: boolean;
|
|
22050
22465
|
}
|
|
22051
|
-
interface OptionsUnoCSS extends OptionsOverrides {
|
|
22466
|
+
export interface OptionsUnoCSS extends OptionsOverrides {
|
|
22052
22467
|
/**
|
|
22053
22468
|
* Enable attributify support.
|
|
22054
22469
|
* @default true
|
|
@@ -22060,7 +22475,7 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
22060
22475
|
*/
|
|
22061
22476
|
strict?: boolean;
|
|
22062
22477
|
}
|
|
22063
|
-
interface OptionsTailwindCSS extends OptionsOverrides {
|
|
22478
|
+
export interface OptionsTailwindCSS extends OptionsOverrides {
|
|
22064
22479
|
/**
|
|
22065
22480
|
* Read CSS files
|
|
22066
22481
|
*/
|
|
@@ -22080,8 +22495,8 @@ interface OptionsTailwindCSS extends OptionsOverrides {
|
|
|
22080
22495
|
*/
|
|
22081
22496
|
customClassNames?: boolean;
|
|
22082
22497
|
}
|
|
22083
|
-
interface OptionsReact extends OptionsOverrides {}
|
|
22084
|
-
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
22498
|
+
export interface OptionsReact extends OptionsOverrides {}
|
|
22499
|
+
export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
22085
22500
|
/**
|
|
22086
22501
|
* Enable gitignore support.
|
|
22087
22502
|
*
|
|
@@ -22328,7 +22743,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
22328
22743
|
}
|
|
22329
22744
|
//#endregion
|
|
22330
22745
|
//#region src/factory.d.ts
|
|
22331
|
-
declare const defaultPluginRenaming: {
|
|
22746
|
+
export declare const defaultPluginRenaming: {
|
|
22332
22747
|
"@eslint-react": string;
|
|
22333
22748
|
"@next/next": string;
|
|
22334
22749
|
"@stylistic": string;
|
|
@@ -22337,9 +22752,9 @@ declare const defaultPluginRenaming: {
|
|
|
22337
22752
|
vitest: string;
|
|
22338
22753
|
yml: string;
|
|
22339
22754
|
};
|
|
22340
|
-
type EslintConfigOptions = OptionsConfig & Omit<TypedFlatConfigItem, "files" | "ignores">;
|
|
22341
|
-
type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[];
|
|
22342
|
-
type EslintConfigReturn = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
22755
|
+
export type EslintConfigOptions = OptionsConfig & Omit<TypedFlatConfigItem, "files" | "ignores">;
|
|
22756
|
+
export type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[];
|
|
22757
|
+
export type EslintConfigReturn = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
22343
22758
|
/**
|
|
22344
22759
|
* Construct an array of ESLint flat config items.
|
|
22345
22760
|
*
|
|
@@ -22350,62 +22765,62 @@ type EslintConfigReturn = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
|
22350
22765
|
* @returns {Promise<TypedFlatConfigItem[]>}
|
|
22351
22766
|
* The merged ESLint configurations.
|
|
22352
22767
|
*/
|
|
22353
|
-
declare function eslintFlatConfig(options?: EslintConfigOptions, ...userConfigs: UserConfig[]): EslintConfigReturn;
|
|
22354
|
-
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
22355
|
-
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
22356
|
-
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
22768
|
+
export declare function eslintFlatConfig(options?: EslintConfigOptions, ...userConfigs: UserConfig[]): EslintConfigReturn;
|
|
22769
|
+
export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
22770
|
+
export declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
22771
|
+
export declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
22357
22772
|
//#endregion
|
|
22358
22773
|
//#region src/config-presets.d.ts
|
|
22359
|
-
declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
|
|
22360
|
-
declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
|
|
22774
|
+
export declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
|
|
22775
|
+
export declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
|
|
22361
22776
|
//#endregion
|
|
22362
22777
|
//#region src/configs/angular.d.ts
|
|
22363
|
-
declare function angular(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22778
|
+
export declare function angular(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22364
22779
|
//#endregion
|
|
22365
22780
|
//#region src/configs/astro.d.ts
|
|
22366
|
-
declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22781
|
+
export declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22367
22782
|
//#endregion
|
|
22368
22783
|
//#region src/configs/command.d.ts
|
|
22369
|
-
declare function command(): Promise<TypedFlatConfigItem[]>;
|
|
22784
|
+
export declare function command(): Promise<TypedFlatConfigItem[]>;
|
|
22370
22785
|
//#endregion
|
|
22371
22786
|
//#region src/configs/comments.d.ts
|
|
22372
|
-
declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
22787
|
+
export declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
22373
22788
|
//#endregion
|
|
22374
22789
|
//#region src/configs/disables.d.ts
|
|
22375
|
-
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
22790
|
+
export declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
22376
22791
|
//#endregion
|
|
22377
22792
|
//#region src/configs/e18e.d.ts
|
|
22378
|
-
declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
|
|
22793
|
+
export declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
|
|
22379
22794
|
//#endregion
|
|
22380
22795
|
//#region src/configs/formatters.d.ts
|
|
22381
|
-
declare function formatters(rawOptions?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
22796
|
+
export declare function formatters(rawOptions?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
22382
22797
|
//#endregion
|
|
22383
22798
|
//#region src/configs/ignores.d.ts
|
|
22384
|
-
declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
|
|
22799
|
+
export declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
|
|
22385
22800
|
//#endregion
|
|
22386
22801
|
//#region src/configs/imports.d.ts
|
|
22387
|
-
declare function imports(_options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
22802
|
+
export declare function imports(_options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
22388
22803
|
//#endregion
|
|
22389
22804
|
//#region src/configs/javascript.d.ts
|
|
22390
|
-
declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22805
|
+
export declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22391
22806
|
//#endregion
|
|
22392
22807
|
//#region src/configs/jsdoc.d.ts
|
|
22393
|
-
declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
22808
|
+
export declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
22394
22809
|
//#endregion
|
|
22395
22810
|
//#region src/configs/jsonc.d.ts
|
|
22396
|
-
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22811
|
+
export declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22397
22812
|
//#endregion
|
|
22398
22813
|
//#region src/configs/jsx.d.ts
|
|
22399
|
-
declare function jsx(options?: OptionsJSX): Promise<TypedFlatConfigItem[]>;
|
|
22814
|
+
export declare function jsx(options?: OptionsJSX): Promise<TypedFlatConfigItem[]>;
|
|
22400
22815
|
//#endregion
|
|
22401
22816
|
//#region src/configs/markdown.d.ts
|
|
22402
|
-
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsMarkdown): Promise<TypedFlatConfigItem[]>;
|
|
22817
|
+
export declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsMarkdown): Promise<TypedFlatConfigItem[]>;
|
|
22403
22818
|
//#endregion
|
|
22404
22819
|
//#region src/configs/nextjs.d.ts
|
|
22405
|
-
declare function nextjs(options?: OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22820
|
+
export declare function nextjs(options?: OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22406
22821
|
//#endregion
|
|
22407
22822
|
//#region src/configs/node.d.ts
|
|
22408
|
-
declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
22823
|
+
export declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
22409
22824
|
//#endregion
|
|
22410
22825
|
//#region src/configs/perfectionist.d.ts
|
|
22411
22826
|
/**
|
|
@@ -22413,19 +22828,19 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
|
22413
22828
|
*
|
|
22414
22829
|
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
22415
22830
|
*/
|
|
22416
|
-
declare function perfectionist(options: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22831
|
+
export declare function perfectionist(options: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22417
22832
|
//#endregion
|
|
22418
22833
|
//#region src/configs/pnpm.d.ts
|
|
22419
|
-
declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
|
|
22834
|
+
export declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
|
|
22420
22835
|
//#endregion
|
|
22421
22836
|
//#region src/configs/react.d.ts
|
|
22422
|
-
declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22837
|
+
export declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22423
22838
|
//#endregion
|
|
22424
22839
|
//#region src/configs/regexp.d.ts
|
|
22425
|
-
declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22840
|
+
export declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22426
22841
|
//#endregion
|
|
22427
22842
|
//#region src/configs/solid.d.ts
|
|
22428
|
-
declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
|
|
22843
|
+
export declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
|
|
22429
22844
|
//#endregion
|
|
22430
22845
|
//#region src/configs/sort.d.ts
|
|
22431
22846
|
/**
|
|
@@ -22433,86 +22848,86 @@ declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & Optio
|
|
|
22433
22848
|
*
|
|
22434
22849
|
* Requires `jsonc` config
|
|
22435
22850
|
*/
|
|
22436
|
-
declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
|
|
22851
|
+
export declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
|
|
22437
22852
|
/**
|
|
22438
22853
|
* Sort tsconfig.json
|
|
22439
22854
|
*
|
|
22440
22855
|
* Requires `jsonc` config
|
|
22441
22856
|
*/
|
|
22442
|
-
declare function sortTsconfig(): TypedFlatConfigItem[];
|
|
22857
|
+
export declare function sortTsconfig(): TypedFlatConfigItem[];
|
|
22443
22858
|
//#endregion
|
|
22444
22859
|
//#region src/configs/stylistic.d.ts
|
|
22445
|
-
declare const StylisticConfigDefaults: StylisticConfig;
|
|
22446
|
-
interface StylisticOptions extends StylisticConfig, OptionsOverrides {
|
|
22860
|
+
export declare const StylisticConfigDefaults: StylisticConfig;
|
|
22861
|
+
export interface StylisticOptions extends StylisticConfig, OptionsOverrides {
|
|
22447
22862
|
lessOpinionated?: boolean;
|
|
22448
22863
|
}
|
|
22449
|
-
declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
|
|
22864
|
+
export declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
|
|
22450
22865
|
//#endregion
|
|
22451
22866
|
//#region src/configs/svelte.d.ts
|
|
22452
|
-
declare function svelte(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22867
|
+
export declare function svelte(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22453
22868
|
//#endregion
|
|
22454
22869
|
//#region src/configs/tailwindcss.d.ts
|
|
22455
|
-
declare function tailwindcss(options?: OptionsTailwindCSS): Promise<TypedFlatConfigItem[]>;
|
|
22870
|
+
export declare function tailwindcss(options?: OptionsTailwindCSS): Promise<TypedFlatConfigItem[]>;
|
|
22456
22871
|
//#endregion
|
|
22457
22872
|
//#region src/configs/test.d.ts
|
|
22458
|
-
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22873
|
+
export declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22459
22874
|
//#endregion
|
|
22460
22875
|
//#region src/configs/toml.d.ts
|
|
22461
|
-
declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22876
|
+
export declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22462
22877
|
//#endregion
|
|
22463
22878
|
//#region src/configs/typescript.d.ts
|
|
22464
|
-
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType & OptionsTypeScriptErasableOnly): Promise<TypedFlatConfigItem[]>;
|
|
22879
|
+
export declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType & OptionsTypeScriptErasableOnly): Promise<TypedFlatConfigItem[]>;
|
|
22465
22880
|
//#endregion
|
|
22466
22881
|
//#region src/configs/unicorn.d.ts
|
|
22467
|
-
declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
|
|
22882
|
+
export declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
|
|
22468
22883
|
//#endregion
|
|
22469
22884
|
//#region src/configs/unocss.d.ts
|
|
22470
|
-
declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfigItem[]>;
|
|
22885
|
+
export declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfigItem[]>;
|
|
22471
22886
|
//#endregion
|
|
22472
22887
|
//#region src/configs/vue.d.ts
|
|
22473
|
-
declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22888
|
+
export declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22474
22889
|
//#endregion
|
|
22475
22890
|
//#region src/configs/yaml.d.ts
|
|
22476
|
-
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22891
|
+
export declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22477
22892
|
//#endregion
|
|
22478
22893
|
//#region src/globs.d.ts
|
|
22479
|
-
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
22480
|
-
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
22481
|
-
declare const GLOB_JS = "**/*.?([cm])js";
|
|
22482
|
-
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
22483
|
-
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
22484
|
-
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
22485
|
-
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
22486
|
-
declare const GLOB_CSS = "**/*.css";
|
|
22487
|
-
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
22488
|
-
declare const GLOB_LESS = "**/*.less";
|
|
22489
|
-
declare const GLOB_SCSS = "**/*.scss";
|
|
22490
|
-
declare const GLOB_JSON = "**/*.json";
|
|
22491
|
-
declare const GLOB_JSON5 = "**/*.json5";
|
|
22492
|
-
declare const GLOB_JSONC = "**/*.jsonc";
|
|
22493
|
-
declare const GLOB_MARKDOWN = "**/*.md";
|
|
22494
|
-
declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
22495
|
-
declare const GLOB_VUE = "**/*.vue";
|
|
22496
|
-
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
22497
|
-
declare const GLOB_TOML = "**/*.toml";
|
|
22498
|
-
declare const GLOB_XML = "**/*.xml";
|
|
22499
|
-
declare const GLOB_SVG = "**/*.svg";
|
|
22500
|
-
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
22501
|
-
declare const GLOB_ASTRO = "**/*.astro";
|
|
22502
|
-
declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
22503
|
-
declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
|
|
22504
|
-
declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
22505
|
-
declare const GLOB_MARKDOWN_CODE: string;
|
|
22506
|
-
declare const GLOB_TESTS: string[];
|
|
22507
|
-
declare const GLOB_ALL_SRC: string[];
|
|
22508
|
-
declare const GLOB_EXCLUDE: string[];
|
|
22894
|
+
export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
22895
|
+
export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
22896
|
+
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
22897
|
+
export declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
22898
|
+
export declare const GLOB_TS = "**/*.?([cm])ts";
|
|
22899
|
+
export declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
22900
|
+
export declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
22901
|
+
export declare const GLOB_CSS = "**/*.css";
|
|
22902
|
+
export declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
22903
|
+
export declare const GLOB_LESS = "**/*.less";
|
|
22904
|
+
export declare const GLOB_SCSS = "**/*.scss";
|
|
22905
|
+
export declare const GLOB_JSON = "**/*.json";
|
|
22906
|
+
export declare const GLOB_JSON5 = "**/*.json5";
|
|
22907
|
+
export declare const GLOB_JSONC = "**/*.jsonc";
|
|
22908
|
+
export declare const GLOB_MARKDOWN = "**/*.md";
|
|
22909
|
+
export declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
22910
|
+
export declare const GLOB_VUE = "**/*.vue";
|
|
22911
|
+
export declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
22912
|
+
export declare const GLOB_TOML = "**/*.toml";
|
|
22913
|
+
export declare const GLOB_XML = "**/*.xml";
|
|
22914
|
+
export declare const GLOB_SVG = "**/*.svg";
|
|
22915
|
+
export declare const GLOB_HTML = "**/*.htm?(l)";
|
|
22916
|
+
export declare const GLOB_ASTRO = "**/*.astro";
|
|
22917
|
+
export declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
22918
|
+
export declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
|
|
22919
|
+
export declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
22920
|
+
export declare const GLOB_MARKDOWN_CODE: string;
|
|
22921
|
+
export declare const GLOB_TESTS: string[];
|
|
22922
|
+
export declare const GLOB_ALL_SRC: string[];
|
|
22923
|
+
export declare const GLOB_EXCLUDE: string[];
|
|
22509
22924
|
//#endregion
|
|
22510
22925
|
//#region src/utils.d.ts
|
|
22511
|
-
declare const parserPlain: Linter.Parser;
|
|
22926
|
+
export declare const parserPlain: Linter.Parser;
|
|
22512
22927
|
/**
|
|
22513
22928
|
* Combine array and non-array configs into a single array.
|
|
22514
22929
|
*/
|
|
22515
|
-
declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
22930
|
+
export declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
22516
22931
|
/**
|
|
22517
22932
|
* Rename plugin prefixes in a rule object.
|
|
22518
22933
|
* Accepts a map of prefixes to rename.
|
|
@@ -22531,7 +22946,7 @@ declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatCo
|
|
|
22531
22946
|
* }]
|
|
22532
22947
|
* ```
|
|
22533
22948
|
*/
|
|
22534
|
-
declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
|
|
22949
|
+
export declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
|
|
22535
22950
|
/**
|
|
22536
22951
|
* Rename plugin names a flat configs array
|
|
22537
22952
|
*
|
|
@@ -22546,14 +22961,14 @@ declare function renameRules(rules: Record<string, any>, map: Record<string, str
|
|
|
22546
22961
|
* })
|
|
22547
22962
|
* ```
|
|
22548
22963
|
*/
|
|
22549
|
-
declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
|
|
22550
|
-
declare function toArray<T>(value: T | T[]): T[];
|
|
22551
|
-
declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
22964
|
+
export declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
|
|
22965
|
+
export declare function toArray<T>(value: T | T[]): T[];
|
|
22966
|
+
export declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
22552
22967
|
default: infer U;
|
|
22553
22968
|
} ? U : T>;
|
|
22554
|
-
declare function isPackageInScope(name: string): boolean;
|
|
22555
|
-
declare function ensurePackages(packages: string | undefined | (string | undefined)[]): Promise<void>;
|
|
22556
|
-
declare function isInEditorEnv(): boolean;
|
|
22557
|
-
declare function isInGitHooksOrLintStaged(): boolean;
|
|
22969
|
+
export declare function isPackageInScope(name: string): boolean;
|
|
22970
|
+
export declare function ensurePackages(packages: string | undefined | (string | undefined)[]): Promise<void>;
|
|
22971
|
+
export declare function isInEditorEnv(): boolean;
|
|
22972
|
+
export declare function isInGitHooksOrLintStaged(): boolean;
|
|
22558
22973
|
//#endregion
|
|
22559
|
-
export {
|
|
22974
|
+
export { type ConfigNames, type RuleOptions, eslintFlatConfig as default, pluginAntfu, pluginComments, pluginE18e, pluginImportLite, pluginNode, pluginPerfectionist, pluginUnicorn, pluginUnusedImports };
|