@moso/eslint-config 3.5.0 → 3.6.1
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/README.md +91 -3
- package/dist/index.d.mts +1428 -509
- package/dist/index.mjs +410 -222
- package/package.json +48 -26
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,6 @@ import { ESLint, Linter } from "eslint";
|
|
|
6
6
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
7
7
|
import { Options } from "eslint-processor-vue-blocks";
|
|
8
8
|
import { SharedConfig } from "@typescript-eslint/utils/ts-eslint";
|
|
9
|
-
//#region src/globs.d.ts
|
|
10
9
|
export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
11
10
|
export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
12
11
|
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
@@ -30,6 +29,8 @@ export declare const GLOB_JSONC = "**/*.jsonc";
|
|
|
30
29
|
export declare const GLOB_ASTRO = "**/*.astro";
|
|
31
30
|
export declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
32
31
|
export declare const GLOB_MARKDOWN = "**/*.md";
|
|
32
|
+
export declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
|
|
33
|
+
export declare const GLOB_SVELTE_MODULE = "**/*.svelte.{js,ts}";
|
|
33
34
|
export declare const GLOB_TOML = "**/*.toml";
|
|
34
35
|
export declare const GLOB_VUE = "**/*.vue";
|
|
35
36
|
export declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
@@ -39,8 +40,6 @@ export declare const GLOB_DIST: "**/dist";
|
|
|
39
40
|
export declare const GLOB_LOCKFILE: string[];
|
|
40
41
|
export declare const GLOB_AI: string[];
|
|
41
42
|
export declare const GLOB_EXCLUDE: string[];
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/typegen.d.ts
|
|
44
43
|
interface RuleOptions {
|
|
45
44
|
/**
|
|
46
45
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
@@ -154,10 +153,10 @@ interface RuleOptions {
|
|
|
154
153
|
*/
|
|
155
154
|
'@eslint-react/dom-no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
156
155
|
/**
|
|
157
|
-
* Disallows 'target="_blank"' without 'rel="noreferrer
|
|
156
|
+
* Disallows 'target="_blank"' without 'rel="noreferrer"'.
|
|
158
157
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
159
158
|
*/
|
|
160
|
-
'@eslint-react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<
|
|
159
|
+
'@eslint-react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<EslintReactDomNoUnsafeTargetBlank>;
|
|
161
160
|
/**
|
|
162
161
|
* Replaces usage of 'useFormState' with 'useActionState'.
|
|
163
162
|
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
@@ -175,7 +174,7 @@ interface RuleOptions {
|
|
|
175
174
|
'@eslint-react/error-boundaries'?: Linter.RuleEntry<[]>;
|
|
176
175
|
/**
|
|
177
176
|
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
178
|
-
* @see https://github.com/
|
|
177
|
+
* @see https://github.com/react/react/issues/14920
|
|
179
178
|
*/
|
|
180
179
|
'@eslint-react/exhaustive-deps'?: Linter.RuleEntry<EslintReactExhaustiveDeps>;
|
|
181
180
|
/**
|
|
@@ -349,7 +348,7 @@ interface RuleOptions {
|
|
|
349
348
|
*/
|
|
350
349
|
'@eslint-react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
351
350
|
/**
|
|
352
|
-
* Enforces that
|
|
351
|
+
* Enforces that anonymous components wrapped in 'memo' or 'forwardRef' have a 'displayName' that can be used in DevTools.
|
|
353
352
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
354
353
|
*/
|
|
355
354
|
'@eslint-react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
@@ -374,7 +373,7 @@ interface RuleOptions {
|
|
|
374
373
|
*/
|
|
375
374
|
'@eslint-react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
376
375
|
/**
|
|
377
|
-
* Disallows
|
|
376
|
+
* Disallows declaring lazy components that wrap dynamic imports inside other components or hooks.
|
|
378
377
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
379
378
|
*/
|
|
380
379
|
'@eslint-react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
@@ -414,7 +413,7 @@ interface RuleOptions {
|
|
|
414
413
|
*/
|
|
415
414
|
'@eslint-react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
416
415
|
/**
|
|
417
|
-
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
416
|
+
* 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.
|
|
418
417
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
419
418
|
*/
|
|
420
419
|
'@eslint-react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -444,7 +443,7 @@ interface RuleOptions {
|
|
|
444
443
|
*/
|
|
445
444
|
'@eslint-react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
446
445
|
/**
|
|
447
|
-
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
446
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions or construct known-impure objects during render.
|
|
448
447
|
* @see https://eslint-react.xyz/docs/rules/purity
|
|
449
448
|
*/
|
|
450
449
|
'@eslint-react/purity'?: Linter.RuleEntry<[]>;
|
|
@@ -484,7 +483,7 @@ interface RuleOptions {
|
|
|
484
483
|
*/
|
|
485
484
|
'@eslint-react/unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
486
485
|
/**
|
|
487
|
-
* Validates
|
|
486
|
+
* 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.
|
|
488
487
|
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
489
488
|
*/
|
|
490
489
|
'@eslint-react/use-memo'?: Linter.RuleEntry<[]>;
|
|
@@ -530,7 +529,7 @@ interface RuleOptions {
|
|
|
530
529
|
'@eslint-react/x-error-boundaries'?: Linter.RuleEntry<[]>;
|
|
531
530
|
/**
|
|
532
531
|
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
533
|
-
* @see https://github.com/
|
|
532
|
+
* @see https://github.com/react/react/issues/14920
|
|
534
533
|
*/
|
|
535
534
|
'@eslint-react/x-exhaustive-deps'?: Linter.RuleEntry<EslintReactXExhaustiveDeps>;
|
|
536
535
|
/**
|
|
@@ -649,7 +648,7 @@ interface RuleOptions {
|
|
|
649
648
|
*/
|
|
650
649
|
'@eslint-react/x-no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
651
650
|
/**
|
|
652
|
-
* Enforces that
|
|
651
|
+
* Enforces that anonymous components wrapped in 'memo' or 'forwardRef' have a 'displayName' that can be used in DevTools.
|
|
653
652
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
654
653
|
*/
|
|
655
654
|
'@eslint-react/x-no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
@@ -674,7 +673,7 @@ interface RuleOptions {
|
|
|
674
673
|
*/
|
|
675
674
|
'@eslint-react/x-no-nested-component-definitions'?: Linter.RuleEntry<[]>;
|
|
676
675
|
/**
|
|
677
|
-
* Disallows
|
|
676
|
+
* Disallows declaring lazy components that wrap dynamic imports inside other components or hooks.
|
|
678
677
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
679
678
|
*/
|
|
680
679
|
'@eslint-react/x-no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
@@ -714,7 +713,7 @@ interface RuleOptions {
|
|
|
714
713
|
*/
|
|
715
714
|
'@eslint-react/x-no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
|
|
716
715
|
/**
|
|
717
|
-
* Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
|
|
716
|
+
* 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.
|
|
718
717
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
719
718
|
*/
|
|
720
719
|
'@eslint-react/x-no-unstable-context-value'?: Linter.RuleEntry<[]>;
|
|
@@ -744,7 +743,7 @@ interface RuleOptions {
|
|
|
744
743
|
*/
|
|
745
744
|
'@eslint-react/x-no-use-context'?: Linter.RuleEntry<[]>;
|
|
746
745
|
/**
|
|
747
|
-
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
746
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions or construct known-impure objects during render.
|
|
748
747
|
* @see https://eslint-react.xyz/docs/rules/purity
|
|
749
748
|
*/
|
|
750
749
|
'@eslint-react/x-purity'?: Linter.RuleEntry<[]>;
|
|
@@ -779,7 +778,7 @@ interface RuleOptions {
|
|
|
779
778
|
*/
|
|
780
779
|
'@eslint-react/x-unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
781
780
|
/**
|
|
782
|
-
* Validates
|
|
781
|
+
* 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.
|
|
783
782
|
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
784
783
|
*/
|
|
785
784
|
'@eslint-react/x-use-memo'?: Linter.RuleEntry<[]>;
|
|
@@ -1474,7 +1473,7 @@ interface RuleOptions {
|
|
|
1474
1473
|
* Disallow awaiting a value that is not a Thenable
|
|
1475
1474
|
* @see https://typescript-eslint.io/rules/await-thenable
|
|
1476
1475
|
*/
|
|
1477
|
-
'@typescript-eslint/await-thenable'?: Linter.RuleEntry<
|
|
1476
|
+
'@typescript-eslint/await-thenable'?: Linter.RuleEntry<TypescriptEslintAwaitThenable>;
|
|
1478
1477
|
/**
|
|
1479
1478
|
* Disallow `@ts-<directive>` comments or require descriptions after directives
|
|
1480
1479
|
* @see https://typescript-eslint.io/rules/ban-ts-comment
|
|
@@ -2433,26 +2432,32 @@ interface RuleOptions {
|
|
|
2433
2432
|
'astro/valid-compile'?: Linter.RuleEntry<[]>;
|
|
2434
2433
|
/**
|
|
2435
2434
|
* disallow Atomics.pause() usage
|
|
2435
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2436
2436
|
*/
|
|
2437
2437
|
'baseline-js/no-atomics-pause'?: Linter.RuleEntry<[]>;
|
|
2438
2438
|
/**
|
|
2439
2439
|
* disallow BigInt64Array/BigUint64Array usage
|
|
2440
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2440
2441
|
*/
|
|
2441
2442
|
'baseline-js/no-bigint64array'?: Linter.RuleEntry<[]>;
|
|
2442
2443
|
/**
|
|
2443
2444
|
* disallow Function#caller and Function#arguments
|
|
2445
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2444
2446
|
*/
|
|
2445
2447
|
'baseline-js/no-function-caller-arguments'?: Linter.RuleEntry<[]>;
|
|
2446
2448
|
/**
|
|
2447
2449
|
* disallow Math.sumPrecise() usage
|
|
2450
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2448
2451
|
*/
|
|
2449
2452
|
'baseline-js/no-math-sum-precise'?: Linter.RuleEntry<[]>;
|
|
2450
2453
|
/**
|
|
2451
2454
|
* disallow Temporal API usage
|
|
2455
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2452
2456
|
*/
|
|
2453
2457
|
'baseline-js/no-temporal'?: Linter.RuleEntry<[]>;
|
|
2454
2458
|
/**
|
|
2455
2459
|
* Enforce JS Baseline by delegating to underlying syntax rules (es-x)
|
|
2460
|
+
* @see https://baselinejs.vercel.app/docs/config#rule-options
|
|
2456
2461
|
*/
|
|
2457
2462
|
'baseline-js/use-baseline'?: Linter.RuleEntry<BaselineJsUseBaseline>;
|
|
2458
2463
|
/**
|
|
@@ -3810,6 +3815,11 @@ interface RuleOptions {
|
|
|
3810
3815
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
3811
3816
|
*/
|
|
3812
3817
|
'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>;
|
|
3818
|
+
/**
|
|
3819
|
+
* Enforce sorted constructor parameters.
|
|
3820
|
+
* @see https://perfectionist.dev/rules/sort-constructor-parameters
|
|
3821
|
+
*/
|
|
3822
|
+
'perfectionist/sort-constructor-parameters'?: Linter.RuleEntry<PerfectionistSortConstructorParameters>;
|
|
3813
3823
|
/**
|
|
3814
3824
|
* Enforce sorted decorators.
|
|
3815
3825
|
* @see https://perfectionist.dev/rules/sort-decorators
|
|
@@ -4671,6 +4681,440 @@ interface RuleOptions {
|
|
|
4671
4681
|
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-unsafe-regex.md
|
|
4672
4682
|
*/
|
|
4673
4683
|
'security/detect-unsafe-regex'?: Linter.RuleEntry<[]>;
|
|
4684
|
+
/**
|
|
4685
|
+
* disallow conditionals where the type is always truthy or always falsy
|
|
4686
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/@typescript-eslint/no-unnecessary-condition/
|
|
4687
|
+
* @deprecated
|
|
4688
|
+
*/
|
|
4689
|
+
'svelte/@typescript-eslint/no-unnecessary-condition'?: Linter.RuleEntry<SvelteTypescriptEslintNoUnnecessaryCondition>;
|
|
4690
|
+
/**
|
|
4691
|
+
* disallows the use of languages other than those specified in the configuration for the lang attribute of `<script>` and `<style>` blocks.
|
|
4692
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/block-lang/
|
|
4693
|
+
*/
|
|
4694
|
+
'svelte/block-lang'?: Linter.RuleEntry<SvelteBlockLang>;
|
|
4695
|
+
/**
|
|
4696
|
+
* disallow usage of button without an explicit type attribute
|
|
4697
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/button-has-type/
|
|
4698
|
+
*/
|
|
4699
|
+
'svelte/button-has-type'?: Linter.RuleEntry<SvelteButtonHasType>;
|
|
4700
|
+
/**
|
|
4701
|
+
* support comment-directives in HTML template
|
|
4702
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/comment-directive/
|
|
4703
|
+
*/
|
|
4704
|
+
'svelte/comment-directive'?: Linter.RuleEntry<SvelteCommentDirective>;
|
|
4705
|
+
/**
|
|
4706
|
+
* enforce a consistent style for CSS selectors
|
|
4707
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/consistent-selector-style/
|
|
4708
|
+
*/
|
|
4709
|
+
'svelte/consistent-selector-style'?: Linter.RuleEntry<SvelteConsistentSelectorStyle>;
|
|
4710
|
+
/**
|
|
4711
|
+
* derived store should use same variable names between values and callback
|
|
4712
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/
|
|
4713
|
+
*/
|
|
4714
|
+
'svelte/derived-has-same-inputs-outputs'?: Linter.RuleEntry<[]>;
|
|
4715
|
+
/**
|
|
4716
|
+
* require slot type declaration using the `$$Slots` interface
|
|
4717
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/experimental-require-slot-types/
|
|
4718
|
+
*/
|
|
4719
|
+
'svelte/experimental-require-slot-types'?: Linter.RuleEntry<[]>;
|
|
4720
|
+
/**
|
|
4721
|
+
* require the strictEvents attribute on `<script>` tags
|
|
4722
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/experimental-require-strict-events/
|
|
4723
|
+
*/
|
|
4724
|
+
'svelte/experimental-require-strict-events'?: Linter.RuleEntry<[]>;
|
|
4725
|
+
/**
|
|
4726
|
+
* enforce the location of first attribute
|
|
4727
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak/
|
|
4728
|
+
*/
|
|
4729
|
+
'svelte/first-attribute-linebreak'?: Linter.RuleEntry<SvelteFirstAttributeLinebreak>;
|
|
4730
|
+
/**
|
|
4731
|
+
* Require or disallow a line break before tag's closing brackets
|
|
4732
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-new-line/
|
|
4733
|
+
*/
|
|
4734
|
+
'svelte/html-closing-bracket-new-line'?: Linter.RuleEntry<SvelteHtmlClosingBracketNewLine>;
|
|
4735
|
+
/**
|
|
4736
|
+
* require or disallow a space before tag's closing brackets
|
|
4737
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-spacing/
|
|
4738
|
+
*/
|
|
4739
|
+
'svelte/html-closing-bracket-spacing'?: Linter.RuleEntry<SvelteHtmlClosingBracketSpacing>;
|
|
4740
|
+
/**
|
|
4741
|
+
* enforce quotes style of HTML attributes
|
|
4742
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-quotes/
|
|
4743
|
+
*/
|
|
4744
|
+
'svelte/html-quotes'?: Linter.RuleEntry<SvelteHtmlQuotes>;
|
|
4745
|
+
/**
|
|
4746
|
+
* enforce self-closing style
|
|
4747
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/html-self-closing/
|
|
4748
|
+
*/
|
|
4749
|
+
'svelte/html-self-closing'?: Linter.RuleEntry<SvelteHtmlSelfClosing>;
|
|
4750
|
+
/**
|
|
4751
|
+
* enforce consistent indentation
|
|
4752
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/indent/
|
|
4753
|
+
*/
|
|
4754
|
+
'svelte/indent'?: Linter.RuleEntry<SvelteIndent>;
|
|
4755
|
+
/**
|
|
4756
|
+
* Svelte runtime prevents calling the same reactive statement twice in a microtask. But between different microtask, it doesn't prevent.
|
|
4757
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/infinite-reactive-loop/
|
|
4758
|
+
*/
|
|
4759
|
+
'svelte/infinite-reactive-loop'?: Linter.RuleEntry<[]>;
|
|
4760
|
+
/**
|
|
4761
|
+
* enforce the maximum number of attributes per line
|
|
4762
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-attributes-per-line/
|
|
4763
|
+
*/
|
|
4764
|
+
'svelte/max-attributes-per-line'?: Linter.RuleEntry<SvelteMaxAttributesPerLine>;
|
|
4765
|
+
/**
|
|
4766
|
+
* enforce maximum number of lines in svelte component blocks
|
|
4767
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/max-lines-per-block/
|
|
4768
|
+
*/
|
|
4769
|
+
'svelte/max-lines-per-block'?: Linter.RuleEntry<SvelteMaxLinesPerBlock>;
|
|
4770
|
+
/**
|
|
4771
|
+
* enforce unified spacing in mustache
|
|
4772
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/mustache-spacing/
|
|
4773
|
+
*/
|
|
4774
|
+
'svelte/mustache-spacing'?: Linter.RuleEntry<SvelteMustacheSpacing>;
|
|
4775
|
+
/**
|
|
4776
|
+
* Warns against the use of `addEventListener`
|
|
4777
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-add-event-listener/
|
|
4778
|
+
*/
|
|
4779
|
+
'svelte/no-add-event-listener'?: Linter.RuleEntry<[]>;
|
|
4780
|
+
/**
|
|
4781
|
+
* disallow the use of `{@const}` in favor of `{const ...}` declaration tags
|
|
4782
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-const-tags/
|
|
4783
|
+
*/
|
|
4784
|
+
'svelte/no-at-const-tags'?: Linter.RuleEntry<[]>;
|
|
4785
|
+
/**
|
|
4786
|
+
* disallow the use of `{@debug}`
|
|
4787
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/
|
|
4788
|
+
*/
|
|
4789
|
+
'svelte/no-at-debug-tags'?: Linter.RuleEntry<[]>;
|
|
4790
|
+
/**
|
|
4791
|
+
* disallow use of `{@html}` to prevent XSS attack
|
|
4792
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-html-tags/
|
|
4793
|
+
*/
|
|
4794
|
+
'svelte/no-at-html-tags'?: Linter.RuleEntry<[]>;
|
|
4795
|
+
/**
|
|
4796
|
+
* disallow useless `bind:value` on `<input type="checkbox">` and `<input type="radio">`
|
|
4797
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-bind-value-on-checkable-inputs/
|
|
4798
|
+
*/
|
|
4799
|
+
'svelte/no-bind-value-on-checkable-inputs'?: Linter.RuleEntry<[]>;
|
|
4800
|
+
/**
|
|
4801
|
+
* disallow a `.svelte` component and a same-named runes module (e.g. `Foo.svelte` and `Foo.svelte.ts`) from coexisting
|
|
4802
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-conflicting-module-names/
|
|
4803
|
+
*/
|
|
4804
|
+
'svelte/no-conflicting-module-names'?: Linter.RuleEntry<[]>;
|
|
4805
|
+
/**
|
|
4806
|
+
* disallow DOM manipulating
|
|
4807
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dom-manipulating/
|
|
4808
|
+
*/
|
|
4809
|
+
'svelte/no-dom-manipulating'?: Linter.RuleEntry<[]>;
|
|
4810
|
+
/**
|
|
4811
|
+
* disallow duplicate conditions in `{#if}` / `{:else if}` chains
|
|
4812
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-else-if-blocks/
|
|
4813
|
+
*/
|
|
4814
|
+
'svelte/no-dupe-else-if-blocks'?: Linter.RuleEntry<[]>;
|
|
4815
|
+
/**
|
|
4816
|
+
* disallow duplicate `on:` directives
|
|
4817
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-on-directives/
|
|
4818
|
+
*/
|
|
4819
|
+
'svelte/no-dupe-on-directives'?: Linter.RuleEntry<[]>;
|
|
4820
|
+
/**
|
|
4821
|
+
* disallow duplicate style properties
|
|
4822
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-style-properties/
|
|
4823
|
+
*/
|
|
4824
|
+
'svelte/no-dupe-style-properties'?: Linter.RuleEntry<[]>;
|
|
4825
|
+
/**
|
|
4826
|
+
* disallow duplicate `use:` directives
|
|
4827
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-use-directives/
|
|
4828
|
+
*/
|
|
4829
|
+
'svelte/no-dupe-use-directives'?: Linter.RuleEntry<[]>;
|
|
4830
|
+
/**
|
|
4831
|
+
* disallow dynamic slot name
|
|
4832
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/
|
|
4833
|
+
* @deprecated
|
|
4834
|
+
*/
|
|
4835
|
+
'svelte/no-dynamic-slot-name'?: Linter.RuleEntry<[]>;
|
|
4836
|
+
/**
|
|
4837
|
+
* disallow exporting load functions in `*.svelte` module in SvelteKit page components.
|
|
4838
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-export-load-in-svelte-module-in-kit-pages/
|
|
4839
|
+
*/
|
|
4840
|
+
'svelte/no-export-load-in-svelte-module-in-kit-pages'?: Linter.RuleEntry<[]>;
|
|
4841
|
+
/**
|
|
4842
|
+
* disallow wrapping single reactive statements in curly braces
|
|
4843
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-extra-reactive-curlies/
|
|
4844
|
+
*/
|
|
4845
|
+
'svelte/no-extra-reactive-curlies'?: Linter.RuleEntry<[]>;
|
|
4846
|
+
/**
|
|
4847
|
+
* disallow using goto() without the base path
|
|
4848
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-goto-without-base/
|
|
4849
|
+
* @deprecated
|
|
4850
|
+
*/
|
|
4851
|
+
'svelte/no-goto-without-base'?: Linter.RuleEntry<[]>;
|
|
4852
|
+
/**
|
|
4853
|
+
* disallow ignoring the unsubscribe method returned by the `subscribe()` on Svelte stores.
|
|
4854
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-ignored-unsubscribe/
|
|
4855
|
+
*/
|
|
4856
|
+
'svelte/no-ignored-unsubscribe'?: Linter.RuleEntry<[]>;
|
|
4857
|
+
/**
|
|
4858
|
+
* disallow reactive statements that don't reference reactive values.
|
|
4859
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-immutable-reactive-statements/
|
|
4860
|
+
*/
|
|
4861
|
+
'svelte/no-immutable-reactive-statements'?: Linter.RuleEntry<[]>;
|
|
4862
|
+
/**
|
|
4863
|
+
* disallow attributes and directives that produce inline styles
|
|
4864
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inline-styles/
|
|
4865
|
+
*/
|
|
4866
|
+
'svelte/no-inline-styles'?: Linter.RuleEntry<SvelteNoInlineStyles>;
|
|
4867
|
+
/**
|
|
4868
|
+
* disallow variable or `function` declarations in nested blocks
|
|
4869
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inner-declarations/
|
|
4870
|
+
*/
|
|
4871
|
+
'svelte/no-inner-declarations'?: Linter.RuleEntry<SvelteNoInnerDeclarations>;
|
|
4872
|
+
/**
|
|
4873
|
+
* Warns against the use of `$inspect` directive
|
|
4874
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inspect/
|
|
4875
|
+
*/
|
|
4876
|
+
'svelte/no-inspect'?: Linter.RuleEntry<[]>;
|
|
4877
|
+
/**
|
|
4878
|
+
* disallow using navigation (links, goto, pushState, replaceState) without the base path
|
|
4879
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/
|
|
4880
|
+
* @deprecated
|
|
4881
|
+
*/
|
|
4882
|
+
'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>;
|
|
4883
|
+
/**
|
|
4884
|
+
* disallow internal navigation (links, `goto()`, `pushState()`, `replaceState()`) without a `resolve()`
|
|
4885
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
|
|
4886
|
+
*/
|
|
4887
|
+
'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
|
|
4888
|
+
/**
|
|
4889
|
+
* disallow `<style>` elements nested inside other elements or blocks
|
|
4890
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-nested-style-tag/
|
|
4891
|
+
*/
|
|
4892
|
+
'svelte/no-nested-style-tag'?: Linter.RuleEntry<[]>;
|
|
4893
|
+
/**
|
|
4894
|
+
* disallow use of not function in event handler
|
|
4895
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
|
|
4896
|
+
*/
|
|
4897
|
+
'svelte/no-not-function-handler'?: Linter.RuleEntry<[]>;
|
|
4898
|
+
/**
|
|
4899
|
+
* disallow objects in text mustache interpolation
|
|
4900
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/
|
|
4901
|
+
*/
|
|
4902
|
+
'svelte/no-object-in-text-mustaches'?: Linter.RuleEntry<[]>;
|
|
4903
|
+
/**
|
|
4904
|
+
* Checks for invalid raw HTML elements
|
|
4905
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-raw-special-elements/
|
|
4906
|
+
*/
|
|
4907
|
+
'svelte/no-raw-special-elements'?: Linter.RuleEntry<[]>;
|
|
4908
|
+
/**
|
|
4909
|
+
* it's not necessary to define functions in reactive statements
|
|
4910
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-functions/
|
|
4911
|
+
*/
|
|
4912
|
+
'svelte/no-reactive-functions'?: Linter.RuleEntry<[]>;
|
|
4913
|
+
/**
|
|
4914
|
+
* don't assign literal values in reactive statements
|
|
4915
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-literals/
|
|
4916
|
+
*/
|
|
4917
|
+
'svelte/no-reactive-literals'?: Linter.RuleEntry<[]>;
|
|
4918
|
+
/**
|
|
4919
|
+
* disallow reassigning reactive values
|
|
4920
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-reassign/
|
|
4921
|
+
*/
|
|
4922
|
+
'svelte/no-reactive-reassign'?: Linter.RuleEntry<SvelteNoReactiveReassign>;
|
|
4923
|
+
/**
|
|
4924
|
+
* disallow specific HTML elements
|
|
4925
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-restricted-html-elements/
|
|
4926
|
+
*/
|
|
4927
|
+
'svelte/no-restricted-html-elements'?: Linter.RuleEntry<SvelteNoRestrictedHtmlElements>;
|
|
4928
|
+
/**
|
|
4929
|
+
* disallow shorthand style properties that override related longhand properties
|
|
4930
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-shorthand-style-property-overrides/
|
|
4931
|
+
*/
|
|
4932
|
+
'svelte/no-shorthand-style-property-overrides'?: Linter.RuleEntry<[]>;
|
|
4933
|
+
/**
|
|
4934
|
+
* disallow spaces around equal signs in attribute
|
|
4935
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-spaces-around-equal-signs-in-attribute/
|
|
4936
|
+
*/
|
|
4937
|
+
'svelte/no-spaces-around-equal-signs-in-attribute'?: Linter.RuleEntry<[]>;
|
|
4938
|
+
/**
|
|
4939
|
+
* disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features
|
|
4940
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-store-async/
|
|
4941
|
+
*/
|
|
4942
|
+
'svelte/no-store-async'?: Linter.RuleEntry<[]>;
|
|
4943
|
+
/**
|
|
4944
|
+
* svelte/internal will be removed in Svelte 6.
|
|
4945
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-svelte-internal/
|
|
4946
|
+
*/
|
|
4947
|
+
'svelte/no-svelte-internal'?: Linter.RuleEntry<[]>;
|
|
4948
|
+
/**
|
|
4949
|
+
* disallow `target="_blank"` attribute without `rel="noopener noreferrer"`
|
|
4950
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-target-blank/
|
|
4951
|
+
*/
|
|
4952
|
+
'svelte/no-target-blank'?: Linter.RuleEntry<SvelteNoTargetBlank>;
|
|
4953
|
+
/**
|
|
4954
|
+
* disallow using top-level browser global variables
|
|
4955
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-top-level-browser-globals/
|
|
4956
|
+
*/
|
|
4957
|
+
'svelte/no-top-level-browser-globals'?: Linter.RuleEntry<[]>;
|
|
4958
|
+
/**
|
|
4959
|
+
* disallow trailing whitespace at the end of lines
|
|
4960
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/
|
|
4961
|
+
*/
|
|
4962
|
+
'svelte/no-trailing-spaces'?: Linter.RuleEntry<SvelteNoTrailingSpaces>;
|
|
4963
|
+
/**
|
|
4964
|
+
* disallow unknown `style:property`
|
|
4965
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unknown-style-directive-property/
|
|
4966
|
+
*/
|
|
4967
|
+
'svelte/no-unknown-style-directive-property'?: Linter.RuleEntry<SvelteNoUnknownStyleDirectiveProperty>;
|
|
4968
|
+
/**
|
|
4969
|
+
* Disallow unnecessary $state wrapping of reactive classes
|
|
4970
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unnecessary-state-wrap/
|
|
4971
|
+
*/
|
|
4972
|
+
'svelte/no-unnecessary-state-wrap'?: Linter.RuleEntry<SvelteNoUnnecessaryStateWrap>;
|
|
4973
|
+
/**
|
|
4974
|
+
* disallow the use of a class in the template without a corresponding style
|
|
4975
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-class-name/
|
|
4976
|
+
*/
|
|
4977
|
+
'svelte/no-unused-class-name'?: Linter.RuleEntry<SvelteNoUnusedClassName>;
|
|
4978
|
+
/**
|
|
4979
|
+
* Warns about defined Props properties that are unused
|
|
4980
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-props/
|
|
4981
|
+
*/
|
|
4982
|
+
'svelte/no-unused-props'?: Linter.RuleEntry<SvelteNoUnusedProps>;
|
|
4983
|
+
/**
|
|
4984
|
+
* disallow unused svelte-ignore comments
|
|
4985
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/
|
|
4986
|
+
*/
|
|
4987
|
+
'svelte/no-unused-svelte-ignore'?: Linter.RuleEntry<[]>;
|
|
4988
|
+
/**
|
|
4989
|
+
* disallow explicit children snippet where it's not needed
|
|
4990
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-children-snippet/
|
|
4991
|
+
*/
|
|
4992
|
+
'svelte/no-useless-children-snippet'?: Linter.RuleEntry<[]>;
|
|
4993
|
+
/**
|
|
4994
|
+
* disallow unnecessary mustache interpolations
|
|
4995
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
|
|
4996
|
+
*/
|
|
4997
|
+
'svelte/no-useless-mustaches'?: Linter.RuleEntry<SvelteNoUselessMustaches>;
|
|
4998
|
+
/**
|
|
4999
|
+
* require attribute interpolation instead of template literals
|
|
5000
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-attribute-interpolation/
|
|
5001
|
+
*/
|
|
5002
|
+
'svelte/prefer-attribute-interpolation'?: Linter.RuleEntry<[]>;
|
|
5003
|
+
/**
|
|
5004
|
+
* require class directives instead of ternary expressions
|
|
5005
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
|
|
5006
|
+
*/
|
|
5007
|
+
'svelte/prefer-class-directive'?: Linter.RuleEntry<SveltePreferClassDirective>;
|
|
5008
|
+
/**
|
|
5009
|
+
* Require `const` declarations for variables that are never reassigned after declared
|
|
5010
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
|
|
5011
|
+
*/
|
|
5012
|
+
'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>;
|
|
5013
|
+
/**
|
|
5014
|
+
* disallow unnecessary `$derived.by()` when `$derived()` is sufficient
|
|
5015
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-derived-over-derived-by/
|
|
5016
|
+
*/
|
|
5017
|
+
'svelte/prefer-derived-over-derived-by'?: Linter.RuleEntry<[]>;
|
|
5018
|
+
/**
|
|
5019
|
+
* destructure values from object stores for better change tracking & fewer redraws
|
|
5020
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
|
|
5021
|
+
*/
|
|
5022
|
+
'svelte/prefer-destructured-store-props'?: Linter.RuleEntry<[]>;
|
|
5023
|
+
/**
|
|
5024
|
+
* require style directives instead of style attribute
|
|
5025
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/
|
|
5026
|
+
*/
|
|
5027
|
+
'svelte/prefer-style-directive'?: Linter.RuleEntry<[]>;
|
|
5028
|
+
/**
|
|
5029
|
+
* disallow using mutable instances of built-in classes where a reactive alternative is provided by svelte/reactivity
|
|
5030
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-svelte-reactivity/
|
|
5031
|
+
*/
|
|
5032
|
+
'svelte/prefer-svelte-reactivity'?: Linter.RuleEntry<[]>;
|
|
5033
|
+
/**
|
|
5034
|
+
* Prefer using writable $derived instead of $state and $effect
|
|
5035
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-writable-derived/
|
|
5036
|
+
*/
|
|
5037
|
+
'svelte/prefer-writable-derived'?: Linter.RuleEntry<[]>;
|
|
5038
|
+
/**
|
|
5039
|
+
* require keyed `{#each}` block
|
|
5040
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-each-key/
|
|
5041
|
+
*/
|
|
5042
|
+
'svelte/require-each-key'?: Linter.RuleEntry<[]>;
|
|
5043
|
+
/**
|
|
5044
|
+
* require type parameters for `createEventDispatcher`
|
|
5045
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-event-dispatcher-types/
|
|
5046
|
+
*/
|
|
5047
|
+
'svelte/require-event-dispatcher-types'?: Linter.RuleEntry<[]>;
|
|
5048
|
+
/**
|
|
5049
|
+
* require component event names to start with "on"
|
|
5050
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-event-prefix/
|
|
5051
|
+
*/
|
|
5052
|
+
'svelte/require-event-prefix'?: Linter.RuleEntry<SvelteRequireEventPrefix>;
|
|
5053
|
+
/**
|
|
5054
|
+
* require style attributes that can be optimized
|
|
5055
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-optimized-style-attribute/
|
|
5056
|
+
*/
|
|
5057
|
+
'svelte/require-optimized-style-attribute'?: Linter.RuleEntry<[]>;
|
|
5058
|
+
/**
|
|
5059
|
+
* store callbacks must use `set` param
|
|
5060
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-callbacks-use-set-param/
|
|
5061
|
+
*/
|
|
5062
|
+
'svelte/require-store-callbacks-use-set-param'?: Linter.RuleEntry<[]>;
|
|
5063
|
+
/**
|
|
5064
|
+
* disallow to use of the store itself as an operand. Need to use $ prefix or get function.
|
|
5065
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-reactive-access/
|
|
5066
|
+
*/
|
|
5067
|
+
'svelte/require-store-reactive-access'?: Linter.RuleEntry<[]>;
|
|
5068
|
+
/**
|
|
5069
|
+
* require initial value in store
|
|
5070
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/require-stores-init/
|
|
5071
|
+
*/
|
|
5072
|
+
'svelte/require-stores-init'?: Linter.RuleEntry<[]>;
|
|
5073
|
+
/**
|
|
5074
|
+
* enforce use of shorthand syntax in attribute
|
|
5075
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-attribute/
|
|
5076
|
+
*/
|
|
5077
|
+
'svelte/shorthand-attribute'?: Linter.RuleEntry<SvelteShorthandAttribute>;
|
|
5078
|
+
/**
|
|
5079
|
+
* enforce use of shorthand syntax in directives
|
|
5080
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-directive/
|
|
5081
|
+
*/
|
|
5082
|
+
'svelte/shorthand-directive'?: Linter.RuleEntry<SvelteShorthandDirective>;
|
|
5083
|
+
/**
|
|
5084
|
+
* enforce order of attributes
|
|
5085
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/sort-attributes/
|
|
5086
|
+
*/
|
|
5087
|
+
'svelte/sort-attributes'?: Linter.RuleEntry<SvelteSortAttributes>;
|
|
5088
|
+
/**
|
|
5089
|
+
* enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment
|
|
5090
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/spaced-html-comment/
|
|
5091
|
+
*/
|
|
5092
|
+
'svelte/spaced-html-comment'?: Linter.RuleEntry<SvelteSpacedHtmlComment>;
|
|
5093
|
+
/**
|
|
5094
|
+
* system rule for working this plugin
|
|
5095
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/system/
|
|
5096
|
+
*/
|
|
5097
|
+
'svelte/system'?: Linter.RuleEntry<[]>;
|
|
5098
|
+
/**
|
|
5099
|
+
* disallow warnings when compiling.
|
|
5100
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-compile/
|
|
5101
|
+
*/
|
|
5102
|
+
'svelte/valid-compile'?: Linter.RuleEntry<SvelteValidCompile>;
|
|
5103
|
+
/**
|
|
5104
|
+
* enforce keys to use variables defined in the `{#each}` block
|
|
5105
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-each-key/
|
|
5106
|
+
*/
|
|
5107
|
+
'svelte/valid-each-key'?: Linter.RuleEntry<[]>;
|
|
5108
|
+
/**
|
|
5109
|
+
* disallow invalid props in SvelteKit route components.
|
|
5110
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
|
|
5111
|
+
*/
|
|
5112
|
+
'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>;
|
|
5113
|
+
/**
|
|
5114
|
+
* require valid style element parsing
|
|
5115
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-style-parse/
|
|
5116
|
+
*/
|
|
5117
|
+
'svelte/valid-style-parse'?: Linter.RuleEntry<[]>;
|
|
4674
5118
|
/**
|
|
4675
5119
|
* Enforce canonical class names.
|
|
4676
5120
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md
|
|
@@ -4869,1992 +5313,2002 @@ interface RuleOptions {
|
|
|
4869
5313
|
'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
|
|
4870
5314
|
/**
|
|
4871
5315
|
* Prefer better DOM traversal APIs.
|
|
4872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/better-dom-traversing.md
|
|
4873
5317
|
*/
|
|
4874
5318
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
4875
5319
|
/**
|
|
4876
5320
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
4877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5321
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
4878
5322
|
* @deprecated
|
|
4879
5323
|
*/
|
|
4880
5324
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
4881
5325
|
/**
|
|
4882
5326
|
* Enforce a specific parameter name in catch clauses.
|
|
4883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/catch-error-name.md
|
|
4884
5328
|
*/
|
|
4885
5329
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4886
5330
|
/**
|
|
4887
5331
|
* Enforce consistent class references in static methods.
|
|
4888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/class-reference-in-static-methods.md
|
|
4889
5333
|
*/
|
|
4890
5334
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
4891
5335
|
/**
|
|
4892
|
-
* Enforce consistent spacing before and after commas in JSON.
|
|
4893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5336
|
+
* Enforce consistent spacing before and after commas in JSON and SOML.
|
|
5337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comma-spacing.md
|
|
4894
5338
|
*/
|
|
4895
5339
|
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
4896
5340
|
/**
|
|
4897
5341
|
* Enforce better comment content.
|
|
4898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comment-content.md
|
|
4899
5343
|
*/
|
|
4900
5344
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
4901
5345
|
/**
|
|
4902
5346
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
4903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-arrow-return-style.md
|
|
4904
5348
|
*/
|
|
4905
5349
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
4906
5350
|
/**
|
|
4907
5351
|
* Enforce consistent assertion style with `node:assert`.
|
|
4908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-assert.md
|
|
4909
5353
|
*/
|
|
4910
5354
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
4911
5355
|
/**
|
|
4912
5356
|
* Enforce consistent naming for boolean names.
|
|
4913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-boolean-name.md
|
|
4914
5358
|
*/
|
|
4915
5359
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
4916
5360
|
/**
|
|
4917
5361
|
* Enforce consistent class member order.
|
|
4918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-class-member-order.md
|
|
4919
5363
|
*/
|
|
4920
5364
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
4921
5365
|
/**
|
|
4922
5366
|
* Enforce consistent spelling of compound words in identifiers.
|
|
4923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-compound-words.md
|
|
4924
5368
|
*/
|
|
4925
5369
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
4926
5370
|
/**
|
|
4927
5371
|
* Enforce consistent conditional object spread style.
|
|
4928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
4929
5373
|
*/
|
|
4930
5374
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
4931
5375
|
/**
|
|
4932
5376
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-date-clone.md
|
|
4934
5378
|
*/
|
|
4935
5379
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
4936
5380
|
/**
|
|
4937
5381
|
* Use destructured variables over properties.
|
|
4938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-destructuring.md
|
|
4939
5383
|
*/
|
|
4940
5384
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
4941
5385
|
/**
|
|
4942
5386
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4944
5388
|
*/
|
|
4945
5389
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
4946
5390
|
/**
|
|
4947
5391
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-existence-index-check.md
|
|
4949
5393
|
*/
|
|
4950
5394
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
4951
5395
|
/**
|
|
4952
5396
|
* Enforce consistent decorator position on exported classes.
|
|
4953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-export-decorator-position.md
|
|
4954
5398
|
*/
|
|
4955
5399
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
4956
5400
|
/**
|
|
4957
5401
|
* Move function definitions to the highest possible scope.
|
|
4958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-scoping.md
|
|
4959
5403
|
*/
|
|
4960
5404
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4961
5405
|
/**
|
|
4962
5406
|
* Enforce function syntax by role.
|
|
4963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-style.md
|
|
4964
5408
|
*/
|
|
4965
5409
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
4966
5410
|
/**
|
|
4967
5411
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
4968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-json-file-read.md
|
|
4969
5413
|
*/
|
|
4970
5414
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
4971
5415
|
/**
|
|
4972
5416
|
* Enforce consistent optional chaining for same-base member access.
|
|
4973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-optional-chaining.md
|
|
4974
5418
|
*/
|
|
4975
5419
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
4976
5420
|
/**
|
|
4977
5421
|
* Enforce consistent style for escaping `${` in template literals.
|
|
4978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-template-literal-escape.md
|
|
4979
5423
|
*/
|
|
4980
5424
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
4981
5425
|
/**
|
|
4982
5426
|
* Enforce consistent labels on tuple type elements.
|
|
4983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-tuple-labels.md
|
|
4984
5428
|
*/
|
|
4985
5429
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
4986
5430
|
/**
|
|
4987
5431
|
* Enforce correct `Error` subclassing.
|
|
4988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/custom-error-definition.md
|
|
4989
5433
|
*/
|
|
4990
5434
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
4991
5435
|
/**
|
|
4992
5436
|
* Enforce consistent default export declarations.
|
|
4993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/default-export-style.md
|
|
4994
5438
|
*/
|
|
4995
5439
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
4996
5440
|
/**
|
|
4997
5441
|
* Enforce consistent style for DOM element dataset access.
|
|
4998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/dom-node-dataset.md
|
|
4999
5443
|
*/
|
|
5000
5444
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
5001
5445
|
/**
|
|
5002
5446
|
* Enforce no spaces between braces.
|
|
5003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/empty-brace-spaces.md
|
|
5004
5448
|
*/
|
|
5005
5449
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
5006
5450
|
/**
|
|
5007
5451
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/error-message.md
|
|
5009
5453
|
*/
|
|
5010
5454
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
5011
5455
|
/**
|
|
5012
5456
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/escape-case.md
|
|
5014
5458
|
*/
|
|
5015
5459
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
5016
5460
|
/**
|
|
5017
5461
|
* Add expiration conditions to TODO comments.
|
|
5018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/expiring-todo-comments.md
|
|
5019
5463
|
*/
|
|
5020
5464
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
5021
5465
|
/**
|
|
5022
5466
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-length-check.md
|
|
5024
5468
|
*/
|
|
5025
5469
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
5026
5470
|
/**
|
|
5027
5471
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
5028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-timer-delay.md
|
|
5029
5473
|
*/
|
|
5030
5474
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
5031
5475
|
/**
|
|
5032
5476
|
* Enforce a case style for filenames and directory names.
|
|
5033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/filename-case.md
|
|
5034
5478
|
*/
|
|
5035
5479
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
5036
5480
|
/**
|
|
5037
5481
|
* Require identifiers to match a specified regular expression.
|
|
5038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/id-match.md
|
|
5039
5483
|
*/
|
|
5040
5484
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
5041
5485
|
/**
|
|
5042
5486
|
* Enforce specific import styles per module.
|
|
5043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/import-style.md
|
|
5044
5488
|
*/
|
|
5045
5489
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5046
5490
|
/**
|
|
5047
5491
|
* Enforce consistent indentation in JSON and CSS.
|
|
5048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/indent.md
|
|
5049
5493
|
*/
|
|
5050
5494
|
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
5051
5495
|
/**
|
|
5052
5496
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
5053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/isolated-functions.md
|
|
5054
5498
|
*/
|
|
5055
5499
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
5056
5500
|
/**
|
|
5057
5501
|
* Enforce a consistent style for optional loop sources.
|
|
5058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/iteration-fallback-style.md
|
|
5059
5503
|
*/
|
|
5060
5504
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
5061
5505
|
/**
|
|
5062
5506
|
* Enforce a case style for data keys.
|
|
5063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/key-name-casing.md
|
|
5064
5508
|
*/
|
|
5065
5509
|
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
5066
5510
|
/**
|
|
5067
5511
|
* Require or disallow logical assignment operator shorthand
|
|
5068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/logical-assignment-operators.md
|
|
5069
5513
|
*/
|
|
5070
5514
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
5071
5515
|
/**
|
|
5072
5516
|
* Limit the depth of nested calls.
|
|
5073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/max-nested-calls.md
|
|
5074
5518
|
*/
|
|
5075
5519
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
5076
5520
|
/**
|
|
5077
5521
|
* Enforce replacements for variable, property, and filenames.
|
|
5078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/name-replacements.md
|
|
5079
5523
|
*/
|
|
5080
5524
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
5081
5525
|
/**
|
|
5082
5526
|
* Enforce correct use of `new` for builtin constructors.
|
|
5083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/new-for-builtins.md
|
|
5084
5528
|
*/
|
|
5085
5529
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
5086
5530
|
/**
|
|
5087
5531
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5089
5533
|
*/
|
|
5090
5534
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
5091
5535
|
/**
|
|
5092
5536
|
* Disallow recursive access to `this` within getters and setters.
|
|
5093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accessor-recursion.md
|
|
5094
5538
|
*/
|
|
5095
5539
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5096
5540
|
/**
|
|
5097
5541
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
5098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
5099
5543
|
*/
|
|
5100
5544
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
5101
5545
|
/**
|
|
5102
5546
|
* Disallow anonymous functions and classes as the default export.
|
|
5103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-anonymous-default-export.md
|
|
5104
5548
|
*/
|
|
5105
5549
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5106
5550
|
/**
|
|
5107
5551
|
* Prevent passing a function reference directly to iterator methods.
|
|
5108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-callback-reference.md
|
|
5109
5553
|
*/
|
|
5110
5554
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
5111
5555
|
/**
|
|
5112
5556
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
5113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-concat-in-loop.md
|
|
5114
5558
|
*/
|
|
5115
5559
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
5116
5560
|
/**
|
|
5117
5561
|
* Disallow using reference values as `Array#fill()` values.
|
|
5118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
5119
5563
|
*/
|
|
5120
5564
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
5121
5565
|
/**
|
|
5122
5566
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
5123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-from-fill.md
|
|
5124
5568
|
*/
|
|
5125
5569
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
5126
5570
|
/**
|
|
5127
5571
|
* Disallow front-of-array mutation.
|
|
5128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-front-mutation.md
|
|
5129
5573
|
*/
|
|
5130
5574
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
5131
5575
|
/**
|
|
5132
5576
|
* Disallow using the `this` argument in array methods.
|
|
5133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-method-this-argument.md
|
|
5134
5578
|
*/
|
|
5135
5579
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5136
5580
|
/**
|
|
5137
5581
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
5139
5583
|
* @deprecated
|
|
5140
5584
|
*/
|
|
5141
5585
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5142
5586
|
/**
|
|
5143
5587
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reduce.md
|
|
5145
5589
|
*/
|
|
5146
5590
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5147
5591
|
/**
|
|
5148
5592
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reverse.md
|
|
5150
5594
|
*/
|
|
5151
5595
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5152
5596
|
/**
|
|
5153
5597
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort.md
|
|
5155
5599
|
*/
|
|
5156
5600
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
5157
5601
|
/**
|
|
5158
5602
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
5159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
5160
5604
|
*/
|
|
5161
5605
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
5162
5606
|
/**
|
|
5163
5607
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
5164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-splice.md
|
|
5165
5609
|
*/
|
|
5166
5610
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
5167
5611
|
/**
|
|
5168
|
-
* Disallow asterisk prefixes in multiline comments.
|
|
5169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5612
|
+
* Disallow asterisk prefixes and shared indentation in multiline comments.
|
|
5613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
5170
5614
|
*/
|
|
5171
5615
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
5172
5616
|
/**
|
|
5173
5617
|
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
5174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-iterator-callback.md
|
|
5175
5619
|
*/
|
|
5176
5620
|
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
5177
5621
|
/**
|
|
5178
5622
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
5179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-promise-finally.md
|
|
5180
5624
|
*/
|
|
5181
5625
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
5182
5626
|
/**
|
|
5183
5627
|
* Disallow member access from await expression.
|
|
5184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-expression-member.md
|
|
5185
5629
|
*/
|
|
5186
5630
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5187
5631
|
/**
|
|
5188
5632
|
* Disallow using `await` in `Promise` method parameters.
|
|
5189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5190
5634
|
*/
|
|
5191
5635
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5192
5636
|
/**
|
|
5193
5637
|
* Disallow barrel files.
|
|
5194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-barrel-files.md
|
|
5195
5639
|
*/
|
|
5196
5640
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
5197
5641
|
/**
|
|
5198
5642
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
5199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-blob-to-file.md
|
|
5200
5644
|
*/
|
|
5201
5645
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
5202
5646
|
/**
|
|
5203
5647
|
* Disallow boolean-returning sort comparators.
|
|
5204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
5205
5649
|
*/
|
|
5206
5650
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
5207
5651
|
/**
|
|
5208
5652
|
* Disallow `break` and optionally `continue` in nested loops and switches inside loops.
|
|
5209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-break-in-nested-loop.md
|
|
5210
5654
|
*/
|
|
5211
5655
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
5212
5656
|
/**
|
|
5213
5657
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
5214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5658
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-canvas-to-image.md
|
|
5215
5659
|
*/
|
|
5216
5660
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
5217
5661
|
/**
|
|
5218
5662
|
* Disallow chained comparisons such as `a < b < c`.
|
|
5219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-chained-comparison.md
|
|
5220
5664
|
*/
|
|
5221
5665
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
5222
5666
|
/**
|
|
5223
5667
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
5224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5668
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-collection-bracket-access.md
|
|
5225
5669
|
*/
|
|
5226
5670
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
5227
5671
|
/**
|
|
5228
5672
|
* Disallow dynamic object property existence checks.
|
|
5229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5673
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-computed-property-existence-check.md
|
|
5230
5674
|
*/
|
|
5231
5675
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
5232
5676
|
/**
|
|
5233
5677
|
* Disallow conflicting CSS query and HTML form constraints.
|
|
5234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-conflicting-constraints.md
|
|
5235
5679
|
*/
|
|
5236
5680
|
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
5237
5681
|
/**
|
|
5238
5682
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5683
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-splice.md
|
|
5240
5684
|
*/
|
|
5241
5685
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
5242
5686
|
/**
|
|
5243
5687
|
* Disallow confusing uses of `Array#with()`.
|
|
5244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5688
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-with.md
|
|
5245
5689
|
*/
|
|
5246
5690
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
5247
5691
|
/**
|
|
5248
5692
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-console-spaces.md
|
|
5250
5694
|
*/
|
|
5251
5695
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5252
5696
|
/**
|
|
5253
5697
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
5254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-constant-zero-expression.md
|
|
5255
5699
|
*/
|
|
5256
5700
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
5257
5701
|
/**
|
|
5258
5702
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
5259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
5260
5704
|
*/
|
|
5261
5705
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
5262
5706
|
/**
|
|
5263
5707
|
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
5264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
5265
5709
|
* @deprecated
|
|
5266
5710
|
*/
|
|
5267
5711
|
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
5268
5712
|
/**
|
|
5269
5713
|
* Do not use `document.cookie` directly.
|
|
5270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-document-cookie.md
|
|
5271
5715
|
*/
|
|
5272
5716
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5273
5717
|
/**
|
|
5274
5718
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
5275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-double-comparison.md
|
|
5276
5720
|
*/
|
|
5277
5721
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
5278
5722
|
/**
|
|
5279
5723
|
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
5280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
5281
5725
|
* @deprecated
|
|
5282
5726
|
*/
|
|
5283
5727
|
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
5284
5728
|
/**
|
|
5285
5729
|
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
5286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
5287
5731
|
* @deprecated
|
|
5288
5732
|
*/
|
|
5289
5733
|
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
5290
5734
|
/**
|
|
5291
5735
|
* Disallow duplicate adjacent branches in if chains.
|
|
5292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-if-branches.md
|
|
5293
5737
|
*/
|
|
5294
5738
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
5295
5739
|
/**
|
|
5296
5740
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
5297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
5298
5742
|
*/
|
|
5299
5743
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
5300
5744
|
/**
|
|
5301
5745
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
5302
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-loops.md
|
|
5303
5747
|
*/
|
|
5304
5748
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
5305
5749
|
/**
|
|
5306
5750
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
5307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-set-values.md
|
|
5308
5752
|
*/
|
|
5309
5753
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
5310
5754
|
/**
|
|
5311
5755
|
* Disallow empty files.
|
|
5312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-file.md
|
|
5313
5757
|
*/
|
|
5314
5758
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
5315
5759
|
/**
|
|
5316
5760
|
* Disallow empty link text in Markdown.
|
|
5317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-link-text.md
|
|
5318
5762
|
*/
|
|
5319
5763
|
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
5320
5764
|
/**
|
|
5321
5765
|
* Disallow assigning to built-in error properties.
|
|
5322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-error-property-assignment.md
|
|
5323
5767
|
*/
|
|
5324
5768
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
5325
5769
|
/**
|
|
5326
5770
|
* Disallow exports in scripts.
|
|
5327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-exports-in-scripts.md
|
|
5328
5772
|
*/
|
|
5329
5773
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
5330
5774
|
/**
|
|
5331
5775
|
* Prefer `for…of` over the `forEach` method.
|
|
5332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-each.md
|
|
5333
5777
|
*/
|
|
5334
5778
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
5335
5779
|
/**
|
|
5336
5780
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-loop.md
|
|
5338
5782
|
*/
|
|
5339
5783
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5340
5784
|
/**
|
|
5341
5785
|
* Disallow assigning properties on the global object.
|
|
5342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-global-object-property-assignment.md
|
|
5343
5787
|
*/
|
|
5344
5788
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
5345
5789
|
/**
|
|
5346
5790
|
* Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
5347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
5348
5792
|
* @deprecated
|
|
5349
5793
|
*/
|
|
5350
5794
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5351
5795
|
/**
|
|
5352
|
-
* Disallow immediate mutation after
|
|
5353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5796
|
+
* Disallow immediate mutation after assignment and initialization immediately after declaration.
|
|
5797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-immediate-mutation.md
|
|
5354
5798
|
*/
|
|
5355
5799
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
5356
5800
|
/**
|
|
5357
5801
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
5358
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-impossible-length-comparison.md
|
|
5359
5803
|
*/
|
|
5360
5804
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
5361
5805
|
/**
|
|
5362
5806
|
* Disallow class accessors that hide an inherited getter or setter.
|
|
5363
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
5364
5808
|
*/
|
|
5365
5809
|
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
5366
5810
|
/**
|
|
5367
5811
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
5368
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-query-selector.md
|
|
5369
5813
|
*/
|
|
5370
5814
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
5371
5815
|
/**
|
|
5372
5816
|
* Disallow incorrect template literal interpolation syntax.
|
|
5373
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
5374
5818
|
*/
|
|
5375
5819
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
5376
5820
|
/**
|
|
5377
5821
|
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
5378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
5379
5823
|
*/
|
|
5380
5824
|
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
5381
5825
|
/**
|
|
5382
5826
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
5384
5828
|
* @deprecated
|
|
5385
5829
|
*/
|
|
5386
5830
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5387
5831
|
/**
|
|
5388
5832
|
* Disallow `instanceof` with built-in objects
|
|
5389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-instanceof-builtins.md
|
|
5390
5834
|
*/
|
|
5391
5835
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5392
5836
|
/**
|
|
5393
5837
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
5394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-argument-count.md
|
|
5395
5839
|
*/
|
|
5396
5840
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
5397
5841
|
/**
|
|
5398
5842
|
* Disallow invalid values for HTML boolean attributes.
|
|
5399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
5400
5844
|
*/
|
|
5401
5845
|
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
5402
5846
|
/**
|
|
5403
5847
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
5404
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-character-comparison.md
|
|
5405
5849
|
*/
|
|
5406
5850
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
5407
5851
|
/**
|
|
5408
5852
|
* Disallow invalid DOM tokens.
|
|
5409
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-dom-token.md
|
|
5410
5854
|
*/
|
|
5411
5855
|
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
5412
5856
|
/**
|
|
5413
5857
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5415
5859
|
*/
|
|
5416
5860
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5417
5861
|
/**
|
|
5418
5862
|
* Disallow invalid `accept` values on file inputs.
|
|
5419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
5420
5864
|
*/
|
|
5421
5865
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
5422
5866
|
/**
|
|
5423
5867
|
* Disallow invalid subresource integrity metadata.
|
|
5424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-integrity.md
|
|
5425
5869
|
*/
|
|
5426
5870
|
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
5427
5871
|
/**
|
|
5428
5872
|
* Disallow invalid or ignored Intl options.
|
|
5429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-intl-options.md
|
|
5430
5874
|
*/
|
|
5431
5875
|
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
5432
5876
|
/**
|
|
5433
5877
|
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
5434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
5435
5879
|
* @deprecated
|
|
5436
5880
|
*/
|
|
5437
5881
|
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
5438
5882
|
/**
|
|
5439
5883
|
* Disallow invalid property descriptors.
|
|
5440
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
5441
5885
|
*/
|
|
5442
5886
|
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
5443
5887
|
/**
|
|
5444
5888
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5446
5890
|
*/
|
|
5447
5891
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5448
5892
|
/**
|
|
5449
5893
|
* Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
|
|
5450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-response-options.md
|
|
5451
5895
|
*/
|
|
5452
5896
|
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
5453
5897
|
/**
|
|
5454
5898
|
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
5455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-style-set-property.md
|
|
5456
5900
|
*/
|
|
5457
5901
|
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
5458
5902
|
/**
|
|
5459
5903
|
* Disallow statically known invalid Temporal arithmetic.
|
|
5460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
5461
5905
|
*/
|
|
5462
5906
|
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
5463
5907
|
/**
|
|
5464
5908
|
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
5465
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
5466
5910
|
*/
|
|
5467
5911
|
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
5468
5912
|
/**
|
|
5469
5913
|
* Disallow invalid implementations of well-known symbol methods.
|
|
5470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
5471
5915
|
*/
|
|
5472
5916
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
5473
5917
|
/**
|
|
5474
5918
|
* Disallow `javascript:` URLs in Markdown.
|
|
5475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-javascript-url.md
|
|
5476
5920
|
*/
|
|
5477
5921
|
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
5478
5922
|
/**
|
|
5479
5923
|
* Disallow identifiers starting with `new` or `class`.
|
|
5480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-keyword-prefix.md
|
|
5481
5925
|
*/
|
|
5482
5926
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5483
5927
|
/**
|
|
5484
5928
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
5485
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-current-target-access.md
|
|
5486
5930
|
*/
|
|
5487
5931
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
5488
5932
|
/**
|
|
5489
5933
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
5490
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-event-control.md
|
|
5491
5935
|
*/
|
|
5492
5936
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
5493
5937
|
/**
|
|
5494
5938
|
* Disallow empty lines at the beginning of a file.
|
|
5495
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-leading-empty-lines.md
|
|
5496
5940
|
*/
|
|
5497
5941
|
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
5498
5942
|
/**
|
|
5499
5943
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5500
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
5501
5945
|
* @deprecated
|
|
5502
5946
|
*/
|
|
5503
5947
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5504
5948
|
/**
|
|
5505
5949
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-lonely-if.md
|
|
5507
5951
|
*/
|
|
5508
5952
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5509
5953
|
/**
|
|
5510
5954
|
* Disallow mutating a loop iterable during iteration.
|
|
5511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
5512
5956
|
*/
|
|
5513
5957
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
5514
5958
|
/**
|
|
5515
5959
|
* Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
|
|
5516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loss-of-precision.md
|
|
5517
5961
|
*/
|
|
5518
5962
|
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
5519
5963
|
/**
|
|
5520
5964
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5522
5966
|
*/
|
|
5523
5967
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5524
5968
|
/**
|
|
5525
5969
|
* Disallow manually wrapped comments.
|
|
5526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
5527
5971
|
*/
|
|
5528
5972
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
5529
5973
|
/**
|
|
5530
5974
|
* Disallow checking a Map key before accessing a different key.
|
|
5531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-mismatched-map-key.md
|
|
5532
5976
|
*/
|
|
5533
5977
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
5534
5978
|
/**
|
|
5535
5979
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
5536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-misrefactored-assignment.md
|
|
5537
5981
|
*/
|
|
5538
5982
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
5539
5983
|
/**
|
|
5540
5984
|
* Disallow references to missing local resources.
|
|
5541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-missing-local-resource.md
|
|
5542
5986
|
*/
|
|
5543
5987
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
5544
5988
|
/**
|
|
5545
5989
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
5546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
5547
5991
|
*/
|
|
5548
5992
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
5549
5993
|
/**
|
|
5550
5994
|
* Disallow named usage of default import and export.
|
|
5551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-named-default.md
|
|
5552
5996
|
*/
|
|
5553
5997
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5554
5998
|
/**
|
|
5555
5999
|
* Disallow negated array predicate calls.
|
|
5556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-array-predicate.md
|
|
5557
6001
|
*/
|
|
5558
6002
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
5559
6003
|
/**
|
|
5560
6004
|
* Disallow negated comparisons.
|
|
5561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-comparison.md
|
|
5562
6006
|
*/
|
|
5563
6007
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
5564
6008
|
/**
|
|
5565
6009
|
* Disallow negated conditions.
|
|
5566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-condition.md
|
|
5567
6011
|
*/
|
|
5568
6012
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5569
6013
|
/**
|
|
5570
6014
|
* Disallow negated expression in equality check.
|
|
5571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5572
6016
|
*/
|
|
5573
6017
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5574
6018
|
/**
|
|
5575
6019
|
* Disallow nested ternary expressions.
|
|
5576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nested-ternary.md
|
|
5577
6021
|
*/
|
|
5578
6022
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5579
6023
|
/**
|
|
5580
6024
|
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
5581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
5582
6026
|
* @deprecated
|
|
5583
6027
|
*/
|
|
5584
6028
|
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
5585
6029
|
/**
|
|
5586
6030
|
* Disallow `new Array()`.
|
|
5587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-array.md
|
|
5588
6032
|
*/
|
|
5589
6033
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5590
6034
|
/**
|
|
5591
6035
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-buffer.md
|
|
5593
6037
|
*/
|
|
5594
6038
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5595
6039
|
/**
|
|
5596
6040
|
* Disallow non-function values with function-style verb prefixes.
|
|
5597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
5598
6042
|
*/
|
|
5599
6043
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
5600
6044
|
/**
|
|
5601
6045
|
* Disallow non-standard properties on built-in objects.
|
|
5602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
5603
6047
|
*/
|
|
5604
6048
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
5605
6049
|
/**
|
|
5606
6050
|
* Disallow the use of the `null` literal.
|
|
5607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-null.md
|
|
5608
6052
|
*/
|
|
5609
6053
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5610
6054
|
/**
|
|
5611
6055
|
* Disallow the use of objects as default parameters.
|
|
5612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5613
6057
|
*/
|
|
5614
6058
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5615
6059
|
/**
|
|
5616
6060
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
5617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-methods-with-collections.md
|
|
5618
6062
|
*/
|
|
5619
6063
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
5620
6064
|
/**
|
|
5621
6065
|
* Disallow optional chaining on undeclared variables.
|
|
5622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
5623
6067
|
*/
|
|
5624
6068
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
5625
6069
|
/**
|
|
5626
6070
|
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
5627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
5628
6072
|
*/
|
|
5629
6073
|
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
5630
6074
|
/**
|
|
5631
6075
|
* Disallow `process.exit()`.
|
|
5632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-process-exit.md
|
|
5633
6077
|
*/
|
|
5634
6078
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5635
6079
|
/**
|
|
5636
6080
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
5637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-redundant-comparison.md
|
|
5638
6082
|
*/
|
|
5639
6083
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
5640
6084
|
/**
|
|
5641
6085
|
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
5642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
5643
6087
|
* @deprecated
|
|
5644
6088
|
*/
|
|
5645
6089
|
'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
6090
|
+
/**
|
|
6091
|
+
* Disallow repeating the same wrapper at every call to a function.
|
|
6092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-repeated-call-wrappers.md
|
|
6093
|
+
*/
|
|
6094
|
+
'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
|
|
5646
6095
|
/**
|
|
5647
6096
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
5648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-return-array-push.md
|
|
5649
6098
|
*/
|
|
5650
6099
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
5651
6100
|
/**
|
|
5652
6101
|
* Disallow selector syntax in DOM names.
|
|
5653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-selector-as-dom-name.md
|
|
5654
6103
|
*/
|
|
5655
6104
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
5656
6105
|
/**
|
|
5657
6106
|
* Disallow shorthand properties that override related longhand properties.
|
|
5658
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
5659
6108
|
*/
|
|
5660
6109
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
5661
6110
|
/**
|
|
5662
6111
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5664
6113
|
*/
|
|
5665
6114
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5666
6115
|
/**
|
|
5667
6116
|
* Disallow classes that only have static members.
|
|
5668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-static-only-class.md
|
|
5669
6118
|
*/
|
|
5670
6119
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5671
6120
|
/**
|
|
5672
6121
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
5673
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-subtraction-comparison.md
|
|
5674
6123
|
*/
|
|
5675
6124
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
5676
6125
|
/**
|
|
5677
6126
|
* Disallow `then` property.
|
|
5678
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-thenable.md
|
|
5679
6128
|
*/
|
|
5680
6129
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5681
6130
|
/**
|
|
5682
6131
|
* Disallow assigning `this` to a variable.
|
|
5683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-assignment.md
|
|
5684
6133
|
*/
|
|
5685
6134
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5686
6135
|
/**
|
|
5687
6136
|
* Disallow `this` outside of classes.
|
|
5688
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-outside-of-class.md
|
|
5689
6138
|
*/
|
|
5690
6139
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
5691
6140
|
/**
|
|
5692
6141
|
* Disallow assigning to top-level variables from inside functions.
|
|
5693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
5694
6143
|
*/
|
|
5695
6144
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
5696
6145
|
/**
|
|
5697
6146
|
* Disallow top-level side effects in exported modules.
|
|
5698
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-side-effects.md
|
|
5699
6148
|
*/
|
|
5700
|
-
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<
|
|
6149
|
+
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
|
|
5701
6150
|
/**
|
|
5702
6151
|
* Disallow `all` as a transition property.
|
|
5703
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-transition-all.md
|
|
5704
6153
|
*/
|
|
5705
6154
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
5706
6155
|
/**
|
|
5707
6156
|
* Disallow comparing `undefined` using `typeof`.
|
|
5708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-typeof-undefined.md
|
|
5709
6158
|
*/
|
|
5710
6159
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5711
6160
|
/**
|
|
5712
6161
|
* Disallow referencing methods without calling them.
|
|
5713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-uncalled-method.md
|
|
5714
6163
|
*/
|
|
5715
6164
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
5716
6165
|
/**
|
|
5717
6166
|
* Require class members to be declared.
|
|
5718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-undeclared-class-members.md
|
|
5719
6168
|
*/
|
|
5720
6169
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
5721
6170
|
/**
|
|
5722
6171
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
5723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
5724
6173
|
* @deprecated
|
|
5725
6174
|
*/
|
|
5726
6175
|
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
5727
6176
|
/**
|
|
5728
6177
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
5729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
5730
6179
|
* @deprecated
|
|
5731
6180
|
*/
|
|
5732
6181
|
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
5733
6182
|
/**
|
|
5734
6183
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5736
6185
|
*/
|
|
5737
6186
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5738
6187
|
/**
|
|
5739
6188
|
* Disallow unnecessary use of `Array#flatMap()`.
|
|
5740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
5741
6190
|
*/
|
|
5742
6191
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5743
6192
|
/**
|
|
5744
6193
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5746
6195
|
*/
|
|
5747
6196
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5748
6197
|
/**
|
|
5749
6198
|
* Disallow awaiting non-promise values.
|
|
5750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-await.md
|
|
5751
6200
|
*/
|
|
5752
6201
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5753
6202
|
/**
|
|
5754
6203
|
* Disallow unnecessary comparisons against boolean literals.
|
|
5755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
5756
6205
|
*/
|
|
5757
6206
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
6207
|
+
/**
|
|
6208
|
+
* Disallow arguments that match their parameter defaults.
|
|
6209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-default-arguments.md
|
|
6210
|
+
*/
|
|
6211
|
+
'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
|
|
5758
6212
|
/**
|
|
5759
6213
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
5760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
5761
6215
|
*/
|
|
5762
6216
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5763
6217
|
/**
|
|
5764
6218
|
* Disallow unnecessary `globalThis` references.
|
|
5765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-global-this.md
|
|
5766
6220
|
*/
|
|
5767
6221
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
5768
6222
|
/**
|
|
5769
6223
|
* Disallow unnecessary nested ternary expressions.
|
|
5770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
5771
6225
|
*/
|
|
5772
6226
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5773
6227
|
/**
|
|
5774
6228
|
* Disallow parameters that receive the same value at every call.
|
|
5775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-parameters.md
|
|
5776
6230
|
*/
|
|
5777
6231
|
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
5778
6232
|
/**
|
|
5779
6233
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5781
6235
|
*/
|
|
5782
6236
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5783
6237
|
/**
|
|
5784
6238
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5786
6240
|
*/
|
|
5787
6241
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5788
6242
|
/**
|
|
5789
6243
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
5790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-splice.md
|
|
5791
6245
|
*/
|
|
5792
6246
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
5793
6247
|
/**
|
|
5794
6248
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
5795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
5796
6250
|
*/
|
|
5797
6251
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
5798
6252
|
/**
|
|
5799
6253
|
* Disallow unreadable array destructuring.
|
|
5800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5801
6255
|
*/
|
|
5802
6256
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
5803
6257
|
/**
|
|
5804
6258
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
5805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
5806
6260
|
*/
|
|
5807
6261
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
5808
6262
|
/**
|
|
5809
6263
|
* Disallow unreadable IIFEs.
|
|
5810
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-iife.md
|
|
5811
6265
|
*/
|
|
5812
6266
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5813
6267
|
/**
|
|
5814
6268
|
* Disallow unreadable `new` expressions.
|
|
5815
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-new-expression.md
|
|
5816
6270
|
*/
|
|
5817
6271
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
5818
6272
|
/**
|
|
5819
6273
|
* Disallow unreadable object destructuring.
|
|
5820
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
5821
6275
|
*/
|
|
5822
6276
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
5823
6277
|
/**
|
|
5824
6278
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
5825
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
5826
6280
|
*/
|
|
5827
6281
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
5828
6282
|
/**
|
|
5829
6283
|
* Disallow unsafe DOM HTML APIs.
|
|
5830
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-dom-html.md
|
|
5831
6285
|
*/
|
|
5832
6286
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
5833
6287
|
/**
|
|
5834
6288
|
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
5835
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
5836
6290
|
*/
|
|
5837
6291
|
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
5838
6292
|
/**
|
|
5839
6293
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
5840
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
5841
6295
|
*/
|
|
5842
6296
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
5843
6297
|
/**
|
|
5844
6298
|
* Disallow unsafe values as property keys.
|
|
5845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-property-key.md
|
|
5846
6300
|
*/
|
|
5847
6301
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
5848
6302
|
/**
|
|
5849
6303
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
5850
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
5851
6305
|
*/
|
|
5852
6306
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
5853
6307
|
/**
|
|
5854
6308
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
5855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
5856
6310
|
*/
|
|
5857
6311
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
5858
6312
|
/**
|
|
5859
6313
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
5860
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
5861
6315
|
* @deprecated
|
|
5862
6316
|
*/
|
|
5863
6317
|
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
5864
6318
|
/**
|
|
5865
6319
|
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
|
|
5866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
|
|
5867
6321
|
* @deprecated
|
|
5868
6322
|
*/
|
|
5869
6323
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
5870
6324
|
/**
|
|
5871
6325
|
* Disallow ignoring the return value of selected built-in methods.
|
|
5872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6326
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-builtin-method-return.md
|
|
5873
6327
|
*/
|
|
5874
6328
|
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
5875
6329
|
/**
|
|
5876
6330
|
* Disallow discarding lazy iterator helpers.
|
|
5877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-iterator-helper.md
|
|
5878
6332
|
*/
|
|
5879
6333
|
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
5880
6334
|
/**
|
|
5881
6335
|
* Disallow unused object properties.
|
|
5882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-properties.md
|
|
5883
6337
|
*/
|
|
5884
6338
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5885
6339
|
/**
|
|
5886
6340
|
* Disallow passing full URLs to `URLSearchParams`.
|
|
5887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-url-in-search-params.md
|
|
5888
6342
|
*/
|
|
5889
6343
|
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
5890
6344
|
/**
|
|
5891
6345
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
5892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-boolean-cast.md
|
|
5893
6347
|
*/
|
|
5894
6348
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
5895
6349
|
/**
|
|
5896
6350
|
* Disallow useless type coercions of values that are already of the target type.
|
|
5897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-coercion.md
|
|
5898
6352
|
*/
|
|
5899
6353
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
5900
6354
|
/**
|
|
5901
6355
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6356
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-collection-argument.md
|
|
5903
6357
|
*/
|
|
5904
6358
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5905
6359
|
/**
|
|
5906
6360
|
* Disallow useless compound assignments such as `x += 0`.
|
|
5907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-compound-assignment.md
|
|
5908
6362
|
*/
|
|
5909
6363
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
5910
6364
|
/**
|
|
5911
6365
|
* Disallow useless concatenation of literals.
|
|
5912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-concat.md
|
|
5913
6367
|
*/
|
|
5914
6368
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
5915
6369
|
/**
|
|
5916
6370
|
* Disallow useless `continue` statements.
|
|
5917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6371
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-continue.md
|
|
5918
6372
|
*/
|
|
5919
6373
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
5920
6374
|
/**
|
|
5921
6375
|
* Disallow unnecessary existence checks before deletion.
|
|
5922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-delete-check.md
|
|
5923
6377
|
*/
|
|
5924
6378
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
5925
6379
|
/**
|
|
5926
6380
|
* Disallow `else` after a statement that exits.
|
|
5927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-else.md
|
|
5928
6382
|
*/
|
|
5929
6383
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
5930
6384
|
/**
|
|
5931
6385
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5933
6387
|
*/
|
|
5934
6388
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5935
6389
|
/**
|
|
5936
6390
|
* Disallow useless fallback when spreading in object literals.
|
|
5937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5938
6392
|
*/
|
|
5939
6393
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5940
6394
|
/**
|
|
5941
6395
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
5942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
5943
6397
|
*/
|
|
5944
6398
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
5945
6399
|
/**
|
|
5946
6400
|
* Disallow useless array length check.
|
|
5947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-length-check.md
|
|
5948
6402
|
*/
|
|
5949
6403
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5950
6404
|
/**
|
|
5951
6405
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
5952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-logical-operand.md
|
|
5953
6407
|
*/
|
|
5954
6408
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
5955
6409
|
/**
|
|
5956
6410
|
* Disallow useless overrides of class methods.
|
|
5957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-override.md
|
|
5958
6412
|
*/
|
|
5959
6413
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
5960
6414
|
/**
|
|
5961
6415
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5963
6417
|
*/
|
|
5964
6418
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5965
6419
|
/**
|
|
5966
6420
|
* Disallow redundant re-exports.
|
|
5967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-re-export.md
|
|
5968
6422
|
*/
|
|
5969
6423
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
5970
6424
|
/**
|
|
5971
6425
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
5972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-recursion.md
|
|
5973
6427
|
*/
|
|
5974
6428
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
5975
6429
|
/**
|
|
5976
6430
|
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
5977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-set-construction.md
|
|
5978
6432
|
*/
|
|
5979
6433
|
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
5980
6434
|
/**
|
|
5981
6435
|
* Disallow unnecessary spread.
|
|
5982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6436
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-spread.md
|
|
5983
6437
|
*/
|
|
5984
6438
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5985
6439
|
/**
|
|
5986
6440
|
* Disallow useless case in switch statements.
|
|
5987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6441
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-switch-case.md
|
|
5988
6442
|
*/
|
|
5989
6443
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5990
6444
|
/**
|
|
5991
6445
|
* Disallow useless template literal expressions.
|
|
5992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6446
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-template-literals.md
|
|
5993
6447
|
*/
|
|
5994
6448
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
5995
6449
|
/**
|
|
5996
6450
|
* Disallow useless `undefined`.
|
|
5997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-undefined.md
|
|
5998
6452
|
*/
|
|
5999
6453
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
6000
6454
|
/**
|
|
6001
6455
|
* Disallow returning or exporting resources declared with `using`, including through capturing functions.
|
|
6002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6456
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-using-resource-escape.md
|
|
6003
6457
|
*/
|
|
6004
6458
|
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
6005
6459
|
/**
|
|
6006
6460
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
6007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
6008
6462
|
*/
|
|
6009
6463
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
6010
6464
|
/**
|
|
6011
6465
|
* Require consistent decimal numbers without redundant zeros.
|
|
6012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-zero-fractions.md
|
|
6013
6467
|
*/
|
|
6014
6468
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
6015
6469
|
/**
|
|
6016
6470
|
* Enforce proper case for numeric literals.
|
|
6017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/number-literal-case.md
|
|
6018
6472
|
*/
|
|
6019
6473
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
6020
6474
|
/**
|
|
6021
6475
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/numeric-separators-style.md
|
|
6023
6477
|
*/
|
|
6024
6478
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
6025
6479
|
/**
|
|
6026
6480
|
* Require assignment operator shorthand where possible.
|
|
6027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/operator-assignment.md
|
|
6028
6482
|
*/
|
|
6029
6483
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
6030
6484
|
/**
|
|
6031
6485
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
6032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-any.md
|
|
6033
6487
|
*/
|
|
6034
6488
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
6035
6489
|
/**
|
|
6036
6490
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
6037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
6038
6492
|
*/
|
|
6039
6493
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
6040
6494
|
/**
|
|
6041
6495
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6496
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener.md
|
|
6043
6497
|
*/
|
|
6044
6498
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
6045
6499
|
/**
|
|
6046
6500
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
6047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
6048
6502
|
*/
|
|
6049
6503
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
6050
6504
|
/**
|
|
6051
6505
|
* Prefer `AggregateError` when throwing collected errors.
|
|
6052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-aggregate-error.md
|
|
6053
6507
|
*/
|
|
6054
6508
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
6055
6509
|
/**
|
|
6056
6510
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-find.md
|
|
6058
6512
|
*/
|
|
6059
6513
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
6060
6514
|
/**
|
|
6061
6515
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat.md
|
|
6063
6517
|
*/
|
|
6064
6518
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
6065
6519
|
/**
|
|
6066
6520
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
6067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat-map.md
|
|
6068
6522
|
*/
|
|
6069
6523
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
6070
6524
|
/**
|
|
6071
6525
|
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
6072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-async.md
|
|
6073
6527
|
*/
|
|
6074
6528
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
6075
6529
|
/**
|
|
6076
6530
|
* Prefer using the `Array.from()` mapping function argument.
|
|
6077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-map.md
|
|
6078
6532
|
*/
|
|
6079
6533
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
6080
6534
|
/**
|
|
6081
6535
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
6082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-range.md
|
|
6083
6537
|
*/
|
|
6084
6538
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
6085
6539
|
/**
|
|
6086
6540
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-index-of.md
|
|
6088
6542
|
*/
|
|
6089
6543
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
6090
6544
|
/**
|
|
6091
6545
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
6092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
6093
6547
|
*/
|
|
6094
6548
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
6095
6549
|
/**
|
|
6096
6550
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
6097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-last-methods.md
|
|
6098
6552
|
*/
|
|
6099
6553
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
6100
6554
|
/**
|
|
6101
6555
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
6102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-slice.md
|
|
6103
6557
|
*/
|
|
6104
6558
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
6105
6559
|
/**
|
|
6106
6560
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-some.md
|
|
6108
6562
|
*/
|
|
6109
6563
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
6110
6564
|
/**
|
|
6111
6565
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-at.md
|
|
6113
6567
|
*/
|
|
6114
6568
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
6115
6569
|
/**
|
|
6116
6570
|
* Prefer `await` over promise chaining.
|
|
6117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-await.md
|
|
6118
6572
|
*/
|
|
6119
6573
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
6120
6574
|
/**
|
|
6121
6575
|
* Prefer `BigInt` literals over the constructor.
|
|
6122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-bigint-literals.md
|
|
6123
6577
|
*/
|
|
6124
6578
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
6125
6579
|
/**
|
|
6126
6580
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
6128
6582
|
*/
|
|
6129
6583
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
6130
6584
|
/**
|
|
6131
6585
|
* Prefer block statements over IIFEs used only for scoping.
|
|
6132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
6133
6587
|
*/
|
|
6134
6588
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
6135
6589
|
/**
|
|
6136
6590
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
6137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-boolean-return.md
|
|
6138
6592
|
*/
|
|
6139
6593
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
6140
6594
|
/**
|
|
6141
6595
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
6142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-class-fields.md
|
|
6143
6597
|
*/
|
|
6144
6598
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
6145
6599
|
/**
|
|
6146
6600
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-classlist-toggle.md
|
|
6148
6602
|
*/
|
|
6149
6603
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
6150
6604
|
/**
|
|
6151
6605
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-code-point.md
|
|
6153
6607
|
*/
|
|
6154
6608
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
6155
6609
|
/**
|
|
6156
6610
|
* Prefer combining consecutive guards with identical exit statements.
|
|
6157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-combined-guards.md
|
|
6158
6612
|
*/
|
|
6159
6613
|
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
6160
6614
|
/**
|
|
6161
6615
|
* Prefer early continues over conditionals wrapping the remainder of the loop body.
|
|
6162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-continue.md
|
|
6163
6617
|
*/
|
|
6164
6618
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
6165
6619
|
/**
|
|
6166
6620
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-date-now.md
|
|
6168
6622
|
*/
|
|
6169
6623
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
6170
6624
|
/**
|
|
6171
6625
|
* Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
|
|
6172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-default-parameters.md
|
|
6173
6627
|
*/
|
|
6174
|
-
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<
|
|
6628
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
|
|
6175
6629
|
/**
|
|
6176
6630
|
* Prefer direct iteration over default iterator method calls.
|
|
6177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-direct-iteration.md
|
|
6178
6632
|
*/
|
|
6179
6633
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
6180
6634
|
/**
|
|
6181
6635
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
6182
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dispose.md
|
|
6183
6637
|
*/
|
|
6184
6638
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
6185
6639
|
/**
|
|
6186
6640
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
6187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-append.md
|
|
6188
6642
|
*/
|
|
6189
6643
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
6190
6644
|
/**
|
|
6191
6645
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
6192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
6193
6647
|
* @deprecated
|
|
6194
6648
|
*/
|
|
6195
6649
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
6196
6650
|
/**
|
|
6197
6651
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
6198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6652
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
6199
6653
|
*/
|
|
6200
6654
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
6201
6655
|
/**
|
|
6202
6656
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6204
6658
|
*/
|
|
6205
6659
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
6206
6660
|
/**
|
|
6207
6661
|
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
6208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
6209
6663
|
*/
|
|
6210
6664
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
6211
6665
|
/**
|
|
6212
6666
|
* Prefer `.textContent` over `.innerText`.
|
|
6213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6214
6668
|
*/
|
|
6215
6669
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
6216
6670
|
/**
|
|
6217
6671
|
* Prefer early returns over conditionals wrapping the remainder of the function body.
|
|
6218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-early-return.md
|
|
6219
6673
|
*/
|
|
6220
6674
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
6221
6675
|
/**
|
|
6222
6676
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
6223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-else-if.md
|
|
6224
6678
|
*/
|
|
6225
6679
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
6226
6680
|
/**
|
|
6227
6681
|
* Prefer `Error.isError()` when checking for errors.
|
|
6228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-error-is-error.md
|
|
6229
6683
|
*/
|
|
6230
6684
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
6231
6685
|
/**
|
|
6232
6686
|
* Prefer escape sequences for irregular whitespace characters.
|
|
6233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
6234
6688
|
*/
|
|
6235
6689
|
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
6236
6690
|
/**
|
|
6237
6691
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-event-target.md
|
|
6239
6693
|
*/
|
|
6240
6694
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
6241
6695
|
/**
|
|
6242
6696
|
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
6243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
6244
6698
|
* @deprecated
|
|
6245
6699
|
*/
|
|
6246
6700
|
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
6247
6701
|
/**
|
|
6248
6702
|
* Prefer `export…from` when re-exporting.
|
|
6249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-export-from.md
|
|
6250
6704
|
*/
|
|
6251
6705
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
6252
6706
|
/**
|
|
6253
6707
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
6254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
6255
6709
|
*/
|
|
6256
6710
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6257
6711
|
/**
|
|
6258
6712
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
6259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
6260
6714
|
*/
|
|
6261
6715
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
6262
6716
|
/**
|
|
6263
6717
|
* Prefer global numeric constants over `Number` static properties.
|
|
6264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-number-constants.md
|
|
6265
6719
|
*/
|
|
6266
6720
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
6267
6721
|
/**
|
|
6268
6722
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6269
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-this.md
|
|
6270
6724
|
*/
|
|
6271
6725
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
6272
6726
|
/**
|
|
6273
6727
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
6274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-group-by.md
|
|
6275
6729
|
*/
|
|
6276
6730
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
6277
6731
|
/**
|
|
6278
6732
|
* Prefer `.has()` when checking existence.
|
|
6279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-has-check.md
|
|
6280
6734
|
*/
|
|
6281
6735
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
6282
6736
|
/**
|
|
6283
6737
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
6284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
6285
6739
|
*/
|
|
6286
6740
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
6287
6741
|
/**
|
|
6288
6742
|
* Prefer HTTPS over HTTP.
|
|
6289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-https.md
|
|
6290
6744
|
*/
|
|
6291
6745
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
6292
6746
|
/**
|
|
6293
6747
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
6294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
6295
6749
|
*/
|
|
6296
6750
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
6297
6751
|
/**
|
|
6298
6752
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-import-meta-properties.md
|
|
6300
6754
|
*/
|
|
6301
6755
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
6302
6756
|
/**
|
|
6303
6757
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes.md
|
|
6305
6759
|
*/
|
|
6306
6760
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
6307
6761
|
/**
|
|
6308
6762
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
6309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
6310
6764
|
*/
|
|
6311
6765
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
6312
6766
|
/**
|
|
6313
6767
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
6314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
6315
6769
|
*/
|
|
6316
6770
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
6317
6771
|
/**
|
|
6318
6772
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
6319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-concat.md
|
|
6320
6774
|
*/
|
|
6321
6775
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
6322
6776
|
/**
|
|
6323
6777
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
6324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-helpers.md
|
|
6325
6779
|
*/
|
|
6326
6780
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
6327
6781
|
/**
|
|
6328
6782
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
6329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array.md
|
|
6330
6784
|
*/
|
|
6331
6785
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
6332
6786
|
/**
|
|
6333
6787
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
6334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
6335
6789
|
*/
|
|
6336
6790
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
6337
6791
|
/**
|
|
6338
6792
|
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
6339
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-zip.md
|
|
6340
6794
|
*/
|
|
6341
6795
|
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
6342
6796
|
/**
|
|
6343
6797
|
* Prefer JSON imports over reading and parsing JSON files.
|
|
6344
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-json-import.md
|
|
6345
6799
|
*/
|
|
6346
6800
|
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
6347
6801
|
/**
|
|
6348
6802
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
6349
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
6350
6804
|
* @deprecated
|
|
6351
6805
|
*/
|
|
6352
6806
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
6353
6807
|
/**
|
|
6354
6808
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
6355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6356
6810
|
*/
|
|
6357
6811
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6358
6812
|
/**
|
|
6359
6813
|
* Prefer literal printable ASCII characters over escape sequences.
|
|
6360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-literal-ascii.md
|
|
6361
6815
|
*/
|
|
6362
6816
|
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
6363
6817
|
/**
|
|
6364
6818
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
6365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-location-assign.md
|
|
6366
6820
|
*/
|
|
6367
6821
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
6368
6822
|
/**
|
|
6369
6823
|
* Prefer using a logical operator over a ternary.
|
|
6370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6371
6825
|
*/
|
|
6372
6826
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
6373
6827
|
/**
|
|
6374
6828
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
6375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-map-from-entries.md
|
|
6376
6830
|
*/
|
|
6377
6831
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
6378
6832
|
/**
|
|
6379
6833
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
6380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-abs.md
|
|
6381
6835
|
*/
|
|
6382
6836
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
6383
6837
|
/**
|
|
6384
6838
|
* Prefer `Math` constants over their approximate numeric values.
|
|
6385
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-constants.md
|
|
6386
6840
|
*/
|
|
6387
6841
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
6388
6842
|
/**
|
|
6389
6843
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-min-max.md
|
|
6391
6845
|
*/
|
|
6392
6846
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6393
6847
|
/**
|
|
6394
6848
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
6395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-trunc.md
|
|
6396
6850
|
*/
|
|
6397
6851
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
6398
6852
|
/**
|
|
6399
6853
|
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
6400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
6401
6855
|
* @deprecated
|
|
6402
6856
|
*/
|
|
6403
6857
|
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
6404
6858
|
/**
|
|
6405
6859
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
6406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6860
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-minimal-ternary.md
|
|
6407
6861
|
*/
|
|
6408
6862
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
6409
6863
|
/**
|
|
6410
6864
|
* Prefer modern DOM APIs.
|
|
6411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6412
6866
|
*/
|
|
6413
6867
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
6414
6868
|
/**
|
|
6415
6869
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6417
6871
|
*/
|
|
6418
6872
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
6419
6873
|
/**
|
|
6420
6874
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-module.md
|
|
6422
6876
|
*/
|
|
6423
6877
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
6424
6878
|
/**
|
|
6425
6879
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6427
6881
|
*/
|
|
6428
6882
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
6429
6883
|
/**
|
|
6430
6884
|
* Prefer negative index over `.length - index` when possible.
|
|
6431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-negative-index.md
|
|
6432
6886
|
*/
|
|
6433
6887
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
6434
6888
|
/**
|
|
6435
6889
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-node-protocol.md
|
|
6437
6891
|
*/
|
|
6438
6892
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
6439
6893
|
/**
|
|
6440
6894
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
6441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-coercion.md
|
|
6442
6896
|
*/
|
|
6443
6897
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
6444
6898
|
/**
|
|
6445
6899
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
6446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
6447
6901
|
*/
|
|
6448
6902
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
6449
6903
|
/**
|
|
6450
6904
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
6451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-properties.md
|
|
6452
6906
|
*/
|
|
6453
6907
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
6454
6908
|
/**
|
|
6455
6909
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
6456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6910
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-define-properties.md
|
|
6457
6911
|
*/
|
|
6458
6912
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
6459
6913
|
/**
|
|
6460
6914
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
6461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
6462
6916
|
*/
|
|
6463
6917
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
6464
6918
|
/**
|
|
6465
6919
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-from-entries.md
|
|
6467
6921
|
*/
|
|
6468
6922
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
6469
6923
|
/**
|
|
6470
6924
|
* Prefer the most specific `Object` iterable method.
|
|
6471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
6472
6926
|
*/
|
|
6473
6927
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
6474
6928
|
/**
|
|
6475
6929
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
6476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6930
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-observer-apis.md
|
|
6477
6931
|
*/
|
|
6478
6932
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
6479
6933
|
/**
|
|
6480
6934
|
* Prefer omitting the `catch` binding parameter.
|
|
6481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6935
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6482
6936
|
*/
|
|
6483
6937
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
6484
6938
|
/**
|
|
6485
6939
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
6486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-path2d.md
|
|
6487
6941
|
*/
|
|
6488
6942
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
6489
6943
|
/**
|
|
6490
6944
|
* Prefer private class fields over the underscore-prefix convention.
|
|
6491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-private-class-fields.md
|
|
6492
6946
|
*/
|
|
6493
6947
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
6494
6948
|
/**
|
|
6495
6949
|
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
|
|
6496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-static-methods.md
|
|
6497
6951
|
*/
|
|
6498
6952
|
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
6499
6953
|
/**
|
|
6500
6954
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
6501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-try.md
|
|
6502
6956
|
*/
|
|
6503
6957
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
6504
6958
|
/**
|
|
6505
6959
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
6506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
6507
6961
|
*/
|
|
6508
6962
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
6509
6963
|
/**
|
|
6510
6964
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-prototype-methods.md
|
|
6512
6966
|
*/
|
|
6513
6967
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
6514
6968
|
/**
|
|
6515
6969
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
6516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-query-selector.md
|
|
6517
6971
|
*/
|
|
6518
6972
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
6519
6973
|
/**
|
|
6520
6974
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
6521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-queue-microtask.md
|
|
6522
6976
|
*/
|
|
6523
6977
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
6524
6978
|
/**
|
|
6525
6979
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-reflect-apply.md
|
|
6527
6981
|
*/
|
|
6528
6982
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
6529
6983
|
/**
|
|
6530
6984
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
6531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-escape.md
|
|
6532
6986
|
*/
|
|
6533
6987
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
6534
6988
|
/**
|
|
6535
6989
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
6536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-test.md
|
|
6537
6991
|
*/
|
|
6538
6992
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
6539
6993
|
/**
|
|
6540
6994
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-response-static-json.md
|
|
6542
6996
|
*/
|
|
6543
6997
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
6544
6998
|
/**
|
|
6545
6999
|
* Prefer `:scope` when using element query selector methods.
|
|
6546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-scoped-selector.md
|
|
6547
7001
|
*/
|
|
6548
7002
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
6549
7003
|
/**
|
|
6550
7004
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-has.md
|
|
6552
7006
|
*/
|
|
6553
7007
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
6554
7008
|
/**
|
|
6555
7009
|
* Prefer `Set` methods for Set operations.
|
|
6556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-methods.md
|
|
6557
7011
|
*/
|
|
6558
7012
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
6559
7013
|
/**
|
|
6560
7014
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-size.md
|
|
6562
7016
|
*/
|
|
6563
7017
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6564
7018
|
/**
|
|
6565
7019
|
* Prefer arrow function properties over methods with a single return.
|
|
6566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-arrow-method.md
|
|
6567
7021
|
*/
|
|
6568
7022
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
6569
7023
|
/**
|
|
6570
7024
|
* Prefer shorter alternatives to Unicode escape sequences.
|
|
6571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
6572
7026
|
*/
|
|
6573
7027
|
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
6574
7028
|
/**
|
|
6575
7029
|
* Prefer simple conditions first in logical expressions.
|
|
6576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-condition-first.md
|
|
6577
7031
|
*/
|
|
6578
7032
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
6579
7033
|
/**
|
|
6580
7034
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
6581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
6582
7036
|
*/
|
|
6583
7037
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
6584
7038
|
/**
|
|
6585
7039
|
* Prefer simplified conditions.
|
|
6586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simplified-conditions.md
|
|
6587
7041
|
*/
|
|
6588
7042
|
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
6589
7043
|
/**
|
|
6590
7044
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
6591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-array-predicate.md
|
|
6592
7046
|
*/
|
|
6593
7047
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
6594
7048
|
/**
|
|
6595
7049
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-call.md
|
|
6597
7051
|
*/
|
|
6598
7052
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
6599
7053
|
/**
|
|
6600
7054
|
* Prefer a single object destructuring declaration per local const source.
|
|
6601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7055
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
6602
7056
|
*/
|
|
6603
7057
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
6604
7058
|
/**
|
|
6605
7059
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
6606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-replace.md
|
|
6607
7061
|
*/
|
|
6608
7062
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
6609
7063
|
/**
|
|
6610
7064
|
* Prefer declaring variables in the smallest possible scope.
|
|
6611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-smaller-scope.md
|
|
6612
7066
|
*/
|
|
6613
7067
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
6614
7068
|
/**
|
|
6615
7069
|
* Prefer `String#split()` with a limit.
|
|
6616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-split-limit.md
|
|
6617
7071
|
*/
|
|
6618
7072
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
6619
7073
|
/**
|
|
6620
7074
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
6621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-spread.md
|
|
6622
7076
|
*/
|
|
6623
7077
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
6624
7078
|
/**
|
|
6625
7079
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
6626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-match-all.md
|
|
6627
7081
|
*/
|
|
6628
7082
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
6629
7083
|
/**
|
|
6630
7084
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
6631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
6632
7086
|
*/
|
|
6633
7087
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
6634
7088
|
/**
|
|
6635
7089
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-raw.md
|
|
6637
7091
|
*/
|
|
6638
7092
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
6639
7093
|
/**
|
|
6640
7094
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
6641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-repeat.md
|
|
6642
7096
|
*/
|
|
6643
7097
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
6644
7098
|
/**
|
|
6645
7099
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
6646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-replace-all.md
|
|
6647
7101
|
*/
|
|
6648
7102
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
6649
7103
|
/**
|
|
6650
7104
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-slice.md
|
|
6652
7106
|
*/
|
|
6653
7107
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
6654
7108
|
/**
|
|
6655
7109
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
6656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6657
7111
|
*/
|
|
6658
7112
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
6659
7113
|
/**
|
|
6660
7114
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6662
7116
|
*/
|
|
6663
7117
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
6664
7118
|
/**
|
|
6665
7119
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-structured-clone.md
|
|
6667
7121
|
*/
|
|
6668
7122
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
6669
7123
|
/**
|
|
6670
7124
|
* Prefer `switch` over multiple `else-if`.
|
|
6671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-switch.md
|
|
6672
7126
|
*/
|
|
6673
7127
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
6674
7128
|
/**
|
|
6675
7129
|
* Prefer `Temporal` over `Date`.
|
|
6676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal.md
|
|
6677
7131
|
*/
|
|
6678
7132
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
6679
7133
|
/**
|
|
6680
7134
|
* Prefer direct Temporal conversion methods.
|
|
6681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal-conversion.md
|
|
6682
7136
|
*/
|
|
6683
7137
|
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
6684
7138
|
/**
|
|
6685
|
-
* Prefer ternary expressions over simple `if` statements
|
|
6686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7139
|
+
* Prefer ternary expressions over simple `if` statements.
|
|
7140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-ternary.md
|
|
6687
7141
|
*/
|
|
6688
7142
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
6689
7143
|
/**
|
|
6690
7144
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
6691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-then-catch.md
|
|
6692
7146
|
*/
|
|
6693
7147
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
6694
7148
|
/**
|
|
6695
7149
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
6696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-toggle-attribute.md
|
|
6697
7151
|
*/
|
|
6698
7152
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
6699
7153
|
/**
|
|
6700
7154
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-top-level-await.md
|
|
6702
7156
|
*/
|
|
6703
7157
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
6704
7158
|
/**
|
|
6705
7159
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-error.md
|
|
6707
7161
|
*/
|
|
6708
7162
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
6709
7163
|
/**
|
|
6710
7164
|
* Require type literals to be last in union types.
|
|
6711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-literal-last.md
|
|
6712
7166
|
*/
|
|
6713
7167
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
6714
7168
|
/**
|
|
6715
7169
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
|
|
6716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-base64.md
|
|
6717
7171
|
*/
|
|
6718
7172
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
6719
7173
|
/**
|
|
6720
7174
|
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
|
|
6721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-hex.md
|
|
6722
7176
|
*/
|
|
6723
7177
|
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
|
|
6724
7178
|
/**
|
|
6725
7179
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
6726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unary-minus.md
|
|
6727
7181
|
*/
|
|
6728
7182
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
6729
7183
|
/**
|
|
6730
7184
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
6731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
6732
7186
|
*/
|
|
6733
7187
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
6734
7188
|
/**
|
|
6735
7189
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
6736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-can-parse.md
|
|
6737
7191
|
*/
|
|
6738
7192
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
6739
7193
|
/**
|
|
6740
7194
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
6741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-href.md
|
|
6742
7196
|
*/
|
|
6743
7197
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
6744
7198
|
/**
|
|
6745
7199
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
6746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-search-parameters.md
|
|
6747
7201
|
*/
|
|
6748
7202
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
6749
7203
|
/**
|
|
6750
7204
|
* Prefer putting the condition in the while statement.
|
|
6751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-while-loop-condition.md
|
|
6752
7206
|
*/
|
|
6753
7207
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
6754
7208
|
/**
|
|
6755
7209
|
* Renamed to `unicorn/name-replacements`.
|
|
6756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
6757
7211
|
* @deprecated
|
|
6758
7212
|
*/
|
|
6759
7213
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
6760
7214
|
/**
|
|
6761
7215
|
* Enforce consistent relative URL style.
|
|
6762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/relative-url-style.md
|
|
6763
7217
|
*/
|
|
6764
7218
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
6765
7219
|
/**
|
|
6766
7220
|
* Enforce using the separator argument with `Array#join()`.
|
|
6767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-join-separator.md
|
|
6768
7222
|
*/
|
|
6769
7223
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
6770
7224
|
/**
|
|
6771
7225
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
6772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-sort-compare.md
|
|
6773
7227
|
*/
|
|
6774
7228
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
6775
7229
|
/**
|
|
6776
7230
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
6777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7231
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-css-escape.md
|
|
6778
7232
|
*/
|
|
6779
7233
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
6780
7234
|
/**
|
|
6781
7235
|
* Require configured YAML frontmatter fields.
|
|
6782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-frontmatter-fields.md
|
|
6783
7237
|
*/
|
|
6784
7238
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
6785
7239
|
/**
|
|
6786
7240
|
* Require non-empty module attributes for imports and exports
|
|
6787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-attributes.md
|
|
6788
7242
|
*/
|
|
6789
7243
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
6790
7244
|
/**
|
|
6791
7245
|
* Require non-empty specifier list in import and export statements.
|
|
6792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-specifiers.md
|
|
6793
7247
|
*/
|
|
6794
7248
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
6795
7249
|
/**
|
|
6796
7250
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6798
7252
|
*/
|
|
6799
7253
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
6800
7254
|
/**
|
|
6801
7255
|
* Require passive event listeners for high-frequency events.
|
|
6802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-passive-events.md
|
|
6803
7257
|
*/
|
|
6804
7258
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
6805
7259
|
/**
|
|
6806
7260
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-post-message-target-origin.md
|
|
6808
7262
|
*/
|
|
6809
7263
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
6810
7264
|
/**
|
|
6811
7265
|
* Require boolean-returning Proxy traps to return booleans.
|
|
6812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
6813
7267
|
*/
|
|
6814
7268
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
6815
7269
|
/**
|
|
6816
7270
|
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
6817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-text-decoder-streaming.md
|
|
6818
7272
|
*/
|
|
6819
7273
|
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
6820
7274
|
/**
|
|
6821
7275
|
* Enforce a consistent style for single-line block comments.
|
|
6822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7276
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/single-line-block-comment-style.md
|
|
6823
7277
|
*/
|
|
6824
7278
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
6825
7279
|
/**
|
|
6826
7280
|
* Enforce better string content.
|
|
6827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7281
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/string-content.md
|
|
6828
7282
|
*/
|
|
6829
7283
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
6830
7284
|
/**
|
|
6831
7285
|
* Enforce consistent brace style for `case` clauses.
|
|
6832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7286
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-braces.md
|
|
6833
7287
|
*/
|
|
6834
7288
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
6835
7289
|
/**
|
|
6836
7290
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
6837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-break-position.md
|
|
6838
7292
|
*/
|
|
6839
7293
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
6840
7294
|
/**
|
|
6841
7295
|
* Fix whitespace-insensitive template indentation.
|
|
6842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/template-indent.md
|
|
6843
7297
|
*/
|
|
6844
7298
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
6845
7299
|
/**
|
|
6846
7300
|
* Enforce consistent case for text encoding identifiers.
|
|
6847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7301
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6848
7302
|
*/
|
|
6849
7303
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
6850
7304
|
/**
|
|
6851
7305
|
* Require `new` when creating an error.
|
|
6852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/throw-new-error.md
|
|
6853
7307
|
*/
|
|
6854
7308
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
6855
7309
|
/**
|
|
6856
7310
|
* Limit the complexity of `try` blocks.
|
|
6857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/try-complexity.md
|
|
6858
7312
|
*/
|
|
6859
7313
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
6860
7314
|
/**
|
|
@@ -8813,6 +9267,10 @@ type EslintReactDomNoUnknownProperty = [] | [{
|
|
|
8813
9267
|
ignore?: string[];
|
|
8814
9268
|
requireDataLowercase?: boolean;
|
|
8815
9269
|
}];
|
|
9270
|
+
// ----- @eslint-react/dom-no-unsafe-target-blank -----
|
|
9271
|
+
type EslintReactDomNoUnsafeTargetBlank = [] | [{
|
|
9272
|
+
allowReferrer?: boolean;
|
|
9273
|
+
}];
|
|
8816
9274
|
// ----- @eslint-react/exhaustive-deps -----
|
|
8817
9275
|
type EslintReactExhaustiveDeps = [] | [{
|
|
8818
9276
|
additionalHooks?: string;
|
|
@@ -10137,6 +10595,10 @@ type TypescriptEslintArrayType = [] | [{
|
|
|
10137
10595
|
default?: ("array" | "generic" | "array-simple");
|
|
10138
10596
|
readonly?: ("array" | "generic" | "array-simple");
|
|
10139
10597
|
}];
|
|
10598
|
+
// ----- @typescript-eslint/await-thenable -----
|
|
10599
|
+
type TypescriptEslintAwaitThenable = [] | [{
|
|
10600
|
+
allowMixedPromiseArrays?: boolean;
|
|
10601
|
+
}];
|
|
10140
10602
|
// ----- @typescript-eslint/ban-ts-comment -----
|
|
10141
10603
|
type TypescriptEslintBanTsComment = [] | [{
|
|
10142
10604
|
minimumDescriptionLength?: number;
|
|
@@ -12018,6 +12480,7 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
12018
12480
|
type JsdocNoUnnecessaryTypeAssertion = [] | [{
|
|
12019
12481
|
checkLiteralConstAssertions?: boolean;
|
|
12020
12482
|
enableFixer?: boolean;
|
|
12483
|
+
fixTypeChangingCasts?: boolean;
|
|
12021
12484
|
preferConstToLiteralTuples?: boolean;
|
|
12022
12485
|
treatAnyAsRedundant?: boolean;
|
|
12023
12486
|
typesToIgnore?: string[];
|
|
@@ -13074,7 +13537,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = [] | [{
|
|
|
13074
13537
|
type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
13075
13538
|
version?: string;
|
|
13076
13539
|
allowExperimental?: boolean;
|
|
13077
|
-
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")[];
|
|
13540
|
+
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")[];
|
|
13078
13541
|
}];
|
|
13079
13542
|
// ----- node/prefer-global/buffer -----
|
|
13080
13543
|
type NodePreferGlobalBuffer = [] | [("always" | "never")];
|
|
@@ -13601,8 +14064,8 @@ type PerfectionistSortClasses = {
|
|
|
13601
14064
|
});
|
|
13602
14065
|
partitionByNewLine?: boolean;
|
|
13603
14066
|
}[];
|
|
13604
|
-
// ----- perfectionist/sort-
|
|
13605
|
-
type
|
|
14067
|
+
// ----- perfectionist/sort-constructor-parameters -----
|
|
14068
|
+
type PerfectionistSortConstructorParameters = [{
|
|
13606
14069
|
fallbackSort?: {
|
|
13607
14070
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13608
14071
|
order?: ("asc" | "desc");
|
|
@@ -13630,6 +14093,15 @@ type PerfectionistSortDecorators = {
|
|
|
13630
14093
|
pattern: string;
|
|
13631
14094
|
flags?: string;
|
|
13632
14095
|
} | string));
|
|
14096
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14097
|
+
selector?: "parameter";
|
|
14098
|
+
decoratorNamePattern?: (({
|
|
14099
|
+
pattern: string;
|
|
14100
|
+
flags?: string;
|
|
14101
|
+
} | string)[] | ({
|
|
14102
|
+
pattern: string;
|
|
14103
|
+
flags?: string;
|
|
14104
|
+
} | string));
|
|
13633
14105
|
}, ...({
|
|
13634
14106
|
elementNamePattern?: (({
|
|
13635
14107
|
pattern: string;
|
|
@@ -13638,6 +14110,15 @@ type PerfectionistSortDecorators = {
|
|
|
13638
14110
|
pattern: string;
|
|
13639
14111
|
flags?: string;
|
|
13640
14112
|
} | string));
|
|
14113
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14114
|
+
selector?: "parameter";
|
|
14115
|
+
decoratorNamePattern?: (({
|
|
14116
|
+
pattern: string;
|
|
14117
|
+
flags?: string;
|
|
14118
|
+
} | string)[] | ({
|
|
14119
|
+
pattern: string;
|
|
14120
|
+
flags?: string;
|
|
14121
|
+
} | string));
|
|
13641
14122
|
})[]];
|
|
13642
14123
|
} | {
|
|
13643
14124
|
fallbackSort?: {
|
|
@@ -13655,6 +14136,15 @@ type PerfectionistSortDecorators = {
|
|
|
13655
14136
|
pattern: string;
|
|
13656
14137
|
flags?: string;
|
|
13657
14138
|
} | string));
|
|
14139
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14140
|
+
selector?: "parameter";
|
|
14141
|
+
decoratorNamePattern?: (({
|
|
14142
|
+
pattern: string;
|
|
14143
|
+
flags?: string;
|
|
14144
|
+
} | string)[] | ({
|
|
14145
|
+
pattern: string;
|
|
14146
|
+
flags?: string;
|
|
14147
|
+
} | string));
|
|
13658
14148
|
})[];
|
|
13659
14149
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13660
14150
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -13671,11 +14161,16 @@ type PerfectionistSortDecorators = {
|
|
|
13671
14161
|
order?: ("asc" | "desc");
|
|
13672
14162
|
})[];
|
|
13673
14163
|
newlinesBetween?: ("ignore" | number);
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
14164
|
+
useConfigurationIf: {
|
|
14165
|
+
allNamesMatchPattern?: (({
|
|
14166
|
+
pattern: string;
|
|
14167
|
+
flags?: string;
|
|
14168
|
+
} | string)[] | ({
|
|
14169
|
+
pattern: string;
|
|
14170
|
+
flags?: string;
|
|
14171
|
+
} | string));
|
|
14172
|
+
matchesAstSelector?: string;
|
|
14173
|
+
};
|
|
13679
14174
|
partitionByComment?: (boolean | (({
|
|
13680
14175
|
pattern: string;
|
|
13681
14176
|
flags?: string;
|
|
@@ -13699,9 +14194,7 @@ type PerfectionistSortDecorators = {
|
|
|
13699
14194
|
} | string)));
|
|
13700
14195
|
});
|
|
13701
14196
|
partitionByNewLine?: boolean;
|
|
13702
|
-
}
|
|
13703
|
-
// ----- perfectionist/sort-enums -----
|
|
13704
|
-
type PerfectionistSortEnums = {
|
|
14197
|
+
}, ...({
|
|
13705
14198
|
fallbackSort?: {
|
|
13706
14199
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13707
14200
|
order?: ("asc" | "desc");
|
|
@@ -13729,7 +14222,9 @@ type PerfectionistSortEnums = {
|
|
|
13729
14222
|
pattern: string;
|
|
13730
14223
|
flags?: string;
|
|
13731
14224
|
} | string));
|
|
13732
|
-
|
|
14225
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14226
|
+
selector?: "parameter";
|
|
14227
|
+
decoratorNamePattern?: (({
|
|
13733
14228
|
pattern: string;
|
|
13734
14229
|
flags?: string;
|
|
13735
14230
|
} | string)[] | ({
|
|
@@ -13744,7 +14239,9 @@ type PerfectionistSortEnums = {
|
|
|
13744
14239
|
pattern: string;
|
|
13745
14240
|
flags?: string;
|
|
13746
14241
|
} | string));
|
|
13747
|
-
|
|
14242
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14243
|
+
selector?: "parameter";
|
|
14244
|
+
decoratorNamePattern?: (({
|
|
13748
14245
|
pattern: string;
|
|
13749
14246
|
flags?: string;
|
|
13750
14247
|
} | string)[] | ({
|
|
@@ -13768,7 +14265,9 @@ type PerfectionistSortEnums = {
|
|
|
13768
14265
|
pattern: string;
|
|
13769
14266
|
flags?: string;
|
|
13770
14267
|
} | string));
|
|
13771
|
-
|
|
14268
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14269
|
+
selector?: "parameter";
|
|
14270
|
+
decoratorNamePattern?: (({
|
|
13772
14271
|
pattern: string;
|
|
13773
14272
|
flags?: string;
|
|
13774
14273
|
} | string)[] | ({
|
|
@@ -13791,8 +14290,7 @@ type PerfectionistSortEnums = {
|
|
|
13791
14290
|
order?: ("asc" | "desc");
|
|
13792
14291
|
})[];
|
|
13793
14292
|
newlinesBetween?: ("ignore" | number);
|
|
13794
|
-
|
|
13795
|
-
useConfigurationIf?: {
|
|
14293
|
+
useConfigurationIf: {
|
|
13796
14294
|
allNamesMatchPattern?: (({
|
|
13797
14295
|
pattern: string;
|
|
13798
14296
|
flags?: string;
|
|
@@ -13802,7 +14300,6 @@ type PerfectionistSortEnums = {
|
|
|
13802
14300
|
} | string));
|
|
13803
14301
|
matchesAstSelector?: string;
|
|
13804
14302
|
};
|
|
13805
|
-
useExperimentalDependencyDetection?: boolean;
|
|
13806
14303
|
partitionByComment?: (boolean | (({
|
|
13807
14304
|
pattern: string;
|
|
13808
14305
|
flags?: string;
|
|
@@ -13826,11 +14323,237 @@ type PerfectionistSortEnums = {
|
|
|
13826
14323
|
} | string)));
|
|
13827
14324
|
});
|
|
13828
14325
|
partitionByNewLine?: boolean;
|
|
13829
|
-
}[];
|
|
13830
|
-
// ----- perfectionist/sort-
|
|
13831
|
-
type
|
|
13832
|
-
fallbackSort?: {
|
|
13833
|
-
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14326
|
+
})[]];
|
|
14327
|
+
// ----- perfectionist/sort-decorators -----
|
|
14328
|
+
type PerfectionistSortDecorators = {
|
|
14329
|
+
fallbackSort?: {
|
|
14330
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14331
|
+
order?: ("asc" | "desc");
|
|
14332
|
+
};
|
|
14333
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14334
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14335
|
+
ignoreCase?: boolean;
|
|
14336
|
+
alphabet?: string;
|
|
14337
|
+
locales?: (string | string[]);
|
|
14338
|
+
order?: ("asc" | "desc");
|
|
14339
|
+
customGroups?: ({
|
|
14340
|
+
fallbackSort?: {
|
|
14341
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14342
|
+
order?: ("asc" | "desc");
|
|
14343
|
+
};
|
|
14344
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14345
|
+
groupName: string;
|
|
14346
|
+
newlinesInside?: ("ignore" | number);
|
|
14347
|
+
order?: ("asc" | "desc");
|
|
14348
|
+
anyOf: [{
|
|
14349
|
+
elementNamePattern?: (({
|
|
14350
|
+
pattern: string;
|
|
14351
|
+
flags?: string;
|
|
14352
|
+
} | string)[] | ({
|
|
14353
|
+
pattern: string;
|
|
14354
|
+
flags?: string;
|
|
14355
|
+
} | string));
|
|
14356
|
+
}, ...({
|
|
14357
|
+
elementNamePattern?: (({
|
|
14358
|
+
pattern: string;
|
|
14359
|
+
flags?: string;
|
|
14360
|
+
} | string)[] | ({
|
|
14361
|
+
pattern: string;
|
|
14362
|
+
flags?: string;
|
|
14363
|
+
} | string));
|
|
14364
|
+
})[]];
|
|
14365
|
+
} | {
|
|
14366
|
+
fallbackSort?: {
|
|
14367
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14368
|
+
order?: ("asc" | "desc");
|
|
14369
|
+
};
|
|
14370
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14371
|
+
groupName: string;
|
|
14372
|
+
newlinesInside?: ("ignore" | number);
|
|
14373
|
+
order?: ("asc" | "desc");
|
|
14374
|
+
elementNamePattern?: (({
|
|
14375
|
+
pattern: string;
|
|
14376
|
+
flags?: string;
|
|
14377
|
+
} | string)[] | ({
|
|
14378
|
+
pattern: string;
|
|
14379
|
+
flags?: string;
|
|
14380
|
+
} | string));
|
|
14381
|
+
})[];
|
|
14382
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14383
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
14384
|
+
newlinesBetween: ("ignore" | number);
|
|
14385
|
+
} | {
|
|
14386
|
+
group: (string | [string, ...(string)[]]);
|
|
14387
|
+
fallbackSort?: {
|
|
14388
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14389
|
+
order?: ("asc" | "desc");
|
|
14390
|
+
};
|
|
14391
|
+
commentAbove?: string;
|
|
14392
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14393
|
+
newlinesInside?: ("ignore" | number);
|
|
14394
|
+
order?: ("asc" | "desc");
|
|
14395
|
+
})[];
|
|
14396
|
+
newlinesBetween?: ("ignore" | number);
|
|
14397
|
+
sortOnParameters?: boolean;
|
|
14398
|
+
sortOnProperties?: boolean;
|
|
14399
|
+
sortOnAccessors?: boolean;
|
|
14400
|
+
sortOnMethods?: boolean;
|
|
14401
|
+
sortOnClasses?: boolean;
|
|
14402
|
+
partitionByComment?: (boolean | (({
|
|
14403
|
+
pattern: string;
|
|
14404
|
+
flags?: string;
|
|
14405
|
+
} | string)[] | ({
|
|
14406
|
+
pattern: string;
|
|
14407
|
+
flags?: string;
|
|
14408
|
+
} | string)) | {
|
|
14409
|
+
block?: (boolean | (({
|
|
14410
|
+
pattern: string;
|
|
14411
|
+
flags?: string;
|
|
14412
|
+
} | string)[] | ({
|
|
14413
|
+
pattern: string;
|
|
14414
|
+
flags?: string;
|
|
14415
|
+
} | string)));
|
|
14416
|
+
line?: (boolean | (({
|
|
14417
|
+
pattern: string;
|
|
14418
|
+
flags?: string;
|
|
14419
|
+
} | string)[] | ({
|
|
14420
|
+
pattern: string;
|
|
14421
|
+
flags?: string;
|
|
14422
|
+
} | string)));
|
|
14423
|
+
});
|
|
14424
|
+
partitionByNewLine?: boolean;
|
|
14425
|
+
}[];
|
|
14426
|
+
// ----- perfectionist/sort-enums -----
|
|
14427
|
+
type PerfectionistSortEnums = {
|
|
14428
|
+
fallbackSort?: {
|
|
14429
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14430
|
+
order?: ("asc" | "desc");
|
|
14431
|
+
};
|
|
14432
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14433
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14434
|
+
ignoreCase?: boolean;
|
|
14435
|
+
alphabet?: string;
|
|
14436
|
+
locales?: (string | string[]);
|
|
14437
|
+
order?: ("asc" | "desc");
|
|
14438
|
+
customGroups?: ({
|
|
14439
|
+
fallbackSort?: {
|
|
14440
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14441
|
+
order?: ("asc" | "desc");
|
|
14442
|
+
};
|
|
14443
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14444
|
+
groupName: string;
|
|
14445
|
+
newlinesInside?: ("ignore" | number);
|
|
14446
|
+
order?: ("asc" | "desc");
|
|
14447
|
+
anyOf: [{
|
|
14448
|
+
elementNamePattern?: (({
|
|
14449
|
+
pattern: string;
|
|
14450
|
+
flags?: string;
|
|
14451
|
+
} | string)[] | ({
|
|
14452
|
+
pattern: string;
|
|
14453
|
+
flags?: string;
|
|
14454
|
+
} | string));
|
|
14455
|
+
elementValuePattern?: (({
|
|
14456
|
+
pattern: string;
|
|
14457
|
+
flags?: string;
|
|
14458
|
+
} | string)[] | ({
|
|
14459
|
+
pattern: string;
|
|
14460
|
+
flags?: string;
|
|
14461
|
+
} | string));
|
|
14462
|
+
}, ...({
|
|
14463
|
+
elementNamePattern?: (({
|
|
14464
|
+
pattern: string;
|
|
14465
|
+
flags?: string;
|
|
14466
|
+
} | string)[] | ({
|
|
14467
|
+
pattern: string;
|
|
14468
|
+
flags?: string;
|
|
14469
|
+
} | string));
|
|
14470
|
+
elementValuePattern?: (({
|
|
14471
|
+
pattern: string;
|
|
14472
|
+
flags?: string;
|
|
14473
|
+
} | string)[] | ({
|
|
14474
|
+
pattern: string;
|
|
14475
|
+
flags?: string;
|
|
14476
|
+
} | string));
|
|
14477
|
+
})[]];
|
|
14478
|
+
} | {
|
|
14479
|
+
fallbackSort?: {
|
|
14480
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14481
|
+
order?: ("asc" | "desc");
|
|
14482
|
+
};
|
|
14483
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14484
|
+
groupName: string;
|
|
14485
|
+
newlinesInside?: ("ignore" | number);
|
|
14486
|
+
order?: ("asc" | "desc");
|
|
14487
|
+
elementNamePattern?: (({
|
|
14488
|
+
pattern: string;
|
|
14489
|
+
flags?: string;
|
|
14490
|
+
} | string)[] | ({
|
|
14491
|
+
pattern: string;
|
|
14492
|
+
flags?: string;
|
|
14493
|
+
} | string));
|
|
14494
|
+
elementValuePattern?: (({
|
|
14495
|
+
pattern: string;
|
|
14496
|
+
flags?: string;
|
|
14497
|
+
} | string)[] | ({
|
|
14498
|
+
pattern: string;
|
|
14499
|
+
flags?: string;
|
|
14500
|
+
} | string));
|
|
14501
|
+
})[];
|
|
14502
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14503
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
14504
|
+
newlinesBetween: ("ignore" | number);
|
|
14505
|
+
} | {
|
|
14506
|
+
group: (string | [string, ...(string)[]]);
|
|
14507
|
+
fallbackSort?: {
|
|
14508
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14509
|
+
order?: ("asc" | "desc");
|
|
14510
|
+
};
|
|
14511
|
+
commentAbove?: string;
|
|
14512
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14513
|
+
newlinesInside?: ("ignore" | number);
|
|
14514
|
+
order?: ("asc" | "desc");
|
|
14515
|
+
})[];
|
|
14516
|
+
newlinesBetween?: ("ignore" | number);
|
|
14517
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
14518
|
+
useConfigurationIf?: {
|
|
14519
|
+
allNamesMatchPattern?: (({
|
|
14520
|
+
pattern: string;
|
|
14521
|
+
flags?: string;
|
|
14522
|
+
} | string)[] | ({
|
|
14523
|
+
pattern: string;
|
|
14524
|
+
flags?: string;
|
|
14525
|
+
} | string));
|
|
14526
|
+
matchesAstSelector?: string;
|
|
14527
|
+
};
|
|
14528
|
+
useExperimentalDependencyDetection?: boolean;
|
|
14529
|
+
partitionByComment?: (boolean | (({
|
|
14530
|
+
pattern: string;
|
|
14531
|
+
flags?: string;
|
|
14532
|
+
} | string)[] | ({
|
|
14533
|
+
pattern: string;
|
|
14534
|
+
flags?: string;
|
|
14535
|
+
} | string)) | {
|
|
14536
|
+
block?: (boolean | (({
|
|
14537
|
+
pattern: string;
|
|
14538
|
+
flags?: string;
|
|
14539
|
+
} | string)[] | ({
|
|
14540
|
+
pattern: string;
|
|
14541
|
+
flags?: string;
|
|
14542
|
+
} | string)));
|
|
14543
|
+
line?: (boolean | (({
|
|
14544
|
+
pattern: string;
|
|
14545
|
+
flags?: string;
|
|
14546
|
+
} | string)[] | ({
|
|
14547
|
+
pattern: string;
|
|
14548
|
+
flags?: string;
|
|
14549
|
+
} | string)));
|
|
14550
|
+
});
|
|
14551
|
+
partitionByNewLine?: boolean;
|
|
14552
|
+
}[];
|
|
14553
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
14554
|
+
type PerfectionistSortExportAttributes = {
|
|
14555
|
+
fallbackSort?: {
|
|
14556
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13834
14557
|
order?: ("asc" | "desc");
|
|
13835
14558
|
};
|
|
13836
14559
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -16163,6 +16886,212 @@ type RegexpUnicodeProperty = [] | [{
|
|
|
16163
16886
|
script?: ("short" | "long" | "ignore");
|
|
16164
16887
|
});
|
|
16165
16888
|
}];
|
|
16889
|
+
// ----- svelte/@typescript-eslint/no-unnecessary-condition -----
|
|
16890
|
+
type SvelteTypescriptEslintNoUnnecessaryCondition = [] | [{
|
|
16891
|
+
allowConstantLoopConditions?: boolean;
|
|
16892
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
16893
|
+
}];
|
|
16894
|
+
// ----- svelte/block-lang -----
|
|
16895
|
+
type SvelteBlockLang = [] | [{
|
|
16896
|
+
enforceScriptPresent?: boolean;
|
|
16897
|
+
enforceStylePresent?: boolean;
|
|
16898
|
+
script?: ((string | null) | [(string | null), ...((string | null))[]]);
|
|
16899
|
+
style?: ((string | null) | [(string | null), ...((string | null))[]]);
|
|
16900
|
+
}];
|
|
16901
|
+
// ----- svelte/button-has-type -----
|
|
16902
|
+
type SvelteButtonHasType = [] | [{
|
|
16903
|
+
button?: boolean;
|
|
16904
|
+
submit?: boolean;
|
|
16905
|
+
reset?: boolean;
|
|
16906
|
+
}];
|
|
16907
|
+
// ----- svelte/comment-directive -----
|
|
16908
|
+
type SvelteCommentDirective = [] | [{
|
|
16909
|
+
reportUnusedDisableDirectives?: boolean;
|
|
16910
|
+
}];
|
|
16911
|
+
// ----- svelte/consistent-selector-style -----
|
|
16912
|
+
type SvelteConsistentSelectorStyle = [] | [{
|
|
16913
|
+
checkGlobal?: boolean;
|
|
16914
|
+
style?: [] | [("class" | "id" | "type")] | [("class" | "id" | "type"), ("class" | "id" | "type")] | [("class" | "id" | "type"), ("class" | "id" | "type"), ("class" | "id" | "type")];
|
|
16915
|
+
}];
|
|
16916
|
+
// ----- svelte/first-attribute-linebreak -----
|
|
16917
|
+
type SvelteFirstAttributeLinebreak = [] | [{
|
|
16918
|
+
multiline?: ("below" | "beside");
|
|
16919
|
+
singleline?: ("below" | "beside");
|
|
16920
|
+
}];
|
|
16921
|
+
// ----- svelte/html-closing-bracket-new-line -----
|
|
16922
|
+
type SvelteHtmlClosingBracketNewLine = [] | [{
|
|
16923
|
+
singleline?: ("always" | "never");
|
|
16924
|
+
multiline?: ("always" | "never");
|
|
16925
|
+
selfClosingTag?: {
|
|
16926
|
+
singleline?: ("always" | "never");
|
|
16927
|
+
multiline?: ("always" | "never");
|
|
16928
|
+
};
|
|
16929
|
+
}];
|
|
16930
|
+
// ----- svelte/html-closing-bracket-spacing -----
|
|
16931
|
+
type SvelteHtmlClosingBracketSpacing = [] | [{
|
|
16932
|
+
startTag?: ("always" | "never" | "ignore");
|
|
16933
|
+
endTag?: ("always" | "never" | "ignore");
|
|
16934
|
+
selfClosingTag?: ("always" | "never" | "ignore");
|
|
16935
|
+
}];
|
|
16936
|
+
// ----- svelte/html-quotes -----
|
|
16937
|
+
type SvelteHtmlQuotes = [] | [{
|
|
16938
|
+
prefer?: ("double" | "single");
|
|
16939
|
+
dynamic?: {
|
|
16940
|
+
quoted?: boolean;
|
|
16941
|
+
avoidInvalidUnquotedInHTML?: boolean;
|
|
16942
|
+
};
|
|
16943
|
+
}];
|
|
16944
|
+
// ----- svelte/html-self-closing -----
|
|
16945
|
+
type SvelteHtmlSelfClosing = [] | [({
|
|
16946
|
+
void?: ("never" | "always" | "ignore");
|
|
16947
|
+
normal?: ("never" | "always" | "ignore");
|
|
16948
|
+
svg?: ("never" | "always" | "ignore");
|
|
16949
|
+
math?: ("never" | "always" | "ignore");
|
|
16950
|
+
component?: ("never" | "always" | "ignore");
|
|
16951
|
+
svelte?: ("never" | "always" | "ignore");
|
|
16952
|
+
} | ("all" | "html" | "none"))];
|
|
16953
|
+
// ----- svelte/indent -----
|
|
16954
|
+
type SvelteIndent = [] | [{
|
|
16955
|
+
indent?: (number | "tab");
|
|
16956
|
+
indentScript?: boolean;
|
|
16957
|
+
switchCase?: number;
|
|
16958
|
+
alignAttributesVertically?: boolean;
|
|
16959
|
+
ignoredNodes?: (string & {
|
|
16960
|
+
[k: string]: unknown | undefined;
|
|
16961
|
+
} & {
|
|
16962
|
+
[k: string]: unknown | undefined;
|
|
16963
|
+
})[];
|
|
16964
|
+
}];
|
|
16965
|
+
// ----- svelte/max-attributes-per-line -----
|
|
16966
|
+
type SvelteMaxAttributesPerLine = [] | [{
|
|
16967
|
+
multiline?: number;
|
|
16968
|
+
singleline?: number;
|
|
16969
|
+
}];
|
|
16970
|
+
// ----- svelte/max-lines-per-block -----
|
|
16971
|
+
type SvelteMaxLinesPerBlock = [] | [{
|
|
16972
|
+
script?: number;
|
|
16973
|
+
template?: number;
|
|
16974
|
+
style?: number;
|
|
16975
|
+
skipBlankLines?: boolean;
|
|
16976
|
+
skipComments?: boolean;
|
|
16977
|
+
}];
|
|
16978
|
+
// ----- svelte/mustache-spacing -----
|
|
16979
|
+
type SvelteMustacheSpacing = [] | [{
|
|
16980
|
+
textExpressions?: ("never" | "always");
|
|
16981
|
+
attributesAndProps?: ("never" | "always");
|
|
16982
|
+
directiveExpressions?: ("never" | "always");
|
|
16983
|
+
tags?: {
|
|
16984
|
+
openingBrace?: ("never" | "always");
|
|
16985
|
+
closingBrace?: ("never" | "always" | "always-after-expression");
|
|
16986
|
+
};
|
|
16987
|
+
}];
|
|
16988
|
+
// ----- svelte/no-inline-styles -----
|
|
16989
|
+
type SvelteNoInlineStyles = [] | [{
|
|
16990
|
+
allowTransitions?: boolean;
|
|
16991
|
+
}];
|
|
16992
|
+
// ----- svelte/no-inner-declarations -----
|
|
16993
|
+
type SvelteNoInnerDeclarations = [] | [("functions" | "both")] | [("functions" | "both"), {
|
|
16994
|
+
blockScopedFunctions?: ("allow" | "disallow");
|
|
16995
|
+
}];
|
|
16996
|
+
// ----- svelte/no-navigation-without-base -----
|
|
16997
|
+
type SvelteNoNavigationWithoutBase = [] | [{
|
|
16998
|
+
ignoreGoto?: boolean;
|
|
16999
|
+
ignoreLinks?: boolean;
|
|
17000
|
+
ignorePushState?: boolean;
|
|
17001
|
+
ignoreReplaceState?: boolean;
|
|
17002
|
+
}];
|
|
17003
|
+
// ----- svelte/no-navigation-without-resolve -----
|
|
17004
|
+
type SvelteNoNavigationWithoutResolve = [] | [{
|
|
17005
|
+
ignoreGoto?: boolean;
|
|
17006
|
+
ignoreLinks?: boolean;
|
|
17007
|
+
ignorePushState?: boolean;
|
|
17008
|
+
ignoreReplaceState?: boolean;
|
|
17009
|
+
}];
|
|
17010
|
+
// ----- svelte/no-reactive-reassign -----
|
|
17011
|
+
type SvelteNoReactiveReassign = [] | [{
|
|
17012
|
+
props?: boolean;
|
|
17013
|
+
}];
|
|
17014
|
+
// ----- svelte/no-restricted-html-elements -----
|
|
17015
|
+
type SvelteNoRestrictedHtmlElements = [(string | {
|
|
17016
|
+
elements?: [string, ...(string)[]];
|
|
17017
|
+
message?: string;
|
|
17018
|
+
}), ...((string | {
|
|
17019
|
+
elements?: [string, ...(string)[]];
|
|
17020
|
+
message?: string;
|
|
17021
|
+
}))[]];
|
|
17022
|
+
// ----- svelte/no-target-blank -----
|
|
17023
|
+
type SvelteNoTargetBlank = [] | [{
|
|
17024
|
+
allowReferrer?: boolean;
|
|
17025
|
+
enforceDynamicLinks?: ("always" | "never");
|
|
17026
|
+
}];
|
|
17027
|
+
// ----- svelte/no-trailing-spaces -----
|
|
17028
|
+
type SvelteNoTrailingSpaces = [] | [{
|
|
17029
|
+
skipBlankLines?: boolean;
|
|
17030
|
+
ignoreComments?: boolean;
|
|
17031
|
+
}];
|
|
17032
|
+
// ----- svelte/no-unknown-style-directive-property -----
|
|
17033
|
+
type SvelteNoUnknownStyleDirectiveProperty = [] | [{
|
|
17034
|
+
ignoreProperties?: [string, ...(string)[]];
|
|
17035
|
+
ignorePrefixed?: boolean;
|
|
17036
|
+
}];
|
|
17037
|
+
// ----- svelte/no-unnecessary-state-wrap -----
|
|
17038
|
+
type SvelteNoUnnecessaryStateWrap = [] | [{
|
|
17039
|
+
additionalReactiveClasses?: string[];
|
|
17040
|
+
allowReassign?: boolean;
|
|
17041
|
+
}];
|
|
17042
|
+
// ----- svelte/no-unused-class-name -----
|
|
17043
|
+
type SvelteNoUnusedClassName = [] | [{
|
|
17044
|
+
allowedClassNames?: string[];
|
|
17045
|
+
}];
|
|
17046
|
+
// ----- svelte/no-unused-props -----
|
|
17047
|
+
type SvelteNoUnusedProps = [] | [{
|
|
17048
|
+
checkImportedTypes?: boolean;
|
|
17049
|
+
ignoreTypePatterns?: string[];
|
|
17050
|
+
ignorePropertyPatterns?: string[];
|
|
17051
|
+
allowUnusedNestedProperties?: boolean;
|
|
17052
|
+
}];
|
|
17053
|
+
// ----- svelte/no-useless-mustaches -----
|
|
17054
|
+
type SvelteNoUselessMustaches = [] | [{
|
|
17055
|
+
ignoreIncludesComment?: boolean;
|
|
17056
|
+
ignoreStringEscape?: boolean;
|
|
17057
|
+
}];
|
|
17058
|
+
// ----- svelte/prefer-class-directive -----
|
|
17059
|
+
type SveltePreferClassDirective = [] | [{
|
|
17060
|
+
prefer?: ("always" | "empty");
|
|
17061
|
+
}];
|
|
17062
|
+
// ----- svelte/prefer-const -----
|
|
17063
|
+
type SveltePreferConst = [] | [{
|
|
17064
|
+
destructuring?: ("any" | "all");
|
|
17065
|
+
ignoreReadBeforeAssign?: boolean;
|
|
17066
|
+
excludedRunes?: string[];
|
|
17067
|
+
[k: string]: unknown | undefined;
|
|
17068
|
+
}];
|
|
17069
|
+
// ----- svelte/require-event-prefix -----
|
|
17070
|
+
type SvelteRequireEventPrefix = [] | [{
|
|
17071
|
+
checkAsyncFunctions?: boolean;
|
|
17072
|
+
}];
|
|
17073
|
+
// ----- svelte/shorthand-attribute -----
|
|
17074
|
+
type SvelteShorthandAttribute = [] | [{
|
|
17075
|
+
prefer?: ("always" | "never");
|
|
17076
|
+
}];
|
|
17077
|
+
// ----- svelte/shorthand-directive -----
|
|
17078
|
+
type SvelteShorthandDirective = [] | [{
|
|
17079
|
+
prefer?: ("always" | "never");
|
|
17080
|
+
}];
|
|
17081
|
+
// ----- svelte/sort-attributes -----
|
|
17082
|
+
type SvelteSortAttributes = [] | [{
|
|
17083
|
+
order?: (string | [string, ...(string)[]] | {
|
|
17084
|
+
match: (string | [string, ...(string)[]]);
|
|
17085
|
+
sort: ("alphabetical" | "ignore");
|
|
17086
|
+
})[];
|
|
17087
|
+
alphabetical?: boolean;
|
|
17088
|
+
}];
|
|
17089
|
+
// ----- svelte/spaced-html-comment -----
|
|
17090
|
+
type SvelteSpacedHtmlComment = [] | [("always" | "never")];
|
|
17091
|
+
// ----- svelte/valid-compile -----
|
|
17092
|
+
type SvelteValidCompile = [] | [{
|
|
17093
|
+
ignoreWarnings?: boolean;
|
|
17094
|
+
}];
|
|
16166
17095
|
// ----- tailwind-better/enforce-canonical-classes -----
|
|
16167
17096
|
type TailwindBetterEnforceCanonicalClasses = [] | [{
|
|
16168
17097
|
selectors?: ({
|
|
@@ -19534,6 +20463,12 @@ type UnicornNoNull = [] | [{
|
|
|
19534
20463
|
checkArguments?: boolean;
|
|
19535
20464
|
checkStrictEquality?: boolean;
|
|
19536
20465
|
}];
|
|
20466
|
+
// ----- unicorn/no-top-level-side-effects -----
|
|
20467
|
+
type UnicornNoTopLevelSideEffects = [] | [{
|
|
20468
|
+
allow?: {
|
|
20469
|
+
[k: string]: string[] | undefined;
|
|
20470
|
+
};
|
|
20471
|
+
}];
|
|
19537
20472
|
// ----- unicorn/no-typeof-undefined -----
|
|
19538
20473
|
type UnicornNoTypeofUndefined = [] | [{
|
|
19539
20474
|
checkGlobalVariables?: boolean;
|
|
@@ -19615,6 +20550,10 @@ type UnicornPreferContinue = [] | [{
|
|
|
19615
20550
|
maximumStatements?: number;
|
|
19616
20551
|
checkShortBodies?: boolean;
|
|
19617
20552
|
}];
|
|
20553
|
+
// ----- unicorn/prefer-default-parameters -----
|
|
20554
|
+
type UnicornPreferDefaultParameters = [] | [{
|
|
20555
|
+
checkFallbackExpressions?: boolean;
|
|
20556
|
+
}];
|
|
19618
20557
|
// ----- unicorn/prefer-dom-node-html-methods -----
|
|
19619
20558
|
type UnicornPreferDomNodeHtmlMethods = [] | [{
|
|
19620
20559
|
checkGetHTML?: boolean;
|
|
@@ -19696,7 +20635,10 @@ type UnicornPreferTemporal = [] | [{
|
|
|
19696
20635
|
checkMethods?: boolean;
|
|
19697
20636
|
}];
|
|
19698
20637
|
// ----- unicorn/prefer-ternary -----
|
|
19699
|
-
type UnicornPreferTernary = [] | [("always" | "only-single-line")]
|
|
20638
|
+
type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
|
|
20639
|
+
checkVaryingBase?: boolean;
|
|
20640
|
+
checkComputedMemberAccess?: boolean;
|
|
20641
|
+
}];
|
|
19700
20642
|
// ----- unicorn/relative-url-style -----
|
|
19701
20643
|
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
19702
20644
|
// ----- unicorn/require-css-escape -----
|
|
@@ -21466,9 +22408,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
21466
22408
|
markers?: string[];
|
|
21467
22409
|
}];
|
|
21468
22410
|
// Names of all the configs
|
|
21469
|
-
type ConfigNames = 'moso/eslint-comments' | 'moso/ignores/globals' | 'moso/ignores/gitignore' | 'moso/imports' | 'moso/imports/typescript' | 'moso/security' | 'moso/javascript' | 'moso/javascript/opinionated' | 'moso/node/setup' | 'moso/node/rules' | 'moso/promise' | 'moso/regexp' | 'moso/unicorn/setup' | 'moso/unicorn/rules' | 'moso/stylistic' | 'moso/baseline/setup' | 'moso/baseline/rules' | 'moso/baseline/type-aware-rules' | 'moso/astro/setup' | 'moso/astro/rules' | 'moso/e18e/rules' | 'moso/functional' | 'moso/functional/disable-type-aware' | 'moso/jsdoc/setup' | 'moso/jsdoc/rules' | 'moso/jsonc/setup' | 'moso/jsonc/rules' | 'moso/sort/package-json' | 'moso/sort/tsconfig-json' | 'moso/jsx/setup' | 'moso/jsx/rules' | 'moso/nextjs/setup' | 'moso/nextjs/rules' | 'moso/perfectionist' | 'moso/react/setup' | 'moso/react/rules' | 'moso/react/typescript' | 'moso/react/typescript/type-aware-rules' | 'moso/test/setup' | 'moso/test/rules' | 'moso/toml/setup' | 'moso/toml/rules' | 'moso/typescript/setup' | 'moso/typescript/rules' | 'moso/typescript/erasable-syntax' | 'moso/typescript/rules-type-aware' | 'moso/typescript/dts-overrides' | 'moso/typescript/test-overrides' | 'moso/typescript/javascript-overrides' | 'moso/vue/setup' | 'moso/vue/rules' | 'moso/tailwind' | 'moso/yaml/setup' | 'moso/yaml/rules' | 'moso/disables/allow-default-export' | 'moso/disables/bin' | 'moso/disables/cjs' | 'moso/disables/cli' | 'moso/disables/components' | 'moso/disables/config-files' | 'moso/disables/dts' | 'moso/disables/github' | 'moso/disables/node-frameworks' | 'moso/disables/node-typescript' | 'moso/disables/scripts' | 'moso/disables/tests' | 'moso/disables/typings';
|
|
21470
|
-
//#endregion
|
|
21471
|
-
//#region src/types.d.ts
|
|
22411
|
+
type ConfigNames = 'moso/eslint-comments' | 'moso/ignores/globals' | 'moso/ignores/gitignore' | 'moso/imports' | 'moso/imports/typescript' | 'moso/security' | 'moso/javascript' | 'moso/javascript/opinionated' | 'moso/node/setup' | 'moso/node/rules' | 'moso/promise' | 'moso/regexp' | 'moso/unicorn/setup' | 'moso/unicorn/rules' | 'moso/stylistic' | 'moso/baseline/setup' | 'moso/baseline/rules' | 'moso/baseline/type-aware-rules' | 'moso/astro/setup' | 'moso/astro/rules' | 'moso/e18e/rules' | 'moso/functional' | 'moso/functional/disable-type-aware' | 'moso/jsdoc/setup' | 'moso/jsdoc/rules' | 'moso/jsonc/setup' | 'moso/jsonc/rules' | 'moso/sort/package-json' | 'moso/sort/tsconfig-json' | 'moso/jsx/setup' | 'moso/jsx/rules' | 'moso/nextjs/setup' | 'moso/nextjs/rules' | 'moso/perfectionist' | 'moso/preact/setup' | 'moso/preact/rules' | 'moso/preact/typescript/type-aware-rules' | 'moso/react/setup' | 'moso/react/rules' | 'moso/react/typescript' | 'moso/react/typescript/type-aware-rules' | 'moso/test/setup' | 'moso/test/rules' | 'moso/toml/setup' | 'moso/toml/rules' | 'moso/typescript/setup' | 'moso/typescript/rules' | 'moso/typescript/erasable-syntax' | 'moso/typescript/rules-type-aware' | 'moso/typescript/svelte-overrides' | 'moso/typescript/dts-overrides' | 'moso/typescript/test-overrides' | 'moso/typescript/javascript-overrides' | 'moso/svelte/setup' | 'moso/svelte/rules' | 'moso/svelte/ignores' | 'moso/vue/setup' | 'moso/vue/rules' | 'moso/tailwind' | 'moso/yaml/setup' | 'moso/yaml/rules' | 'moso/disables/allow-default-export' | 'moso/disables/bin' | 'moso/disables/cjs' | 'moso/disables/cli' | 'moso/disables/components' | 'moso/disables/config-files' | 'moso/disables/dts' | 'moso/disables/github' | 'moso/disables/node-frameworks' | 'moso/disables/node-typescript' | 'moso/disables/scripts' | 'moso/disables/tests' | 'moso/disables/typings';
|
|
21472
22412
|
type Awaitable<T> = Promise<T> | T;
|
|
21473
22413
|
type ProjectMode = "application" | "library" | "none";
|
|
21474
22414
|
type ConfigOptions = {
|
|
@@ -21596,12 +22536,24 @@ type FrameworkOptions = {
|
|
|
21596
22536
|
* @default true
|
|
21597
22537
|
*/
|
|
21598
22538
|
node?: boolean | OptionsNode;
|
|
22539
|
+
/**
|
|
22540
|
+
* Enable Preact support.
|
|
22541
|
+
*
|
|
22542
|
+
* @default auto-detect based on the dependencies
|
|
22543
|
+
*/
|
|
22544
|
+
preact?: boolean | OptionsPreact;
|
|
21599
22545
|
/**
|
|
21600
22546
|
* Enable React support.
|
|
21601
22547
|
*
|
|
21602
22548
|
* @default auto-detect based on the dependencies
|
|
21603
22549
|
*/
|
|
21604
22550
|
react?: boolean | OptionsReact;
|
|
22551
|
+
/**
|
|
22552
|
+
* Enable Svelte/SvelteKit support.
|
|
22553
|
+
*
|
|
22554
|
+
* @default auto-detect based on the dependencies
|
|
22555
|
+
*/
|
|
22556
|
+
svelte?: boolean | OptionsSvelte;
|
|
21605
22557
|
/**
|
|
21606
22558
|
* Enable TailwindCSS support.
|
|
21607
22559
|
*
|
|
@@ -21775,6 +22727,18 @@ type OptionsHasDOM = {
|
|
|
21775
22727
|
*/
|
|
21776
22728
|
hasDOM?: boolean;
|
|
21777
22729
|
};
|
|
22730
|
+
type OptionsHasSvelte = {
|
|
22731
|
+
/**
|
|
22732
|
+
* Whether Svelte is enabled.
|
|
22733
|
+
* Resolved by the factory.
|
|
22734
|
+
*
|
|
22735
|
+
* When `true`, `.svelte.{js,ts}`-files needs to skip the `mut_`-prefix
|
|
22736
|
+
* that `functional`'s `no-let` relies on, as `let` is how Svelte declares reactive state.
|
|
22737
|
+
*
|
|
22738
|
+
* @default false
|
|
22739
|
+
*/
|
|
22740
|
+
hasSvelte?: boolean;
|
|
22741
|
+
};
|
|
21778
22742
|
type OptionsHasTypeScript = {
|
|
21779
22743
|
typescript?: boolean;
|
|
21780
22744
|
};
|
|
@@ -21911,6 +22875,21 @@ type OptionsOverrides = {
|
|
|
21911
22875
|
type OptionsPerfectionist = OptionsOverrides & {
|
|
21912
22876
|
perfectionist?: boolean;
|
|
21913
22877
|
};
|
|
22878
|
+
type OptionsPreact = OptionsOverrides & {
|
|
22879
|
+
/**
|
|
22880
|
+
* Enable accessibility support via JSX accessibility plugin.
|
|
22881
|
+
* Helps checking for a11y issues in `.jsx` and `.tsx`-files when enabled.
|
|
22882
|
+
*
|
|
22883
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
|
|
22884
|
+
*
|
|
22885
|
+
* @default false
|
|
22886
|
+
*/
|
|
22887
|
+
a11y?: boolean;
|
|
22888
|
+
/**
|
|
22889
|
+
* Overrides for accessibility rules.
|
|
22890
|
+
*/
|
|
22891
|
+
overridesA11y?: TypedFlatConfigItem["rules"];
|
|
22892
|
+
};
|
|
21914
22893
|
type OptionsProjectRoot = {
|
|
21915
22894
|
projectRoot?: Readonly<string>;
|
|
21916
22895
|
};
|
|
@@ -21965,6 +22944,7 @@ type OptionsSecurity = OptionsOverrides & {
|
|
|
21965
22944
|
type OptionsStylistic = {
|
|
21966
22945
|
stylistic?: boolean | StylisticConfig;
|
|
21967
22946
|
};
|
|
22947
|
+
type OptionsSvelte = OptionsOverrides;
|
|
21968
22948
|
type OptionsTailwind = OptionsOverrides & ({
|
|
21969
22949
|
/**
|
|
21970
22950
|
* Path to the entry file of the CSS-based Tailwind config.
|
|
@@ -22128,65 +23108,26 @@ type TypedFlatConfigItem = Omit<(ConfigWithExtends | Linter.Config), "ignores" |
|
|
|
22128
23108
|
*/
|
|
22129
23109
|
rules?: (RuleOptions & TSESLint.FlatConfig.Config["rules"]);
|
|
22130
23110
|
};
|
|
22131
|
-
//#endregion
|
|
22132
|
-
//#region src/configs/astro.d.ts
|
|
22133
23111
|
export declare const astro: (options: Readonly<OptionsAstro & OptionsLessOpinionated & OptionsOverrides & OptionsTypeScriptParserOptions & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22134
|
-
//#endregion
|
|
22135
|
-
//#region src/configs/baseline.d.ts
|
|
22136
23112
|
export declare const baseline: (options: Readonly<OptionsBaseline & OptionsHasDOM & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & Required<OptionsFiles & OptionsHasTypeScript>>) => Promise<TypedFlatConfigItem[]>;
|
|
22137
|
-
//#endregion
|
|
22138
|
-
//#region src/configs/disables.d.ts
|
|
22139
23113
|
export declare const disables: (functionalEnabled?: boolean) => Promise<TypedFlatConfigItem[]>;
|
|
22140
|
-
//#endregion
|
|
22141
|
-
//#region src/configs/e18e.d.ts
|
|
22142
23114
|
export declare const e18e: (options: Readonly<OptionsE18e & OptionsIsInEditor & OptionsLessOpinionated & OptionsMode>) => Promise<TypedFlatConfigItem[]>;
|
|
22143
|
-
//#endregion
|
|
22144
|
-
//#region src/configs/eslint-comments.d.ts
|
|
22145
23115
|
export declare const comments: (options: Readonly<OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|
|
22146
|
-
//#endregion
|
|
22147
|
-
//#region src/configs/functional.d.ts
|
|
22148
23116
|
export declare const functional: (options: Readonly<OptionsOverrides & Required<OptionsFunctional & OptionsMode & OptionsTypeScriptParserOptions & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22149
|
-
//#endregion
|
|
22150
|
-
//#region src/configs/ignores.d.ts
|
|
22151
23117
|
export declare const ignores: (options: Readonly<OptionsIgnores>) => Promise<TypedFlatConfigItem[]>;
|
|
22152
|
-
//#endregion
|
|
22153
|
-
//#region src/configs/imports.d.ts
|
|
22154
23118
|
export declare const imports: (options: Readonly<OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptParserOptions & Required<RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22155
|
-
//#endregion
|
|
22156
|
-
//#region src/configs/javascript.d.ts
|
|
22157
23119
|
export declare const javascript: (options: Readonly<OptionsIsInEditor & OptionsLessOpinionated & OptionsOverrides & OptionsPerfectionist & Required<OptionsFunctional>>) => Promise<TypedFlatConfigItem[]>;
|
|
22158
|
-
//#endregion
|
|
22159
|
-
//#region src/configs/jsdoc.d.ts
|
|
22160
23120
|
export declare const jsdoc: (options: Readonly<OptionsJSDoc & OptionsLessOpinionated & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22161
|
-
//#endregion
|
|
22162
|
-
//#region src/configs/jsonc.d.ts
|
|
22163
23121
|
export declare const jsonc: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22164
|
-
//#endregion
|
|
22165
|
-
//#region src/configs/jsx.d.ts
|
|
22166
23122
|
export declare const jsx: (options: Readonly<OptionsJSX & OptionsLessOpinionated & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22167
|
-
//#endregion
|
|
22168
|
-
//#region src/configs/nextjs.d.ts
|
|
22169
23123
|
export declare const nextjs: (options: Readonly<OptionsNextJS & Required<OptionsFiles>>) => Promise<TypedFlatConfigItem[]>;
|
|
22170
|
-
//#endregion
|
|
22171
|
-
//#region src/configs/node.d.ts
|
|
22172
23124
|
export declare const node: (options: Readonly<OptionsFiles & OptionsLessOpinionated & OptionsNode>) => Promise<TypedFlatConfigItem[]>;
|
|
22173
|
-
//#endregion
|
|
22174
|
-
//#region src/configs/perfectionist.d.ts
|
|
22175
23125
|
export declare const perfectionist: (options: Readonly<OptionsPerfectionist>) => Promise<TypedFlatConfigItem[]>;
|
|
22176
|
-
|
|
22177
|
-
//#region src/configs/promise.d.ts
|
|
23126
|
+
export declare const preact: (options: Readonly<OptionsLessOpinionated & OptionsPreact & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22178
23127
|
export declare const promise: (options: Readonly<OptionsHasTypeScript & OptionsLessOpinionated & OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|
|
22179
|
-
//#endregion
|
|
22180
|
-
//#region src/configs/react.d.ts
|
|
22181
23128
|
export declare const react: (options: Readonly<OptionsLessOpinionated & OptionsReact & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22182
|
-
//#endregion
|
|
22183
|
-
//#region src/configs/regexp.d.ts
|
|
22184
23129
|
export declare const regexp: (options: Readonly<OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|
|
22185
|
-
//#endregion
|
|
22186
|
-
//#region src/configs/security.d.ts
|
|
22187
23130
|
export declare const security: (options: Readonly<OptionsSecurity>) => Promise<TypedFlatConfigItem[]>;
|
|
22188
|
-
//#endregion
|
|
22189
|
-
//#region src/configs/sort.d.ts
|
|
22190
23131
|
/**
|
|
22191
23132
|
* Sort package.json
|
|
22192
23133
|
*
|
|
@@ -22199,33 +23140,16 @@ export declare const sortPackageJson: (options?: Readonly<OptionsOverrides>) =>
|
|
|
22199
23140
|
* Requires `jsonc` config
|
|
22200
23141
|
*/
|
|
22201
23142
|
export declare const sortTsconfig: (options?: Readonly<OptionsOverrides>) => TypedFlatConfigItem[];
|
|
22202
|
-
//#endregion
|
|
22203
|
-
//#region src/configs/stylistic.d.ts
|
|
22204
23143
|
export declare const StylisticConfigDefaults: Required<StylisticConfig>;
|
|
22205
23144
|
export declare const stylistic: (options: Readonly<OptionsLessOpinionated & OptionsOverrides & Required<OptionsHasTypeScript & StylisticConfig>>) => Promise<TypedFlatConfigItem[]>;
|
|
22206
|
-
|
|
22207
|
-
//#region src/configs/tailwind.d.ts
|
|
23145
|
+
export declare const svelte: (options: Readonly<OptionsLessOpinionated & OptionsSvelte & OptionsTypeScriptParserOptions & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22208
23146
|
export declare const tailwind: (options: Readonly<Required<RequiredOptionsStylistic & RequiredOptionsTailwind>>) => Promise<TypedFlatConfigItem[]>;
|
|
22209
|
-
//#endregion
|
|
22210
|
-
//#region src/configs/test.d.ts
|
|
22211
23147
|
export declare const test: (options: Readonly<OptionsIsInEditor & OptionsOverrides & Required<OptionsFiles & OptionsFunctional>>) => Promise<TypedFlatConfigItem[]>;
|
|
22212
|
-
//#endregion
|
|
22213
|
-
//#region src/configs/toml.d.ts
|
|
22214
23148
|
export declare const toml: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22215
|
-
|
|
22216
|
-
//#region src/configs/typescript.d.ts
|
|
22217
|
-
export declare const typescript: (options: Readonly<OptionsLessOpinionated & OptionsOverrides & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptWithTypes & Required<OptionsComponentExts & OptionsFiles & OptionsFunctional & OptionsMode & OptionsTypeScriptParserOptions>>) => Promise<TypedFlatConfigItem[]>;
|
|
22218
|
-
//#endregion
|
|
22219
|
-
//#region src/configs/unicorn.d.ts
|
|
23149
|
+
export declare const typescript: (options: Readonly<OptionsHasSvelte & OptionsLessOpinionated & OptionsOverrides & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptWithTypes & Required<OptionsComponentExts & OptionsFiles & OptionsFunctional & OptionsMode & OptionsTypeScriptParserOptions>>) => Promise<TypedFlatConfigItem[]>;
|
|
22220
23150
|
export declare const unicorn: (options: Readonly<OptionsHasDOM & OptionsLessOpinionated & OptionsOverrides & Required<OptionsFiles>>) => Promise<TypedFlatConfigItem[]>;
|
|
22221
|
-
//#endregion
|
|
22222
|
-
//#region src/configs/vue.d.ts
|
|
22223
23151
|
export declare const vue: (options: Readonly<OptionsOverrides & OptionsTypeScriptWithTypes & OptionsVue & Required<OptionsFiles & OptionsHasTypeScript & OptionsTypeScriptParserOptions & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22224
|
-
//#endregion
|
|
22225
|
-
//#region src/configs/yaml.d.ts
|
|
22226
23152
|
export declare const yaml: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
22227
|
-
//#endregion
|
|
22228
|
-
//#region src/factory.d.ts
|
|
22229
23153
|
/**
|
|
22230
23154
|
* Construct an array of ESLint flat config items.
|
|
22231
23155
|
*
|
|
@@ -22234,12 +23158,8 @@ export declare const yaml: (options: Readonly<OptionsOverrides & Required<Option
|
|
|
22234
23158
|
* @returns {Promise<TypedFlatConfigItem[]>} - The merged ESLint configurations
|
|
22235
23159
|
*/
|
|
22236
23160
|
export declare function moso(options?: Omit<TypedFlatConfigItem, "files" | "ignores"> & OptionsConfig, ...userConfigs: ReadonlyArray<Awaitable<Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>>): Promise<Linter.Config[]>;
|
|
22237
|
-
//#endregion
|
|
22238
|
-
//#region src/presets.d.ts
|
|
22239
23161
|
export declare const full: OptionsConfig;
|
|
22240
23162
|
export declare const off: OptionsConfig;
|
|
22241
|
-
//#endregion
|
|
22242
|
-
//#region src/utils.d.ts
|
|
22243
23163
|
/**
|
|
22244
23164
|
* Resolve and flatten any mix of (awaitable) config items or arrays
|
|
22245
23165
|
* into a single flat array of config items.
|
|
@@ -22348,5 +23268,4 @@ export declare const memoize: <T extends ESLint.Plugin>(plugin: T, key: string)
|
|
|
22348
23268
|
* @see https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/utils/inline-non-void-elements.json
|
|
22349
23269
|
*/
|
|
22350
23270
|
export declare const vueInlineElements: ReadonlyArray<string>;
|
|
22351
|
-
|
|
22352
|
-
export { type Awaitable, type ConfigNames, type ConfigOptions, type CoreOptions, type FrameworkOptions, type LanguageOptions, type OptionsAstro, type OptionsBaseline, type OptionsComponentExts, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFunctional, type OptionsHasDOM, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsJSDoc, type OptionsJSX, type OptionsLessOpinionated, type OptionsMode, type OptionsNextJS, type OptionsNode, type OptionsOverrides, type OptionsPerfectionist, type OptionsProjectRoot, type OptionsReact, type OptionsSecurity, type OptionsStylistic, type OptionsTailwind, type OptionsTypeScript, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsVue, type ProjectMode, type RequiredOptionsStylistic, type RequiredOptionsTailwind, type ResolvedOptions, type RuleOptions as Rules, type StyleOptions, type StylisticConfig, type TypedFlatConfigItem, moso as default };
|
|
23271
|
+
export { type Awaitable, type ConfigNames, type ConfigOptions, type CoreOptions, type FrameworkOptions, type LanguageOptions, type OptionsAstro, type OptionsBaseline, type OptionsComponentExts, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFunctional, type OptionsHasDOM, type OptionsHasSvelte, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsJSDoc, type OptionsJSX, type OptionsLessOpinionated, type OptionsMode, type OptionsNextJS, type OptionsNode, type OptionsOverrides, type OptionsPerfectionist, type OptionsPreact, type OptionsProjectRoot, type OptionsReact, type OptionsSecurity, type OptionsStylistic, type OptionsSvelte, type OptionsTailwind, type OptionsTypeScript, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsVue, type ProjectMode, type RequiredOptionsStylistic, type RequiredOptionsTailwind, type ResolvedOptions, type RuleOptions as Rules, type StyleOptions, type StylisticConfig, type TypedFlatConfigItem, moso as default };
|