@moso/eslint-config 3.4.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -1
- package/dist/index.d.mts +1729 -544
- package/dist/index.mjs +492 -266
- package/package.json +41 -27
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
|
|
@@ -1875,6 +1874,11 @@ interface RuleOptions {
|
|
|
1875
1874
|
* @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
|
|
1876
1875
|
*/
|
|
1877
1876
|
'@typescript-eslint/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Disallow assigning non-enum values to enum typed locations
|
|
1879
|
+
* @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
|
|
1880
|
+
*/
|
|
1881
|
+
'@typescript-eslint/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
|
|
1878
1882
|
/**
|
|
1879
1883
|
* Disallow comparing an enum value with a non-enum value
|
|
1880
1884
|
* @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
|
|
@@ -2428,26 +2432,32 @@ interface RuleOptions {
|
|
|
2428
2432
|
'astro/valid-compile'?: Linter.RuleEntry<[]>;
|
|
2429
2433
|
/**
|
|
2430
2434
|
* disallow Atomics.pause() usage
|
|
2435
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2431
2436
|
*/
|
|
2432
2437
|
'baseline-js/no-atomics-pause'?: Linter.RuleEntry<[]>;
|
|
2433
2438
|
/**
|
|
2434
2439
|
* disallow BigInt64Array/BigUint64Array usage
|
|
2440
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2435
2441
|
*/
|
|
2436
2442
|
'baseline-js/no-bigint64array'?: Linter.RuleEntry<[]>;
|
|
2437
2443
|
/**
|
|
2438
2444
|
* disallow Function#caller and Function#arguments
|
|
2445
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2439
2446
|
*/
|
|
2440
2447
|
'baseline-js/no-function-caller-arguments'?: Linter.RuleEntry<[]>;
|
|
2441
2448
|
/**
|
|
2442
2449
|
* disallow Math.sumPrecise() usage
|
|
2450
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2443
2451
|
*/
|
|
2444
2452
|
'baseline-js/no-math-sum-precise'?: Linter.RuleEntry<[]>;
|
|
2445
2453
|
/**
|
|
2446
2454
|
* disallow Temporal API usage
|
|
2455
|
+
* @see https://baselinejs.vercel.app/docs/config#standalone-rules
|
|
2447
2456
|
*/
|
|
2448
2457
|
'baseline-js/no-temporal'?: Linter.RuleEntry<[]>;
|
|
2449
2458
|
/**
|
|
2450
2459
|
* Enforce JS Baseline by delegating to underlying syntax rules (es-x)
|
|
2460
|
+
* @see https://baselinejs.vercel.app/docs/config#rule-options
|
|
2451
2461
|
*/
|
|
2452
2462
|
'baseline-js/use-baseline'?: Linter.RuleEntry<BaselineJsUseBaseline>;
|
|
2453
2463
|
/**
|
|
@@ -2790,7 +2800,7 @@ interface RuleOptions {
|
|
|
2790
2800
|
* Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
|
|
2791
2801
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
|
|
2792
2802
|
*/
|
|
2793
|
-
'jsdoc/check-syntax'?: Linter.RuleEntry<
|
|
2803
|
+
'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
|
|
2794
2804
|
/**
|
|
2795
2805
|
* Reports invalid block tag names.
|
|
2796
2806
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
@@ -3805,6 +3815,11 @@ interface RuleOptions {
|
|
|
3805
3815
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
3806
3816
|
*/
|
|
3807
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>;
|
|
3808
3823
|
/**
|
|
3809
3824
|
* Enforce sorted decorators.
|
|
3810
3825
|
* @see https://perfectionist.dev/rules/sort-decorators
|
|
@@ -4591,6 +4606,515 @@ interface RuleOptions {
|
|
|
4591
4606
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
|
|
4592
4607
|
*/
|
|
4593
4608
|
'regexp/use-ignore-case'?: Linter.RuleEntry<[]>;
|
|
4609
|
+
/**
|
|
4610
|
+
* Detects trojan source attacks that employ unicode bidi attacks to inject malicious code.
|
|
4611
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-bidi-characters.md
|
|
4612
|
+
*/
|
|
4613
|
+
'security/detect-bidi-characters'?: Linter.RuleEntry<[]>;
|
|
4614
|
+
/**
|
|
4615
|
+
* Detects calls to "buffer" with "noAssert" flag set.
|
|
4616
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-buffer-noassert.md
|
|
4617
|
+
*/
|
|
4618
|
+
'security/detect-buffer-noassert'?: Linter.RuleEntry<[]>;
|
|
4619
|
+
/**
|
|
4620
|
+
* Detects instances of "child_process" & non-literal "exec()" calls.
|
|
4621
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-child-process.md
|
|
4622
|
+
*/
|
|
4623
|
+
'security/detect-child-process'?: Linter.RuleEntry<[]>;
|
|
4624
|
+
/**
|
|
4625
|
+
* Detects "object.escapeMarkup = false", which can be used with some template engines to disable escaping of HTML entities.
|
|
4626
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-disable-mustache-escape.md
|
|
4627
|
+
*/
|
|
4628
|
+
'security/detect-disable-mustache-escape'?: Linter.RuleEntry<[]>;
|
|
4629
|
+
/**
|
|
4630
|
+
* Detects "eval(variable)" which can allow an attacker to run arbitrary code inside your process.
|
|
4631
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-eval-with-expression.md
|
|
4632
|
+
*/
|
|
4633
|
+
'security/detect-eval-with-expression'?: Linter.RuleEntry<[]>;
|
|
4634
|
+
/**
|
|
4635
|
+
* Detects invisible characters that have no visible glyph and can be used to hide malicious code.
|
|
4636
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-invisible-characters.md
|
|
4637
|
+
*/
|
|
4638
|
+
'security/detect-invisible-characters'?: Linter.RuleEntry<[]>;
|
|
4639
|
+
/**
|
|
4640
|
+
* Detects instances of new Buffer(argument) where argument is any non-literal value.
|
|
4641
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-new-buffer.md
|
|
4642
|
+
*/
|
|
4643
|
+
'security/detect-new-buffer'?: Linter.RuleEntry<[]>;
|
|
4644
|
+
/**
|
|
4645
|
+
* Detects Express "csrf" middleware setup before "method-override" middleware.
|
|
4646
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-no-csrf-before-method-override.md
|
|
4647
|
+
*/
|
|
4648
|
+
'security/detect-no-csrf-before-method-override'?: Linter.RuleEntry<[]>;
|
|
4649
|
+
/**
|
|
4650
|
+
* Detects variable in filename argument of "fs" calls, which might allow an attacker to access anything on your system.
|
|
4651
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-fs-filename.md
|
|
4652
|
+
*/
|
|
4653
|
+
'security/detect-non-literal-fs-filename'?: Linter.RuleEntry<[]>;
|
|
4654
|
+
/**
|
|
4655
|
+
* Detects "RegExp(variable)", which might allow an attacker to DOS your server with a long-running regular expression.
|
|
4656
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-regexp.md
|
|
4657
|
+
*/
|
|
4658
|
+
'security/detect-non-literal-regexp'?: Linter.RuleEntry<[]>;
|
|
4659
|
+
/**
|
|
4660
|
+
* Detects "require(variable)", which might allow an attacker to load and run arbitrary code, or access arbitrary files on disk.
|
|
4661
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-require.md
|
|
4662
|
+
*/
|
|
4663
|
+
'security/detect-non-literal-require'?: Linter.RuleEntry<[]>;
|
|
4664
|
+
/**
|
|
4665
|
+
* Detects "variable[key]" as a left- or right-hand assignment operand.
|
|
4666
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-object-injection.md
|
|
4667
|
+
*/
|
|
4668
|
+
'security/detect-object-injection'?: Linter.RuleEntry<[]>;
|
|
4669
|
+
/**
|
|
4670
|
+
* Detects insecure comparisons (`==`, `!=`, `!==` and `===`), which check input sequentially.
|
|
4671
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-possible-timing-attacks.md
|
|
4672
|
+
*/
|
|
4673
|
+
'security/detect-possible-timing-attacks'?: Linter.RuleEntry<[]>;
|
|
4674
|
+
/**
|
|
4675
|
+
* Detects if "pseudoRandomBytes()" is in use, which might not give you the randomness you need and expect.
|
|
4676
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-pseudoRandomBytes.md
|
|
4677
|
+
*/
|
|
4678
|
+
'security/detect-pseudoRandomBytes'?: Linter.RuleEntry<[]>;
|
|
4679
|
+
/**
|
|
4680
|
+
* Detects potentially unsafe regular expressions, which may take a very long time to run, blocking the event loop.
|
|
4681
|
+
* @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-unsafe-regex.md
|
|
4682
|
+
*/
|
|
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<[]>;
|
|
4594
5118
|
/**
|
|
4595
5119
|
* Enforce canonical class names.
|
|
4596
5120
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md
|
|
@@ -4789,1841 +5313,2002 @@ interface RuleOptions {
|
|
|
4789
5313
|
'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
|
|
4790
5314
|
/**
|
|
4791
5315
|
* Prefer better DOM traversal APIs.
|
|
4792
|
-
* @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
|
|
4793
5317
|
*/
|
|
4794
5318
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
4795
5319
|
/**
|
|
4796
5320
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
4797
|
-
* @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
|
|
4798
5322
|
* @deprecated
|
|
4799
5323
|
*/
|
|
4800
5324
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
4801
5325
|
/**
|
|
4802
5326
|
* Enforce a specific parameter name in catch clauses.
|
|
4803
|
-
* @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
|
|
4804
5328
|
*/
|
|
4805
5329
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4806
5330
|
/**
|
|
4807
5331
|
* Enforce consistent class references in static methods.
|
|
4808
|
-
* @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
|
|
4809
5333
|
*/
|
|
4810
5334
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
5335
|
+
/**
|
|
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
|
|
5338
|
+
*/
|
|
5339
|
+
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
4811
5340
|
/**
|
|
4812
5341
|
* Enforce better comment content.
|
|
4813
|
-
* @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
|
|
4814
5343
|
*/
|
|
4815
5344
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
4816
5345
|
/**
|
|
4817
5346
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
4818
|
-
* @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
|
|
4819
5348
|
*/
|
|
4820
5349
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
4821
5350
|
/**
|
|
4822
5351
|
* Enforce consistent assertion style with `node:assert`.
|
|
4823
|
-
* @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
|
|
4824
5353
|
*/
|
|
4825
5354
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
4826
5355
|
/**
|
|
4827
5356
|
* Enforce consistent naming for boolean names.
|
|
4828
|
-
* @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
|
|
4829
5358
|
*/
|
|
4830
5359
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
4831
5360
|
/**
|
|
4832
5361
|
* Enforce consistent class member order.
|
|
4833
|
-
* @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
|
|
4834
5363
|
*/
|
|
4835
5364
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
4836
5365
|
/**
|
|
4837
5366
|
* Enforce consistent spelling of compound words in identifiers.
|
|
4838
|
-
* @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
|
|
4839
5368
|
*/
|
|
4840
5369
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
4841
5370
|
/**
|
|
4842
5371
|
* Enforce consistent conditional object spread style.
|
|
4843
|
-
* @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
|
|
4844
5373
|
*/
|
|
4845
5374
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
4846
5375
|
/**
|
|
4847
5376
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4848
|
-
* @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
|
|
4849
5378
|
*/
|
|
4850
5379
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
4851
5380
|
/**
|
|
4852
5381
|
* Use destructured variables over properties.
|
|
4853
|
-
* @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
|
|
4854
5383
|
*/
|
|
4855
5384
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
4856
5385
|
/**
|
|
4857
5386
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4858
|
-
* @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
|
|
4859
5388
|
*/
|
|
4860
5389
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
4861
5390
|
/**
|
|
4862
5391
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4863
|
-
* @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
|
|
4864
5393
|
*/
|
|
4865
5394
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
4866
5395
|
/**
|
|
4867
5396
|
* Enforce consistent decorator position on exported classes.
|
|
4868
|
-
* @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
|
|
4869
5398
|
*/
|
|
4870
5399
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
4871
5400
|
/**
|
|
4872
5401
|
* Move function definitions to the highest possible scope.
|
|
4873
|
-
* @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
|
|
4874
5403
|
*/
|
|
4875
5404
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4876
5405
|
/**
|
|
4877
5406
|
* Enforce function syntax by role.
|
|
4878
|
-
* @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
|
|
4879
5408
|
*/
|
|
4880
5409
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
4881
5410
|
/**
|
|
4882
5411
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
4883
|
-
* @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
|
|
4884
5413
|
*/
|
|
4885
5414
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
4886
5415
|
/**
|
|
4887
5416
|
* Enforce consistent optional chaining for same-base member access.
|
|
4888
|
-
* @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
|
|
4889
5418
|
*/
|
|
4890
5419
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
4891
5420
|
/**
|
|
4892
5421
|
* Enforce consistent style for escaping `${` in template literals.
|
|
4893
|
-
* @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
|
|
4894
5423
|
*/
|
|
4895
5424
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
4896
5425
|
/**
|
|
4897
5426
|
* Enforce consistent labels on tuple type elements.
|
|
4898
|
-
* @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
|
|
4899
5428
|
*/
|
|
4900
5429
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
4901
5430
|
/**
|
|
4902
5431
|
* Enforce correct `Error` subclassing.
|
|
4903
|
-
* @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
|
|
4904
5433
|
*/
|
|
4905
5434
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
4906
5435
|
/**
|
|
4907
5436
|
* Enforce consistent default export declarations.
|
|
4908
|
-
* @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
|
|
4909
5438
|
*/
|
|
4910
5439
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
4911
5440
|
/**
|
|
4912
5441
|
* Enforce consistent style for DOM element dataset access.
|
|
4913
|
-
* @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
|
|
4914
5443
|
*/
|
|
4915
5444
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
4916
5445
|
/**
|
|
4917
5446
|
* Enforce no spaces between braces.
|
|
4918
|
-
* @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
|
|
4919
5448
|
*/
|
|
4920
5449
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
4921
5450
|
/**
|
|
4922
5451
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4923
|
-
* @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
|
|
4924
5453
|
*/
|
|
4925
5454
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
4926
5455
|
/**
|
|
4927
5456
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4928
|
-
* @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
|
|
4929
5458
|
*/
|
|
4930
5459
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
4931
5460
|
/**
|
|
4932
5461
|
* Add expiration conditions to TODO comments.
|
|
4933
|
-
* @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
|
|
4934
5463
|
*/
|
|
4935
5464
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
4936
5465
|
/**
|
|
4937
5466
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4938
|
-
* @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
|
|
4939
5468
|
*/
|
|
4940
5469
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
4941
5470
|
/**
|
|
4942
5471
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
4943
|
-
* @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
|
|
4944
5473
|
*/
|
|
4945
5474
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
4946
5475
|
/**
|
|
4947
5476
|
* Enforce a case style for filenames and directory names.
|
|
4948
|
-
* @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
|
|
4949
5478
|
*/
|
|
4950
5479
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
4951
5480
|
/**
|
|
4952
5481
|
* Require identifiers to match a specified regular expression.
|
|
4953
|
-
* @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
|
|
4954
5483
|
*/
|
|
4955
5484
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
4956
5485
|
/**
|
|
4957
5486
|
* Enforce specific import styles per module.
|
|
4958
|
-
* @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
|
|
4959
5488
|
*/
|
|
4960
5489
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5490
|
+
/**
|
|
5491
|
+
* Enforce consistent indentation in JSON and CSS.
|
|
5492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/indent.md
|
|
5493
|
+
*/
|
|
5494
|
+
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
4961
5495
|
/**
|
|
4962
5496
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
4963
|
-
* @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
|
|
4964
5498
|
*/
|
|
4965
5499
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
4966
5500
|
/**
|
|
4967
5501
|
* Enforce a consistent style for optional loop sources.
|
|
4968
|
-
* @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
|
|
4969
5503
|
*/
|
|
4970
5504
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
5505
|
+
/**
|
|
5506
|
+
* Enforce a case style for data keys.
|
|
5507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/key-name-casing.md
|
|
5508
|
+
*/
|
|
5509
|
+
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
4971
5510
|
/**
|
|
4972
5511
|
* Require or disallow logical assignment operator shorthand
|
|
4973
|
-
* @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
|
|
4974
5513
|
*/
|
|
4975
5514
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
4976
5515
|
/**
|
|
4977
5516
|
* Limit the depth of nested calls.
|
|
4978
|
-
* @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
|
|
4979
5518
|
*/
|
|
4980
5519
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
4981
5520
|
/**
|
|
4982
5521
|
* Enforce replacements for variable, property, and filenames.
|
|
4983
|
-
* @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
|
|
4984
5523
|
*/
|
|
4985
5524
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
4986
5525
|
/**
|
|
4987
5526
|
* Enforce correct use of `new` for builtin constructors.
|
|
4988
|
-
* @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
|
|
4989
5528
|
*/
|
|
4990
5529
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
4991
5530
|
/**
|
|
4992
5531
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4993
|
-
* @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
|
|
4994
5533
|
*/
|
|
4995
5534
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
4996
5535
|
/**
|
|
4997
5536
|
* Disallow recursive access to `this` within getters and setters.
|
|
4998
|
-
* @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
|
|
4999
5538
|
*/
|
|
5000
5539
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5001
5540
|
/**
|
|
5002
5541
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
5003
|
-
* @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
|
|
5004
5543
|
*/
|
|
5005
5544
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
5006
5545
|
/**
|
|
5007
5546
|
* Disallow anonymous functions and classes as the default export.
|
|
5008
|
-
* @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
|
|
5009
5548
|
*/
|
|
5010
5549
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5011
5550
|
/**
|
|
5012
5551
|
* Prevent passing a function reference directly to iterator methods.
|
|
5013
|
-
* @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
|
|
5014
5553
|
*/
|
|
5015
5554
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
5016
5555
|
/**
|
|
5017
5556
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
5018
|
-
* @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
|
|
5019
5558
|
*/
|
|
5020
5559
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
5021
5560
|
/**
|
|
5022
5561
|
* Disallow using reference values as `Array#fill()` values.
|
|
5023
|
-
* @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
|
|
5024
5563
|
*/
|
|
5025
5564
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
5026
5565
|
/**
|
|
5027
5566
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
5028
|
-
* @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
|
|
5029
5568
|
*/
|
|
5030
5569
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
5031
5570
|
/**
|
|
5032
5571
|
* Disallow front-of-array mutation.
|
|
5033
|
-
* @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
|
|
5034
5573
|
*/
|
|
5035
5574
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
5036
5575
|
/**
|
|
5037
5576
|
* Disallow using the `this` argument in array methods.
|
|
5038
|
-
* @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
|
|
5039
5578
|
*/
|
|
5040
5579
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5041
5580
|
/**
|
|
5042
5581
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5043
|
-
* @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
|
|
5044
5583
|
* @deprecated
|
|
5045
5584
|
*/
|
|
5046
5585
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5047
5586
|
/**
|
|
5048
5587
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5049
|
-
* @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
|
|
5050
5589
|
*/
|
|
5051
5590
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5052
5591
|
/**
|
|
5053
5592
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5054
|
-
* @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
|
|
5055
5594
|
*/
|
|
5056
5595
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5057
5596
|
/**
|
|
5058
5597
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5059
|
-
* @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
|
|
5060
5599
|
*/
|
|
5061
5600
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
5062
5601
|
/**
|
|
5063
5602
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
5064
|
-
* @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
|
|
5065
5604
|
*/
|
|
5066
5605
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
5067
5606
|
/**
|
|
5068
5607
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
5069
|
-
* @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
|
|
5070
5609
|
*/
|
|
5071
5610
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
5072
5611
|
/**
|
|
5073
|
-
* Disallow asterisk prefixes in
|
|
5074
|
-
* @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
|
|
5075
5614
|
*/
|
|
5076
5615
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
5077
5616
|
/**
|
|
5078
5617
|
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
5079
|
-
* @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
|
|
5080
5619
|
*/
|
|
5081
5620
|
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
5082
5621
|
/**
|
|
5083
5622
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
5084
|
-
* @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
|
|
5085
5624
|
*/
|
|
5086
5625
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
5087
5626
|
/**
|
|
5088
5627
|
* Disallow member access from await expression.
|
|
5089
|
-
* @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
|
|
5090
5629
|
*/
|
|
5091
5630
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5092
5631
|
/**
|
|
5093
5632
|
* Disallow using `await` in `Promise` method parameters.
|
|
5094
|
-
* @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
|
|
5095
5634
|
*/
|
|
5096
5635
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5097
5636
|
/**
|
|
5098
5637
|
* Disallow barrel files.
|
|
5099
|
-
* @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
|
|
5100
5639
|
*/
|
|
5101
5640
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
5102
5641
|
/**
|
|
5103
5642
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
5104
|
-
* @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
|
|
5105
5644
|
*/
|
|
5106
5645
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
5107
5646
|
/**
|
|
5108
5647
|
* Disallow boolean-returning sort comparators.
|
|
5109
|
-
* @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
|
|
5110
5649
|
*/
|
|
5111
5650
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
5112
5651
|
/**
|
|
5113
5652
|
* Disallow `break` and optionally `continue` in nested loops and switches inside loops.
|
|
5114
|
-
* @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
|
|
5115
5654
|
*/
|
|
5116
5655
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
5117
5656
|
/**
|
|
5118
5657
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
5119
|
-
* @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
|
|
5120
5659
|
*/
|
|
5121
5660
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
5122
5661
|
/**
|
|
5123
5662
|
* Disallow chained comparisons such as `a < b < c`.
|
|
5124
|
-
* @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
|
|
5125
5664
|
*/
|
|
5126
5665
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
5127
5666
|
/**
|
|
5128
5667
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
5129
|
-
* @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
|
|
5130
5669
|
*/
|
|
5131
5670
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
5132
5671
|
/**
|
|
5133
5672
|
* Disallow dynamic object property existence checks.
|
|
5134
|
-
* @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
|
|
5135
5674
|
*/
|
|
5136
5675
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
5676
|
+
/**
|
|
5677
|
+
* Disallow conflicting CSS query and HTML form constraints.
|
|
5678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-conflicting-constraints.md
|
|
5679
|
+
*/
|
|
5680
|
+
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
5137
5681
|
/**
|
|
5138
5682
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
5139
|
-
* @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
|
|
5140
5684
|
*/
|
|
5141
5685
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
5142
5686
|
/**
|
|
5143
5687
|
* Disallow confusing uses of `Array#with()`.
|
|
5144
|
-
* @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
|
|
5145
5689
|
*/
|
|
5146
5690
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
5147
5691
|
/**
|
|
5148
5692
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5149
|
-
* @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
|
|
5150
5694
|
*/
|
|
5151
5695
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5152
5696
|
/**
|
|
5153
5697
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
5154
|
-
* @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
|
|
5155
5699
|
*/
|
|
5156
5700
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
5157
5701
|
/**
|
|
5158
5702
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
5159
|
-
* @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
|
|
5160
5704
|
*/
|
|
5161
5705
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
5162
5706
|
/**
|
|
5163
|
-
*
|
|
5164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5707
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
5708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
5709
|
+
* @deprecated
|
|
5165
5710
|
*/
|
|
5166
|
-
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<
|
|
5711
|
+
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
5167
5712
|
/**
|
|
5168
5713
|
* Do not use `document.cookie` directly.
|
|
5169
|
-
* @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
|
|
5170
5715
|
*/
|
|
5171
5716
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5172
5717
|
/**
|
|
5173
5718
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
5174
|
-
* @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
|
|
5175
5720
|
*/
|
|
5176
5721
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
5177
5722
|
/**
|
|
5178
|
-
*
|
|
5179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5723
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
5724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
5725
|
+
* @deprecated
|
|
5180
5726
|
*/
|
|
5181
5727
|
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
5182
5728
|
/**
|
|
5183
|
-
*
|
|
5184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5729
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
5730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
5731
|
+
* @deprecated
|
|
5185
5732
|
*/
|
|
5186
5733
|
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
5187
5734
|
/**
|
|
5188
5735
|
* Disallow duplicate adjacent branches in if chains.
|
|
5189
|
-
* @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
|
|
5190
5737
|
*/
|
|
5191
5738
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
5192
5739
|
/**
|
|
5193
5740
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
5194
|
-
* @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
|
|
5195
5742
|
*/
|
|
5196
5743
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
5197
5744
|
/**
|
|
5198
5745
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
5199
|
-
* @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
|
|
5200
5747
|
*/
|
|
5201
5748
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
5202
5749
|
/**
|
|
5203
5750
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
5204
|
-
* @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
|
|
5205
5752
|
*/
|
|
5206
5753
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
5207
5754
|
/**
|
|
5208
5755
|
* Disallow empty files.
|
|
5209
|
-
* @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
|
|
5210
5757
|
*/
|
|
5211
5758
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
5759
|
+
/**
|
|
5760
|
+
* Disallow empty link text in Markdown.
|
|
5761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-link-text.md
|
|
5762
|
+
*/
|
|
5763
|
+
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
5212
5764
|
/**
|
|
5213
5765
|
* Disallow assigning to built-in error properties.
|
|
5214
|
-
* @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
|
|
5215
5767
|
*/
|
|
5216
5768
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
5217
5769
|
/**
|
|
5218
5770
|
* Disallow exports in scripts.
|
|
5219
|
-
* @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
|
|
5220
5772
|
*/
|
|
5221
5773
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
5222
5774
|
/**
|
|
5223
5775
|
* Prefer `for…of` over the `forEach` method.
|
|
5224
|
-
* @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
|
|
5225
5777
|
*/
|
|
5226
5778
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
5227
5779
|
/**
|
|
5228
5780
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5229
|
-
* @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
|
|
5230
5782
|
*/
|
|
5231
5783
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5232
5784
|
/**
|
|
5233
5785
|
* Disallow assigning properties on the global object.
|
|
5234
|
-
* @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
|
|
5235
5787
|
*/
|
|
5236
5788
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
5237
5789
|
/**
|
|
5238
|
-
* Replaced by `unicorn/prefer-unicode-code-point-escapes
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5790
|
+
* Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
5791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
5240
5792
|
* @deprecated
|
|
5241
5793
|
*/
|
|
5242
5794
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5243
5795
|
/**
|
|
5244
|
-
* Disallow immediate mutation after
|
|
5245
|
-
* @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
|
|
5246
5798
|
*/
|
|
5247
5799
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
5248
5800
|
/**
|
|
5249
5801
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
5250
|
-
* @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
|
|
5251
5803
|
*/
|
|
5252
5804
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
5805
|
+
/**
|
|
5806
|
+
* Disallow class accessors that hide an inherited getter or setter.
|
|
5807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
5808
|
+
*/
|
|
5809
|
+
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
5253
5810
|
/**
|
|
5254
5811
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
5255
|
-
* @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
|
|
5256
5813
|
*/
|
|
5257
5814
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
5258
5815
|
/**
|
|
5259
5816
|
* Disallow incorrect template literal interpolation syntax.
|
|
5260
|
-
* @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
|
|
5261
5818
|
*/
|
|
5262
5819
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
5820
|
+
/**
|
|
5821
|
+
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
5822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
5823
|
+
*/
|
|
5824
|
+
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
5263
5825
|
/**
|
|
5264
5826
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5265
|
-
* @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
|
|
5266
5828
|
* @deprecated
|
|
5267
5829
|
*/
|
|
5268
5830
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5269
5831
|
/**
|
|
5270
5832
|
* Disallow `instanceof` with built-in objects
|
|
5271
|
-
* @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
|
|
5272
5834
|
*/
|
|
5273
5835
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5274
5836
|
/**
|
|
5275
5837
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
5276
|
-
* @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
|
|
5277
5839
|
*/
|
|
5278
5840
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
5841
|
+
/**
|
|
5842
|
+
* Disallow invalid values for HTML boolean attributes.
|
|
5843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
5844
|
+
*/
|
|
5845
|
+
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
5279
5846
|
/**
|
|
5280
5847
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
5281
|
-
* @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
|
|
5282
5849
|
*/
|
|
5283
5850
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
5851
|
+
/**
|
|
5852
|
+
* Disallow invalid DOM tokens.
|
|
5853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-dom-token.md
|
|
5854
|
+
*/
|
|
5855
|
+
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
5284
5856
|
/**
|
|
5285
5857
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5286
|
-
* @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
|
|
5287
5859
|
*/
|
|
5288
5860
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5289
5861
|
/**
|
|
5290
5862
|
* Disallow invalid `accept` values on file inputs.
|
|
5291
|
-
* @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
|
|
5292
5864
|
*/
|
|
5293
5865
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
5294
5866
|
/**
|
|
5295
|
-
* Disallow
|
|
5296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5867
|
+
* Disallow invalid subresource integrity metadata.
|
|
5868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-integrity.md
|
|
5869
|
+
*/
|
|
5870
|
+
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
5871
|
+
/**
|
|
5872
|
+
* Disallow invalid or ignored Intl options.
|
|
5873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-intl-options.md
|
|
5874
|
+
*/
|
|
5875
|
+
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
5876
|
+
/**
|
|
5877
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
5878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
5879
|
+
* @deprecated
|
|
5297
5880
|
*/
|
|
5298
5881
|
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
5882
|
+
/**
|
|
5883
|
+
* Disallow invalid property descriptors.
|
|
5884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
5885
|
+
*/
|
|
5886
|
+
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
5299
5887
|
/**
|
|
5300
5888
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5301
|
-
* @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
|
|
5302
5890
|
*/
|
|
5303
5891
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5892
|
+
/**
|
|
5893
|
+
* Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
|
|
5894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-response-options.md
|
|
5895
|
+
*/
|
|
5896
|
+
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
5897
|
+
/**
|
|
5898
|
+
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
5899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-style-set-property.md
|
|
5900
|
+
*/
|
|
5901
|
+
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
5902
|
+
/**
|
|
5903
|
+
* Disallow statically known invalid Temporal arithmetic.
|
|
5904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
5905
|
+
*/
|
|
5906
|
+
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
5907
|
+
/**
|
|
5908
|
+
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
5909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
5910
|
+
*/
|
|
5911
|
+
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
5304
5912
|
/**
|
|
5305
5913
|
* Disallow invalid implementations of well-known symbol methods.
|
|
5306
|
-
* @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
|
|
5307
5915
|
*/
|
|
5308
5916
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
5917
|
+
/**
|
|
5918
|
+
* Disallow `javascript:` URLs in Markdown.
|
|
5919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-javascript-url.md
|
|
5920
|
+
*/
|
|
5921
|
+
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
5309
5922
|
/**
|
|
5310
5923
|
* Disallow identifiers starting with `new` or `class`.
|
|
5311
|
-
* @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
|
|
5312
5925
|
*/
|
|
5313
5926
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5314
5927
|
/**
|
|
5315
5928
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
5316
|
-
* @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
|
|
5317
5930
|
*/
|
|
5318
5931
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
5319
5932
|
/**
|
|
5320
5933
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
5321
|
-
* @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
|
|
5322
5935
|
*/
|
|
5323
5936
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
5937
|
+
/**
|
|
5938
|
+
* Disallow empty lines at the beginning of a file.
|
|
5939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-leading-empty-lines.md
|
|
5940
|
+
*/
|
|
5941
|
+
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
5324
5942
|
/**
|
|
5325
5943
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5326
|
-
* @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
|
|
5327
5945
|
* @deprecated
|
|
5328
5946
|
*/
|
|
5329
5947
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5330
5948
|
/**
|
|
5331
5949
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5332
|
-
* @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
|
|
5333
5951
|
*/
|
|
5334
5952
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5335
5953
|
/**
|
|
5336
5954
|
* Disallow mutating a loop iterable during iteration.
|
|
5337
|
-
* @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
|
|
5338
5956
|
*/
|
|
5339
5957
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
5958
|
+
/**
|
|
5959
|
+
* Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
|
|
5960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loss-of-precision.md
|
|
5961
|
+
*/
|
|
5962
|
+
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
5340
5963
|
/**
|
|
5341
5964
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5342
|
-
* @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
|
|
5343
5966
|
*/
|
|
5344
5967
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5345
5968
|
/**
|
|
5346
5969
|
* Disallow manually wrapped comments.
|
|
5347
|
-
* @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
|
|
5348
5971
|
*/
|
|
5349
5972
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
5350
5973
|
/**
|
|
5351
5974
|
* Disallow checking a Map key before accessing a different key.
|
|
5352
|
-
* @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
|
|
5353
5976
|
*/
|
|
5354
5977
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
5355
5978
|
/**
|
|
5356
5979
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
5357
|
-
* @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
|
|
5358
5981
|
*/
|
|
5359
5982
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
5360
5983
|
/**
|
|
5361
5984
|
* Disallow references to missing local resources.
|
|
5362
|
-
* @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
|
|
5363
5986
|
*/
|
|
5364
5987
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
5365
5988
|
/**
|
|
5366
5989
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
5367
|
-
* @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
|
|
5368
5991
|
*/
|
|
5369
5992
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
5370
5993
|
/**
|
|
5371
5994
|
* Disallow named usage of default import and export.
|
|
5372
|
-
* @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
|
|
5373
5996
|
*/
|
|
5374
5997
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5375
5998
|
/**
|
|
5376
5999
|
* Disallow negated array predicate calls.
|
|
5377
|
-
* @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
|
|
5378
6001
|
*/
|
|
5379
6002
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
5380
6003
|
/**
|
|
5381
6004
|
* Disallow negated comparisons.
|
|
5382
|
-
* @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
|
|
5383
6006
|
*/
|
|
5384
6007
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
5385
6008
|
/**
|
|
5386
6009
|
* Disallow negated conditions.
|
|
5387
|
-
* @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
|
|
5388
6011
|
*/
|
|
5389
6012
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5390
6013
|
/**
|
|
5391
6014
|
* Disallow negated expression in equality check.
|
|
5392
|
-
* @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
|
|
5393
6016
|
*/
|
|
5394
6017
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5395
6018
|
/**
|
|
5396
6019
|
* Disallow nested ternary expressions.
|
|
5397
|
-
* @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
|
|
5398
6021
|
*/
|
|
5399
6022
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5400
6023
|
/**
|
|
5401
|
-
*
|
|
5402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6024
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
6025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
6026
|
+
* @deprecated
|
|
5403
6027
|
*/
|
|
5404
6028
|
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
5405
6029
|
/**
|
|
5406
6030
|
* Disallow `new Array()`.
|
|
5407
|
-
* @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
|
|
5408
6032
|
*/
|
|
5409
6033
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5410
6034
|
/**
|
|
5411
6035
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5412
|
-
* @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
|
|
5413
6037
|
*/
|
|
5414
6038
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5415
6039
|
/**
|
|
5416
6040
|
* Disallow non-function values with function-style verb prefixes.
|
|
5417
|
-
* @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
|
|
5418
6042
|
*/
|
|
5419
6043
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
5420
6044
|
/**
|
|
5421
6045
|
* Disallow non-standard properties on built-in objects.
|
|
5422
|
-
* @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
|
|
5423
6047
|
*/
|
|
5424
6048
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
5425
6049
|
/**
|
|
5426
6050
|
* Disallow the use of the `null` literal.
|
|
5427
|
-
* @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
|
|
5428
6052
|
*/
|
|
5429
6053
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5430
6054
|
/**
|
|
5431
6055
|
* Disallow the use of objects as default parameters.
|
|
5432
|
-
* @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
|
|
5433
6057
|
*/
|
|
5434
6058
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5435
6059
|
/**
|
|
5436
6060
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
5437
|
-
* @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
|
|
5438
6062
|
*/
|
|
5439
6063
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
5440
6064
|
/**
|
|
5441
6065
|
* Disallow optional chaining on undeclared variables.
|
|
5442
|
-
* @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
|
|
5443
6067
|
*/
|
|
5444
6068
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
6069
|
+
/**
|
|
6070
|
+
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
6071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
6072
|
+
*/
|
|
6073
|
+
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
5445
6074
|
/**
|
|
5446
6075
|
* Disallow `process.exit()`.
|
|
5447
|
-
* @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
|
|
5448
6077
|
*/
|
|
5449
6078
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5450
6079
|
/**
|
|
5451
6080
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
5452
|
-
* @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
|
|
5453
6082
|
*/
|
|
5454
6083
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
5455
6084
|
/**
|
|
5456
|
-
*
|
|
5457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6085
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
6086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
6087
|
+
* @deprecated
|
|
5458
6088
|
*/
|
|
5459
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<[]>;
|
|
5460
6095
|
/**
|
|
5461
6096
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
5462
|
-
* @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
|
|
5463
6098
|
*/
|
|
5464
6099
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
5465
6100
|
/**
|
|
5466
6101
|
* Disallow selector syntax in DOM names.
|
|
5467
|
-
* @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
|
|
5468
6103
|
*/
|
|
5469
6104
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
5470
6105
|
/**
|
|
5471
6106
|
* Disallow shorthand properties that override related longhand properties.
|
|
5472
|
-
* @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
|
|
5473
6108
|
*/
|
|
5474
6109
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
5475
6110
|
/**
|
|
5476
6111
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5477
|
-
* @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
|
|
5478
6113
|
*/
|
|
5479
6114
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5480
6115
|
/**
|
|
5481
6116
|
* Disallow classes that only have static members.
|
|
5482
|
-
* @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
|
|
5483
6118
|
*/
|
|
5484
6119
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5485
6120
|
/**
|
|
5486
6121
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
5487
|
-
* @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
|
|
5488
6123
|
*/
|
|
5489
6124
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
5490
6125
|
/**
|
|
5491
6126
|
* Disallow `then` property.
|
|
5492
|
-
* @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
|
|
5493
6128
|
*/
|
|
5494
6129
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5495
6130
|
/**
|
|
5496
6131
|
* Disallow assigning `this` to a variable.
|
|
5497
|
-
* @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
|
|
5498
6133
|
*/
|
|
5499
6134
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5500
6135
|
/**
|
|
5501
6136
|
* Disallow `this` outside of classes.
|
|
5502
|
-
* @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
|
|
5503
6138
|
*/
|
|
5504
6139
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
5505
6140
|
/**
|
|
5506
6141
|
* Disallow assigning to top-level variables from inside functions.
|
|
5507
|
-
* @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
|
|
5508
6143
|
*/
|
|
5509
6144
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
5510
6145
|
/**
|
|
5511
6146
|
* Disallow top-level side effects in exported modules.
|
|
5512
|
-
* @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
|
|
5513
6148
|
*/
|
|
5514
|
-
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<
|
|
6149
|
+
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
|
|
5515
6150
|
/**
|
|
5516
6151
|
* Disallow `all` as a transition property.
|
|
5517
|
-
* @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
|
|
5518
6153
|
*/
|
|
5519
6154
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
5520
6155
|
/**
|
|
5521
6156
|
* Disallow comparing `undefined` using `typeof`.
|
|
5522
|
-
* @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
|
|
5523
6158
|
*/
|
|
5524
6159
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5525
6160
|
/**
|
|
5526
6161
|
* Disallow referencing methods without calling them.
|
|
5527
|
-
* @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
|
|
5528
6163
|
*/
|
|
5529
6164
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
5530
6165
|
/**
|
|
5531
6166
|
* Require class members to be declared.
|
|
5532
|
-
* @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
|
|
5533
6168
|
*/
|
|
5534
6169
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
5535
6170
|
/**
|
|
5536
|
-
*
|
|
5537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6171
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
6172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
6173
|
+
* @deprecated
|
|
5538
6174
|
*/
|
|
5539
6175
|
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
5540
6176
|
/**
|
|
5541
|
-
*
|
|
5542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6177
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
6178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
6179
|
+
* @deprecated
|
|
5543
6180
|
*/
|
|
5544
|
-
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<
|
|
6181
|
+
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
5545
6182
|
/**
|
|
5546
6183
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5547
|
-
* @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
|
|
5548
6185
|
*/
|
|
5549
6186
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5550
6187
|
/**
|
|
5551
|
-
* Disallow `Array#flatMap()
|
|
5552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6188
|
+
* Disallow unnecessary use of `Array#flatMap()`.
|
|
6189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
5553
6190
|
*/
|
|
5554
6191
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5555
6192
|
/**
|
|
5556
6193
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5557
|
-
* @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
|
|
5558
6195
|
*/
|
|
5559
6196
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5560
6197
|
/**
|
|
5561
6198
|
* Disallow awaiting non-promise values.
|
|
5562
|
-
* @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
|
|
5563
6200
|
*/
|
|
5564
6201
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5565
6202
|
/**
|
|
5566
6203
|
* Disallow unnecessary comparisons against boolean literals.
|
|
5567
|
-
* @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
|
|
5568
6205
|
*/
|
|
5569
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<[]>;
|
|
5570
6212
|
/**
|
|
5571
6213
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
5572
|
-
* @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
|
|
5573
6215
|
*/
|
|
5574
6216
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5575
6217
|
/**
|
|
5576
6218
|
* Disallow unnecessary `globalThis` references.
|
|
5577
|
-
* @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
|
|
5578
6220
|
*/
|
|
5579
6221
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
5580
6222
|
/**
|
|
5581
6223
|
* Disallow unnecessary nested ternary expressions.
|
|
5582
|
-
* @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
|
|
5583
6225
|
*/
|
|
5584
6226
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
6227
|
+
/**
|
|
6228
|
+
* Disallow parameters that receive the same value at every call.
|
|
6229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-parameters.md
|
|
6230
|
+
*/
|
|
6231
|
+
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
5585
6232
|
/**
|
|
5586
6233
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5587
|
-
* @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
|
|
5588
6235
|
*/
|
|
5589
6236
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5590
6237
|
/**
|
|
5591
6238
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5592
|
-
* @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
|
|
5593
6240
|
*/
|
|
5594
6241
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5595
6242
|
/**
|
|
5596
6243
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
5597
|
-
* @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
|
|
5598
6245
|
*/
|
|
5599
6246
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
5600
6247
|
/**
|
|
5601
6248
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
5602
|
-
* @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
|
|
5603
6250
|
*/
|
|
5604
6251
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
5605
6252
|
/**
|
|
5606
6253
|
* Disallow unreadable array destructuring.
|
|
5607
|
-
* @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
|
|
5608
6255
|
*/
|
|
5609
6256
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
5610
6257
|
/**
|
|
5611
6258
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
5612
|
-
* @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
|
|
5613
6260
|
*/
|
|
5614
6261
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
5615
6262
|
/**
|
|
5616
6263
|
* Disallow unreadable IIFEs.
|
|
5617
|
-
* @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
|
|
5618
6265
|
*/
|
|
5619
6266
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5620
6267
|
/**
|
|
5621
6268
|
* Disallow unreadable `new` expressions.
|
|
5622
|
-
* @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
|
|
5623
6270
|
*/
|
|
5624
6271
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
5625
6272
|
/**
|
|
5626
6273
|
* Disallow unreadable object destructuring.
|
|
5627
|
-
* @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
|
|
5628
6275
|
*/
|
|
5629
6276
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
5630
6277
|
/**
|
|
5631
6278
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
5632
|
-
* @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
|
|
5633
6280
|
*/
|
|
5634
6281
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
5635
6282
|
/**
|
|
5636
6283
|
* Disallow unsafe DOM HTML APIs.
|
|
5637
|
-
* @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
|
|
5638
6285
|
*/
|
|
5639
6286
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
6287
|
+
/**
|
|
6288
|
+
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
6289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
6290
|
+
*/
|
|
6291
|
+
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
5640
6292
|
/**
|
|
5641
6293
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
5642
|
-
* @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
|
|
5643
6295
|
*/
|
|
5644
6296
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
5645
6297
|
/**
|
|
5646
6298
|
* Disallow unsafe values as property keys.
|
|
5647
|
-
* @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
|
|
5648
6300
|
*/
|
|
5649
6301
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
5650
6302
|
/**
|
|
5651
6303
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
5652
|
-
* @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
|
|
5653
6305
|
*/
|
|
5654
6306
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
5655
6307
|
/**
|
|
5656
6308
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
5657
|
-
* @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
|
|
5658
6310
|
*/
|
|
5659
6311
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
5660
6312
|
/**
|
|
5661
|
-
*
|
|
5662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6313
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
6314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
6315
|
+
* @deprecated
|
|
5663
6316
|
*/
|
|
5664
|
-
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<
|
|
6317
|
+
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
5665
6318
|
/**
|
|
5666
6319
|
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
|
|
5667
|
-
* @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
|
|
5668
6321
|
* @deprecated
|
|
5669
6322
|
*/
|
|
5670
6323
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
5671
6324
|
/**
|
|
5672
6325
|
* Disallow ignoring the return value of selected built-in methods.
|
|
5673
|
-
* @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
|
|
5674
6327
|
*/
|
|
5675
6328
|
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
5676
6329
|
/**
|
|
5677
6330
|
* Disallow discarding lazy iterator helpers.
|
|
5678
|
-
* @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
|
|
5679
6332
|
*/
|
|
5680
6333
|
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
5681
6334
|
/**
|
|
5682
6335
|
* Disallow unused object properties.
|
|
5683
|
-
* @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
|
|
5684
6337
|
*/
|
|
5685
6338
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
6339
|
+
/**
|
|
6340
|
+
* Disallow passing full URLs to `URLSearchParams`.
|
|
6341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-url-in-search-params.md
|
|
6342
|
+
*/
|
|
6343
|
+
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
5686
6344
|
/**
|
|
5687
6345
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
5688
|
-
* @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
|
|
5689
6347
|
*/
|
|
5690
6348
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
5691
6349
|
/**
|
|
5692
6350
|
* Disallow useless type coercions of values that are already of the target type.
|
|
5693
|
-
* @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
|
|
5694
6352
|
*/
|
|
5695
6353
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
5696
6354
|
/**
|
|
5697
6355
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5698
|
-
* @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
|
|
5699
6357
|
*/
|
|
5700
6358
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5701
6359
|
/**
|
|
5702
6360
|
* Disallow useless compound assignments such as `x += 0`.
|
|
5703
|
-
* @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
|
|
5704
6362
|
*/
|
|
5705
6363
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
5706
6364
|
/**
|
|
5707
6365
|
* Disallow useless concatenation of literals.
|
|
5708
|
-
* @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
|
|
5709
6367
|
*/
|
|
5710
6368
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
5711
6369
|
/**
|
|
5712
6370
|
* Disallow useless `continue` statements.
|
|
5713
|
-
* @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
|
|
5714
6372
|
*/
|
|
5715
6373
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
5716
6374
|
/**
|
|
5717
6375
|
* Disallow unnecessary existence checks before deletion.
|
|
5718
|
-
* @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
|
|
5719
6377
|
*/
|
|
5720
6378
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
5721
6379
|
/**
|
|
5722
6380
|
* Disallow `else` after a statement that exits.
|
|
5723
|
-
* @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
|
|
5724
6382
|
*/
|
|
5725
6383
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
5726
6384
|
/**
|
|
5727
6385
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5728
|
-
* @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
|
|
5729
6387
|
*/
|
|
5730
6388
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5731
6389
|
/**
|
|
5732
6390
|
* Disallow useless fallback when spreading in object literals.
|
|
5733
|
-
* @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
|
|
5734
6392
|
*/
|
|
5735
6393
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5736
6394
|
/**
|
|
5737
6395
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
5738
|
-
* @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
|
|
5739
6397
|
*/
|
|
5740
6398
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
5741
6399
|
/**
|
|
5742
6400
|
* Disallow useless array length check.
|
|
5743
|
-
* @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
|
|
5744
6402
|
*/
|
|
5745
6403
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5746
6404
|
/**
|
|
5747
6405
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
5748
|
-
* @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
|
|
5749
6407
|
*/
|
|
5750
6408
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
5751
6409
|
/**
|
|
5752
6410
|
* Disallow useless overrides of class methods.
|
|
5753
|
-
* @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
|
|
5754
6412
|
*/
|
|
5755
6413
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
5756
6414
|
/**
|
|
5757
6415
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5758
|
-
* @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
|
|
5759
6417
|
*/
|
|
5760
6418
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5761
6419
|
/**
|
|
5762
6420
|
* Disallow redundant re-exports.
|
|
5763
|
-
* @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
|
|
5764
6422
|
*/
|
|
5765
6423
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
5766
6424
|
/**
|
|
5767
6425
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
5768
|
-
* @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
|
|
5769
6427
|
*/
|
|
5770
6428
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
5771
6429
|
/**
|
|
5772
6430
|
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
5773
|
-
* @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
|
|
5774
6432
|
*/
|
|
5775
6433
|
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
5776
6434
|
/**
|
|
5777
6435
|
* Disallow unnecessary spread.
|
|
5778
|
-
* @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
|
|
5779
6437
|
*/
|
|
5780
6438
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5781
6439
|
/**
|
|
5782
6440
|
* Disallow useless case in switch statements.
|
|
5783
|
-
* @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
|
|
5784
6442
|
*/
|
|
5785
6443
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5786
6444
|
/**
|
|
5787
6445
|
* Disallow useless template literal expressions.
|
|
5788
|
-
* @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
|
|
5789
6447
|
*/
|
|
5790
6448
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
5791
6449
|
/**
|
|
5792
6450
|
* Disallow useless `undefined`.
|
|
5793
|
-
* @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
|
|
5794
6452
|
*/
|
|
5795
6453
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5796
6454
|
/**
|
|
5797
6455
|
* Disallow returning or exporting resources declared with `using`, including through capturing functions.
|
|
5798
|
-
* @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
|
|
5799
6457
|
*/
|
|
5800
6458
|
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
5801
6459
|
/**
|
|
5802
6460
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
5803
|
-
* @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
|
|
5804
6462
|
*/
|
|
5805
6463
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
5806
6464
|
/**
|
|
5807
|
-
*
|
|
5808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6465
|
+
* Require consistent decimal numbers without redundant zeros.
|
|
6466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-zero-fractions.md
|
|
5809
6467
|
*/
|
|
5810
6468
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5811
6469
|
/**
|
|
5812
6470
|
* Enforce proper case for numeric literals.
|
|
5813
|
-
* @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
|
|
5814
6472
|
*/
|
|
5815
6473
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5816
6474
|
/**
|
|
5817
6475
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5818
|
-
* @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
|
|
5819
6477
|
*/
|
|
5820
6478
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5821
6479
|
/**
|
|
5822
6480
|
* Require assignment operator shorthand where possible.
|
|
5823
|
-
* @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
|
|
5824
6482
|
*/
|
|
5825
6483
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
5826
6484
|
/**
|
|
5827
6485
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
5828
|
-
* @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
|
|
5829
6487
|
*/
|
|
5830
6488
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
5831
6489
|
/**
|
|
5832
6490
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
5833
|
-
* @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
|
|
5834
6492
|
*/
|
|
5835
6493
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
5836
6494
|
/**
|
|
5837
6495
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5838
|
-
* @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
|
|
5839
6497
|
*/
|
|
5840
6498
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5841
6499
|
/**
|
|
5842
6500
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
5843
|
-
* @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
|
|
5844
6502
|
*/
|
|
5845
6503
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
5846
6504
|
/**
|
|
5847
6505
|
* Prefer `AggregateError` when throwing collected errors.
|
|
5848
|
-
* @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
|
|
5849
6507
|
*/
|
|
5850
6508
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
5851
6509
|
/**
|
|
5852
6510
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5853
|
-
* @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
|
|
5854
6512
|
*/
|
|
5855
6513
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5856
6514
|
/**
|
|
5857
6515
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5858
|
-
* @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
|
|
5859
6517
|
*/
|
|
5860
6518
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5861
6519
|
/**
|
|
5862
6520
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
5863
|
-
* @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
|
|
5864
6522
|
*/
|
|
5865
6523
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5866
6524
|
/**
|
|
5867
6525
|
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
5868
|
-
* @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
|
|
5869
6527
|
*/
|
|
5870
6528
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
5871
6529
|
/**
|
|
5872
6530
|
* Prefer using the `Array.from()` mapping function argument.
|
|
5873
|
-
* @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
|
|
5874
6532
|
*/
|
|
5875
6533
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
5876
6534
|
/**
|
|
5877
6535
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
5878
|
-
* @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
|
|
5879
6537
|
*/
|
|
5880
6538
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
5881
6539
|
/**
|
|
5882
6540
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5883
|
-
* @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
|
|
5884
6542
|
*/
|
|
5885
6543
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5886
6544
|
/**
|
|
5887
6545
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
5888
|
-
* @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
|
|
5889
6547
|
*/
|
|
5890
6548
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
5891
6549
|
/**
|
|
5892
6550
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
5893
|
-
* @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
|
|
5894
6552
|
*/
|
|
5895
6553
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
5896
6554
|
/**
|
|
5897
6555
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
5898
|
-
* @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
|
|
5899
6557
|
*/
|
|
5900
6558
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
5901
6559
|
/**
|
|
5902
6560
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5903
|
-
* @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
|
|
5904
6562
|
*/
|
|
5905
6563
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5906
6564
|
/**
|
|
5907
6565
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5908
|
-
* @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
|
|
5909
6567
|
*/
|
|
5910
6568
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5911
6569
|
/**
|
|
5912
6570
|
* Prefer `await` over promise chaining.
|
|
5913
|
-
* @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
|
|
5914
6572
|
*/
|
|
5915
6573
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
5916
6574
|
/**
|
|
5917
6575
|
* Prefer `BigInt` literals over the constructor.
|
|
5918
|
-
* @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
|
|
5919
6577
|
*/
|
|
5920
6578
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5921
6579
|
/**
|
|
5922
6580
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5923
|
-
* @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
|
|
5924
6582
|
*/
|
|
5925
6583
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5926
6584
|
/**
|
|
5927
6585
|
* Prefer block statements over IIFEs used only for scoping.
|
|
5928
|
-
* @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
|
|
5929
6587
|
*/
|
|
5930
6588
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
5931
6589
|
/**
|
|
5932
6590
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
5933
|
-
* @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
|
|
5934
6592
|
*/
|
|
5935
6593
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
5936
6594
|
/**
|
|
5937
6595
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5938
|
-
* @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
|
|
5939
6597
|
*/
|
|
5940
6598
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5941
6599
|
/**
|
|
5942
6600
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5943
|
-
* @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
|
|
5944
6602
|
*/
|
|
5945
6603
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5946
6604
|
/**
|
|
5947
6605
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5948
|
-
* @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
|
|
5949
6607
|
*/
|
|
5950
6608
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5951
6609
|
/**
|
|
5952
6610
|
* Prefer combining consecutive guards with identical exit statements.
|
|
5953
|
-
* @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
|
|
5954
6612
|
*/
|
|
5955
6613
|
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
5956
6614
|
/**
|
|
5957
6615
|
* Prefer early continues over conditionals wrapping the remainder of the loop body.
|
|
5958
|
-
* @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
|
|
5959
6617
|
*/
|
|
5960
6618
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
5961
6619
|
/**
|
|
5962
6620
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5963
|
-
* @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
|
|
5964
6622
|
*/
|
|
5965
6623
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5966
6624
|
/**
|
|
5967
|
-
* Prefer default parameters over reassignment.
|
|
5968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6625
|
+
* Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
|
|
6626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-default-parameters.md
|
|
5969
6627
|
*/
|
|
5970
|
-
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<
|
|
6628
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
|
|
5971
6629
|
/**
|
|
5972
6630
|
* Prefer direct iteration over default iterator method calls.
|
|
5973
|
-
* @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
|
|
5974
6632
|
*/
|
|
5975
6633
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
5976
6634
|
/**
|
|
5977
6635
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
5978
|
-
* @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
|
|
5979
6637
|
*/
|
|
5980
6638
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
5981
6639
|
/**
|
|
5982
6640
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
5983
|
-
* @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
|
|
5984
6642
|
*/
|
|
5985
6643
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5986
6644
|
/**
|
|
5987
6645
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
5988
|
-
* @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
|
|
5989
6647
|
* @deprecated
|
|
5990
6648
|
*/
|
|
5991
6649
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5992
6650
|
/**
|
|
5993
6651
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
5994
|
-
* @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
|
|
5995
6653
|
*/
|
|
5996
6654
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
5997
6655
|
/**
|
|
5998
6656
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5999
|
-
* @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
|
|
6000
6658
|
*/
|
|
6001
6659
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
6002
6660
|
/**
|
|
6003
6661
|
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
6004
|
-
* @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
|
|
6005
6663
|
*/
|
|
6006
6664
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
6007
6665
|
/**
|
|
6008
6666
|
* Prefer `.textContent` over `.innerText`.
|
|
6009
|
-
* @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
|
|
6010
6668
|
*/
|
|
6011
6669
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
6012
6670
|
/**
|
|
6013
6671
|
* Prefer early returns over conditionals wrapping the remainder of the function body.
|
|
6014
|
-
* @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
|
|
6015
6673
|
*/
|
|
6016
6674
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
6017
6675
|
/**
|
|
6018
6676
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
6019
|
-
* @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
|
|
6020
6678
|
*/
|
|
6021
6679
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
6022
6680
|
/**
|
|
6023
6681
|
* Prefer `Error.isError()` when checking for errors.
|
|
6024
|
-
* @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
|
|
6025
6683
|
*/
|
|
6026
6684
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
6685
|
+
/**
|
|
6686
|
+
* Prefer escape sequences for irregular whitespace characters.
|
|
6687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
6688
|
+
*/
|
|
6689
|
+
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
6027
6690
|
/**
|
|
6028
6691
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6029
|
-
* @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
|
|
6030
6693
|
*/
|
|
6031
6694
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
6032
6695
|
/**
|
|
6033
|
-
*
|
|
6034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6696
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
6697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
6698
|
+
* @deprecated
|
|
6035
6699
|
*/
|
|
6036
|
-
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<
|
|
6700
|
+
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
6037
6701
|
/**
|
|
6038
6702
|
* Prefer `export…from` when re-exporting.
|
|
6039
|
-
* @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
|
|
6040
6704
|
*/
|
|
6041
6705
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
6042
6706
|
/**
|
|
6043
6707
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
6044
|
-
* @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
|
|
6045
6709
|
*/
|
|
6046
6710
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6047
6711
|
/**
|
|
6048
6712
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
6049
|
-
* @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
|
|
6050
6714
|
*/
|
|
6051
6715
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
6052
6716
|
/**
|
|
6053
6717
|
* Prefer global numeric constants over `Number` static properties.
|
|
6054
|
-
* @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
|
|
6055
6719
|
*/
|
|
6056
6720
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
6057
6721
|
/**
|
|
6058
6722
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6059
|
-
* @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
|
|
6060
6724
|
*/
|
|
6061
6725
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
6062
6726
|
/**
|
|
6063
6727
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
6064
|
-
* @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
|
|
6065
6729
|
*/
|
|
6066
6730
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
6067
6731
|
/**
|
|
6068
6732
|
* Prefer `.has()` when checking existence.
|
|
6069
|
-
* @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
|
|
6070
6734
|
*/
|
|
6071
6735
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
6072
6736
|
/**
|
|
6073
6737
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
6074
|
-
* @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
|
|
6075
6739
|
*/
|
|
6076
6740
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
6077
6741
|
/**
|
|
6078
6742
|
* Prefer HTTPS over HTTP.
|
|
6079
|
-
* @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
|
|
6080
6744
|
*/
|
|
6081
6745
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
6082
6746
|
/**
|
|
6083
6747
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
6084
|
-
* @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
|
|
6085
6749
|
*/
|
|
6086
6750
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
6087
6751
|
/**
|
|
6088
6752
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6089
|
-
* @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
|
|
6090
6754
|
*/
|
|
6091
6755
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
6092
6756
|
/**
|
|
6093
6757
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6094
|
-
* @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
|
|
6095
6759
|
*/
|
|
6096
6760
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
6097
6761
|
/**
|
|
6098
6762
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
6099
|
-
* @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
|
|
6100
6764
|
*/
|
|
6101
6765
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
6102
6766
|
/**
|
|
6103
6767
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
6104
|
-
* @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
|
|
6105
6769
|
*/
|
|
6106
6770
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
6107
6771
|
/**
|
|
6108
6772
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
6109
|
-
* @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
|
|
6110
6774
|
*/
|
|
6111
6775
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
6112
6776
|
/**
|
|
6113
6777
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
6114
|
-
* @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
|
|
6115
6779
|
*/
|
|
6116
6780
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
6117
6781
|
/**
|
|
6118
6782
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
6119
|
-
* @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
|
|
6120
6784
|
*/
|
|
6121
6785
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
6122
6786
|
/**
|
|
6123
6787
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
6124
|
-
* @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
|
|
6125
6789
|
*/
|
|
6126
6790
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
6127
6791
|
/**
|
|
6128
6792
|
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
6129
|
-
* @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
|
|
6130
6794
|
*/
|
|
6131
6795
|
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
6132
6796
|
/**
|
|
6133
6797
|
* Prefer JSON imports over reading and parsing JSON files.
|
|
6134
|
-
* @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
|
|
6135
6799
|
*/
|
|
6136
6800
|
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
6137
6801
|
/**
|
|
6138
6802
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
6139
|
-
* @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
|
|
6140
6804
|
* @deprecated
|
|
6141
6805
|
*/
|
|
6142
6806
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
6143
6807
|
/**
|
|
6144
6808
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
6145
|
-
* @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
|
|
6146
6810
|
*/
|
|
6147
6811
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6812
|
+
/**
|
|
6813
|
+
* Prefer literal printable ASCII characters over escape sequences.
|
|
6814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-literal-ascii.md
|
|
6815
|
+
*/
|
|
6816
|
+
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
6148
6817
|
/**
|
|
6149
6818
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
6150
|
-
* @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
|
|
6151
6820
|
*/
|
|
6152
6821
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
6153
6822
|
/**
|
|
6154
6823
|
* Prefer using a logical operator over a ternary.
|
|
6155
|
-
* @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
|
|
6156
6825
|
*/
|
|
6157
6826
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
6158
6827
|
/**
|
|
6159
6828
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
6160
|
-
* @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
|
|
6161
6830
|
*/
|
|
6162
6831
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
6163
6832
|
/**
|
|
6164
6833
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
6165
|
-
* @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
|
|
6166
6835
|
*/
|
|
6167
6836
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
6168
6837
|
/**
|
|
6169
6838
|
* Prefer `Math` constants over their approximate numeric values.
|
|
6170
|
-
* @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
|
|
6171
6840
|
*/
|
|
6172
6841
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
6173
6842
|
/**
|
|
6174
6843
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6175
|
-
* @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
|
|
6176
6845
|
*/
|
|
6177
6846
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6178
6847
|
/**
|
|
6179
6848
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
6180
|
-
* @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
|
|
6181
6850
|
*/
|
|
6182
6851
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
6183
6852
|
/**
|
|
6184
|
-
*
|
|
6185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6853
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
6854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
6855
|
+
* @deprecated
|
|
6186
6856
|
*/
|
|
6187
6857
|
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
6188
6858
|
/**
|
|
6189
6859
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
6190
|
-
* @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
|
|
6191
6861
|
*/
|
|
6192
6862
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
6193
6863
|
/**
|
|
6194
6864
|
* Prefer modern DOM APIs.
|
|
6195
|
-
* @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
|
|
6196
6866
|
*/
|
|
6197
6867
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
6198
6868
|
/**
|
|
6199
6869
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6200
|
-
* @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
|
|
6201
6871
|
*/
|
|
6202
6872
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
6203
6873
|
/**
|
|
6204
6874
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6205
|
-
* @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
|
|
6206
6876
|
*/
|
|
6207
6877
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
6208
6878
|
/**
|
|
6209
6879
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6210
|
-
* @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
|
|
6211
6881
|
*/
|
|
6212
6882
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
6213
6883
|
/**
|
|
6214
6884
|
* Prefer negative index over `.length - index` when possible.
|
|
6215
|
-
* @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
|
|
6216
6886
|
*/
|
|
6217
6887
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
6218
6888
|
/**
|
|
6219
6889
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6220
|
-
* @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
|
|
6221
6891
|
*/
|
|
6222
6892
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
6223
6893
|
/**
|
|
6224
6894
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
6225
|
-
* @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
|
|
6226
6896
|
*/
|
|
6227
6897
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
6228
6898
|
/**
|
|
6229
6899
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
6230
|
-
* @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
|
|
6231
6901
|
*/
|
|
6232
6902
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
6233
6903
|
/**
|
|
6234
6904
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
6235
|
-
* @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
|
|
6236
6906
|
*/
|
|
6237
6907
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
6238
6908
|
/**
|
|
6239
6909
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
6240
|
-
* @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
|
|
6241
6911
|
*/
|
|
6242
6912
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
6243
6913
|
/**
|
|
6244
6914
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
6245
|
-
* @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
|
|
6246
6916
|
*/
|
|
6247
6917
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
6248
6918
|
/**
|
|
6249
6919
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6250
|
-
* @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
|
|
6251
6921
|
*/
|
|
6252
6922
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
6253
6923
|
/**
|
|
6254
6924
|
* Prefer the most specific `Object` iterable method.
|
|
6255
|
-
* @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
|
|
6256
6926
|
*/
|
|
6257
6927
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
6258
6928
|
/**
|
|
6259
6929
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
6260
|
-
* @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
|
|
6261
6931
|
*/
|
|
6262
6932
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
6263
6933
|
/**
|
|
6264
6934
|
* Prefer omitting the `catch` binding parameter.
|
|
6265
|
-
* @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
|
|
6266
6936
|
*/
|
|
6267
6937
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
6268
6938
|
/**
|
|
6269
6939
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
6270
|
-
* @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
|
|
6271
6941
|
*/
|
|
6272
6942
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
6273
6943
|
/**
|
|
6274
6944
|
* Prefer private class fields over the underscore-prefix convention.
|
|
6275
|
-
* @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
|
|
6276
6946
|
*/
|
|
6277
6947
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
6948
|
+
/**
|
|
6949
|
+
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
|
|
6950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-static-methods.md
|
|
6951
|
+
*/
|
|
6952
|
+
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
6278
6953
|
/**
|
|
6279
6954
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
6280
|
-
* @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
|
|
6281
6956
|
*/
|
|
6282
6957
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
6283
6958
|
/**
|
|
6284
6959
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
6285
|
-
* @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
|
|
6286
6961
|
*/
|
|
6287
6962
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
6288
6963
|
/**
|
|
6289
6964
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6290
|
-
* @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
|
|
6291
6966
|
*/
|
|
6292
6967
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
6293
6968
|
/**
|
|
6294
6969
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
6295
|
-
* @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
|
|
6296
6971
|
*/
|
|
6297
6972
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
6298
6973
|
/**
|
|
6299
6974
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
6300
|
-
* @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
|
|
6301
6976
|
*/
|
|
6302
6977
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
6303
6978
|
/**
|
|
6304
6979
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6305
|
-
* @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
|
|
6306
6981
|
*/
|
|
6307
6982
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
6308
6983
|
/**
|
|
6309
6984
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
6310
|
-
* @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
|
|
6311
6986
|
*/
|
|
6312
6987
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
6313
6988
|
/**
|
|
6314
6989
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
6315
|
-
* @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
|
|
6316
6991
|
*/
|
|
6317
6992
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
6318
6993
|
/**
|
|
6319
6994
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6320
|
-
* @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
|
|
6321
6996
|
*/
|
|
6322
6997
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
6323
6998
|
/**
|
|
6324
6999
|
* Prefer `:scope` when using element query selector methods.
|
|
6325
|
-
* @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
|
|
6326
7001
|
*/
|
|
6327
7002
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
6328
7003
|
/**
|
|
6329
7004
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6330
|
-
* @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
|
|
6331
7006
|
*/
|
|
6332
7007
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
6333
7008
|
/**
|
|
6334
7009
|
* Prefer `Set` methods for Set operations.
|
|
6335
|
-
* @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
|
|
6336
7011
|
*/
|
|
6337
7012
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
6338
7013
|
/**
|
|
6339
7014
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6340
|
-
* @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
|
|
6341
7016
|
*/
|
|
6342
7017
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6343
7018
|
/**
|
|
6344
7019
|
* Prefer arrow function properties over methods with a single return.
|
|
6345
|
-
* @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
|
|
6346
7021
|
*/
|
|
6347
7022
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
7023
|
+
/**
|
|
7024
|
+
* Prefer shorter alternatives to Unicode escape sequences.
|
|
7025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
7026
|
+
*/
|
|
7027
|
+
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
6348
7028
|
/**
|
|
6349
7029
|
* Prefer simple conditions first in logical expressions.
|
|
6350
|
-
* @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
|
|
6351
7031
|
*/
|
|
6352
7032
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
6353
7033
|
/**
|
|
6354
7034
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
6355
|
-
* @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
|
|
6356
7036
|
*/
|
|
6357
7037
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
6358
7038
|
/**
|
|
6359
7039
|
* Prefer simplified conditions.
|
|
6360
|
-
* @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
|
|
6361
7041
|
*/
|
|
6362
|
-
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<
|
|
7042
|
+
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
6363
7043
|
/**
|
|
6364
7044
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
6365
|
-
* @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
|
|
6366
7046
|
*/
|
|
6367
7047
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
6368
7048
|
/**
|
|
6369
7049
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6370
|
-
* @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
|
|
6371
7051
|
*/
|
|
6372
7052
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
6373
7053
|
/**
|
|
6374
7054
|
* Prefer a single object destructuring declaration per local const source.
|
|
6375
|
-
* @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
|
|
6376
7056
|
*/
|
|
6377
7057
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
6378
7058
|
/**
|
|
6379
7059
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
6380
|
-
* @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
|
|
6381
7061
|
*/
|
|
6382
7062
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
6383
7063
|
/**
|
|
6384
7064
|
* Prefer declaring variables in the smallest possible scope.
|
|
6385
|
-
* @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
|
|
6386
7066
|
*/
|
|
6387
7067
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
6388
7068
|
/**
|
|
6389
7069
|
* Prefer `String#split()` with a limit.
|
|
6390
|
-
* @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
|
|
6391
7071
|
*/
|
|
6392
7072
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
6393
7073
|
/**
|
|
6394
7074
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
6395
|
-
* @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
|
|
6396
7076
|
*/
|
|
6397
7077
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
6398
7078
|
/**
|
|
6399
7079
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
6400
|
-
* @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
|
|
6401
7081
|
*/
|
|
6402
7082
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
6403
7083
|
/**
|
|
6404
7084
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
6405
|
-
* @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
|
|
6406
7086
|
*/
|
|
6407
7087
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
6408
7088
|
/**
|
|
6409
7089
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6410
|
-
* @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
|
|
6411
7091
|
*/
|
|
6412
7092
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
6413
7093
|
/**
|
|
6414
7094
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
6415
|
-
* @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
|
|
6416
7096
|
*/
|
|
6417
7097
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
6418
7098
|
/**
|
|
6419
7099
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
6420
|
-
* @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
|
|
6421
7101
|
*/
|
|
6422
7102
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
6423
7103
|
/**
|
|
6424
7104
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6425
|
-
* @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
|
|
6426
7106
|
*/
|
|
6427
7107
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
6428
7108
|
/**
|
|
6429
7109
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
6430
|
-
* @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
|
|
6431
7111
|
*/
|
|
6432
7112
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
6433
7113
|
/**
|
|
6434
7114
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6435
|
-
* @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
|
|
6436
7116
|
*/
|
|
6437
7117
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
6438
7118
|
/**
|
|
6439
7119
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6440
|
-
* @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
|
|
6441
7121
|
*/
|
|
6442
7122
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
6443
7123
|
/**
|
|
6444
7124
|
* Prefer `switch` over multiple `else-if`.
|
|
6445
|
-
* @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
|
|
6446
7126
|
*/
|
|
6447
7127
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
6448
7128
|
/**
|
|
6449
7129
|
* Prefer `Temporal` over `Date`.
|
|
6450
|
-
* @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
|
|
6451
7131
|
*/
|
|
6452
7132
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
6453
7133
|
/**
|
|
6454
7134
|
* Prefer direct Temporal conversion methods.
|
|
6455
|
-
* @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
|
|
6456
7136
|
*/
|
|
6457
7137
|
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
6458
7138
|
/**
|
|
6459
|
-
* Prefer ternary expressions over simple `if` statements
|
|
6460
|
-
* @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
|
|
6461
7141
|
*/
|
|
6462
7142
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
6463
7143
|
/**
|
|
6464
7144
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
6465
|
-
* @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
|
|
6466
7146
|
*/
|
|
6467
7147
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
6468
7148
|
/**
|
|
6469
7149
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
6470
|
-
* @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
|
|
6471
7151
|
*/
|
|
6472
7152
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
6473
7153
|
/**
|
|
6474
7154
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6475
|
-
* @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
|
|
6476
7156
|
*/
|
|
6477
7157
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
6478
7158
|
/**
|
|
6479
7159
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6480
|
-
* @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
|
|
6481
7161
|
*/
|
|
6482
7162
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
6483
7163
|
/**
|
|
6484
7164
|
* Require type literals to be last in union types.
|
|
6485
|
-
* @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
|
|
6486
7166
|
*/
|
|
6487
7167
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
6488
7168
|
/**
|
|
6489
7169
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
|
|
6490
|
-
* @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
|
|
6491
7171
|
*/
|
|
6492
7172
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
6493
7173
|
/**
|
|
6494
7174
|
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
|
|
6495
|
-
* @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
|
|
6496
7176
|
*/
|
|
6497
7177
|
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
|
|
6498
7178
|
/**
|
|
6499
7179
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
6500
|
-
* @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
|
|
6501
7181
|
*/
|
|
6502
7182
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
6503
7183
|
/**
|
|
6504
7184
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
6505
|
-
* @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
|
|
6506
7186
|
*/
|
|
6507
7187
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
6508
7188
|
/**
|
|
6509
7189
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
6510
|
-
* @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
|
|
6511
7191
|
*/
|
|
6512
7192
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
6513
7193
|
/**
|
|
6514
7194
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
6515
|
-
* @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
|
|
6516
7196
|
*/
|
|
6517
7197
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
6518
7198
|
/**
|
|
6519
7199
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
6520
|
-
* @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
|
|
6521
7201
|
*/
|
|
6522
7202
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
6523
7203
|
/**
|
|
6524
7204
|
* Prefer putting the condition in the while statement.
|
|
6525
|
-
* @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
|
|
6526
7206
|
*/
|
|
6527
7207
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
6528
7208
|
/**
|
|
6529
7209
|
* Renamed to `unicorn/name-replacements`.
|
|
6530
|
-
* @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
|
|
6531
7211
|
* @deprecated
|
|
6532
7212
|
*/
|
|
6533
7213
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
6534
7214
|
/**
|
|
6535
7215
|
* Enforce consistent relative URL style.
|
|
6536
|
-
* @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
|
|
6537
7217
|
*/
|
|
6538
7218
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
6539
7219
|
/**
|
|
6540
7220
|
* Enforce using the separator argument with `Array#join()`.
|
|
6541
|
-
* @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
|
|
6542
7222
|
*/
|
|
6543
7223
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
6544
7224
|
/**
|
|
6545
7225
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
6546
|
-
* @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
|
|
6547
7227
|
*/
|
|
6548
7228
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
6549
7229
|
/**
|
|
6550
7230
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
6551
|
-
* @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
|
|
6552
7232
|
*/
|
|
6553
7233
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
6554
7234
|
/**
|
|
6555
7235
|
* Require configured YAML frontmatter fields.
|
|
6556
|
-
* @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
|
|
6557
7237
|
*/
|
|
6558
7238
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
6559
7239
|
/**
|
|
6560
7240
|
* Require non-empty module attributes for imports and exports
|
|
6561
|
-
* @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
|
|
6562
7242
|
*/
|
|
6563
7243
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
6564
7244
|
/**
|
|
6565
7245
|
* Require non-empty specifier list in import and export statements.
|
|
6566
|
-
* @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
|
|
6567
7247
|
*/
|
|
6568
7248
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
6569
7249
|
/**
|
|
6570
7250
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6571
|
-
* @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
|
|
6572
7252
|
*/
|
|
6573
7253
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
6574
7254
|
/**
|
|
6575
7255
|
* Require passive event listeners for high-frequency events.
|
|
6576
|
-
* @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
|
|
6577
7257
|
*/
|
|
6578
7258
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
6579
7259
|
/**
|
|
6580
7260
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6581
|
-
* @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
|
|
6582
7262
|
*/
|
|
6583
7263
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
6584
7264
|
/**
|
|
6585
7265
|
* Require boolean-returning Proxy traps to return booleans.
|
|
6586
|
-
* @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
|
|
6587
7267
|
*/
|
|
6588
7268
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
7269
|
+
/**
|
|
7270
|
+
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
7271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-text-decoder-streaming.md
|
|
7272
|
+
*/
|
|
7273
|
+
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
6589
7274
|
/**
|
|
6590
7275
|
* Enforce a consistent style for single-line block comments.
|
|
6591
|
-
* @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
|
|
6592
7277
|
*/
|
|
6593
7278
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
6594
7279
|
/**
|
|
6595
7280
|
* Enforce better string content.
|
|
6596
|
-
* @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
|
|
6597
7282
|
*/
|
|
6598
7283
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
6599
7284
|
/**
|
|
6600
7285
|
* Enforce consistent brace style for `case` clauses.
|
|
6601
|
-
* @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
|
|
6602
7287
|
*/
|
|
6603
7288
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
6604
7289
|
/**
|
|
6605
7290
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
6606
|
-
* @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
|
|
6607
7292
|
*/
|
|
6608
7293
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
6609
7294
|
/**
|
|
6610
7295
|
* Fix whitespace-insensitive template indentation.
|
|
6611
|
-
* @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
|
|
6612
7297
|
*/
|
|
6613
7298
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
6614
7299
|
/**
|
|
6615
7300
|
* Enforce consistent case for text encoding identifiers.
|
|
6616
|
-
* @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
|
|
6617
7302
|
*/
|
|
6618
7303
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
6619
7304
|
/**
|
|
6620
7305
|
* Require `new` when creating an error.
|
|
6621
|
-
* @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
|
|
6622
7307
|
*/
|
|
6623
7308
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
6624
7309
|
/**
|
|
6625
7310
|
* Limit the complexity of `try` blocks.
|
|
6626
|
-
* @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
|
|
6627
7312
|
*/
|
|
6628
7313
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
6629
7314
|
/**
|
|
@@ -8582,6 +9267,10 @@ type EslintReactDomNoUnknownProperty = [] | [{
|
|
|
8582
9267
|
ignore?: string[];
|
|
8583
9268
|
requireDataLowercase?: boolean;
|
|
8584
9269
|
}];
|
|
9270
|
+
// ----- @eslint-react/dom-no-unsafe-target-blank -----
|
|
9271
|
+
type EslintReactDomNoUnsafeTargetBlank = [] | [{
|
|
9272
|
+
allowReferrer?: boolean;
|
|
9273
|
+
}];
|
|
8585
9274
|
// ----- @eslint-react/exhaustive-deps -----
|
|
8586
9275
|
type EslintReactExhaustiveDeps = [] | [{
|
|
8587
9276
|
additionalHooks?: string;
|
|
@@ -9906,6 +10595,10 @@ type TypescriptEslintArrayType = [] | [{
|
|
|
9906
10595
|
default?: ("array" | "generic" | "array-simple");
|
|
9907
10596
|
readonly?: ("array" | "generic" | "array-simple");
|
|
9908
10597
|
}];
|
|
10598
|
+
// ----- @typescript-eslint/await-thenable -----
|
|
10599
|
+
type TypescriptEslintAwaitThenable = [] | [{
|
|
10600
|
+
allowMixedPromiseArrays?: boolean;
|
|
10601
|
+
}];
|
|
9909
10602
|
// ----- @typescript-eslint/ban-ts-comment -----
|
|
9910
10603
|
type TypescriptEslintBanTsComment = [] | [{
|
|
9911
10604
|
minimumDescriptionLength?: number;
|
|
@@ -11541,6 +12234,7 @@ type ImportLitePreferDefaultExport = [] | [{
|
|
|
11541
12234
|
}];
|
|
11542
12235
|
// ----- jsdoc/check-alignment -----
|
|
11543
12236
|
type JsdocCheckAlignment = [] | [{
|
|
12237
|
+
ignoreEmptyLines?: boolean;
|
|
11544
12238
|
innerIndent?: number;
|
|
11545
12239
|
}];
|
|
11546
12240
|
// ----- jsdoc/check-examples -----
|
|
@@ -11568,6 +12262,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
11568
12262
|
// ----- jsdoc/check-indentation -----
|
|
11569
12263
|
type JsdocCheckIndentation = [] | [{
|
|
11570
12264
|
allowIndentedSections?: boolean;
|
|
12265
|
+
allowNoSpaceAfterAsterisk?: boolean;
|
|
11571
12266
|
excludeTags?: string[];
|
|
11572
12267
|
}];
|
|
11573
12268
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -11603,6 +12298,10 @@ type JsdocCheckParamNames = [] | [{
|
|
|
11603
12298
|
type JsdocCheckPropertyNames = [] | [{
|
|
11604
12299
|
enableFixer?: boolean;
|
|
11605
12300
|
}];
|
|
12301
|
+
// ----- jsdoc/check-syntax -----
|
|
12302
|
+
type JsdocCheckSyntax = [] | [{
|
|
12303
|
+
enableFixer?: boolean;
|
|
12304
|
+
}];
|
|
11606
12305
|
// ----- jsdoc/check-tag-names -----
|
|
11607
12306
|
type JsdocCheckTagNames = [] | [{
|
|
11608
12307
|
definedTags?: string[];
|
|
@@ -11781,6 +12480,7 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
11781
12480
|
type JsdocNoUnnecessaryTypeAssertion = [] | [{
|
|
11782
12481
|
checkLiteralConstAssertions?: boolean;
|
|
11783
12482
|
enableFixer?: boolean;
|
|
12483
|
+
fixTypeChangingCasts?: boolean;
|
|
11784
12484
|
preferConstToLiteralTuples?: boolean;
|
|
11785
12485
|
treatAnyAsRedundant?: boolean;
|
|
11786
12486
|
typesToIgnore?: string[];
|
|
@@ -11987,7 +12687,6 @@ type JsdocRequireTags = [] | [{
|
|
|
11987
12687
|
tags?: (string | {
|
|
11988
12688
|
context?: string;
|
|
11989
12689
|
tag?: string;
|
|
11990
|
-
[k: string]: unknown | undefined;
|
|
11991
12690
|
})[];
|
|
11992
12691
|
}];
|
|
11993
12692
|
// ----- jsdoc/require-template -----
|
|
@@ -12838,7 +13537,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = [] | [{
|
|
|
12838
13537
|
type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
12839
13538
|
version?: string;
|
|
12840
13539
|
allowExperimental?: boolean;
|
|
12841
|
-
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")[];
|
|
12842
13541
|
}];
|
|
12843
13542
|
// ----- node/prefer-global/buffer -----
|
|
12844
13543
|
type NodePreferGlobalBuffer = [] | [("always" | "never")];
|
|
@@ -13021,7 +13720,234 @@ type PerfectionistSortArrays = [{
|
|
|
13021
13720
|
pattern: string;
|
|
13022
13721
|
flags?: string;
|
|
13023
13722
|
} | string));
|
|
13024
|
-
selector?: "literal";
|
|
13723
|
+
selector?: "literal";
|
|
13724
|
+
}, ...({
|
|
13725
|
+
elementNamePattern?: (({
|
|
13726
|
+
pattern: string;
|
|
13727
|
+
flags?: string;
|
|
13728
|
+
} | string)[] | ({
|
|
13729
|
+
pattern: string;
|
|
13730
|
+
flags?: string;
|
|
13731
|
+
} | string));
|
|
13732
|
+
selector?: "literal";
|
|
13733
|
+
})[]];
|
|
13734
|
+
} | {
|
|
13735
|
+
fallbackSort?: {
|
|
13736
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13737
|
+
order?: ("asc" | "desc");
|
|
13738
|
+
};
|
|
13739
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13740
|
+
groupName: string;
|
|
13741
|
+
newlinesInside?: ("ignore" | number);
|
|
13742
|
+
order?: ("asc" | "desc");
|
|
13743
|
+
elementNamePattern?: (({
|
|
13744
|
+
pattern: string;
|
|
13745
|
+
flags?: string;
|
|
13746
|
+
} | string)[] | ({
|
|
13747
|
+
pattern: string;
|
|
13748
|
+
flags?: string;
|
|
13749
|
+
} | string));
|
|
13750
|
+
selector?: "literal";
|
|
13751
|
+
})[];
|
|
13752
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13753
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13754
|
+
newlinesBetween: ("ignore" | number);
|
|
13755
|
+
} | {
|
|
13756
|
+
group: (string | [string, ...(string)[]]);
|
|
13757
|
+
fallbackSort?: {
|
|
13758
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13759
|
+
order?: ("asc" | "desc");
|
|
13760
|
+
};
|
|
13761
|
+
commentAbove?: string;
|
|
13762
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13763
|
+
newlinesInside?: ("ignore" | number);
|
|
13764
|
+
order?: ("asc" | "desc");
|
|
13765
|
+
})[];
|
|
13766
|
+
newlinesBetween?: ("ignore" | number);
|
|
13767
|
+
useConfigurationIf: {
|
|
13768
|
+
allNamesMatchPattern?: (({
|
|
13769
|
+
pattern: string;
|
|
13770
|
+
flags?: string;
|
|
13771
|
+
} | string)[] | ({
|
|
13772
|
+
pattern: string;
|
|
13773
|
+
flags?: string;
|
|
13774
|
+
} | string));
|
|
13775
|
+
matchesAstSelector?: string;
|
|
13776
|
+
};
|
|
13777
|
+
partitionByComment?: (boolean | (({
|
|
13778
|
+
pattern: string;
|
|
13779
|
+
flags?: string;
|
|
13780
|
+
} | string)[] | ({
|
|
13781
|
+
pattern: string;
|
|
13782
|
+
flags?: string;
|
|
13783
|
+
} | string)) | {
|
|
13784
|
+
block?: (boolean | (({
|
|
13785
|
+
pattern: string;
|
|
13786
|
+
flags?: string;
|
|
13787
|
+
} | string)[] | ({
|
|
13788
|
+
pattern: string;
|
|
13789
|
+
flags?: string;
|
|
13790
|
+
} | string)));
|
|
13791
|
+
line?: (boolean | (({
|
|
13792
|
+
pattern: string;
|
|
13793
|
+
flags?: string;
|
|
13794
|
+
} | string)[] | ({
|
|
13795
|
+
pattern: string;
|
|
13796
|
+
flags?: string;
|
|
13797
|
+
} | string)));
|
|
13798
|
+
});
|
|
13799
|
+
partitionByNewLine?: boolean;
|
|
13800
|
+
}, ...({
|
|
13801
|
+
fallbackSort?: {
|
|
13802
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13803
|
+
order?: ("asc" | "desc");
|
|
13804
|
+
};
|
|
13805
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13806
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13807
|
+
ignoreCase?: boolean;
|
|
13808
|
+
alphabet?: string;
|
|
13809
|
+
locales?: (string | string[]);
|
|
13810
|
+
order?: ("asc" | "desc");
|
|
13811
|
+
customGroups?: ({
|
|
13812
|
+
fallbackSort?: {
|
|
13813
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13814
|
+
order?: ("asc" | "desc");
|
|
13815
|
+
};
|
|
13816
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13817
|
+
groupName: string;
|
|
13818
|
+
newlinesInside?: ("ignore" | number);
|
|
13819
|
+
order?: ("asc" | "desc");
|
|
13820
|
+
anyOf: [{
|
|
13821
|
+
elementNamePattern?: (({
|
|
13822
|
+
pattern: string;
|
|
13823
|
+
flags?: string;
|
|
13824
|
+
} | string)[] | ({
|
|
13825
|
+
pattern: string;
|
|
13826
|
+
flags?: string;
|
|
13827
|
+
} | string));
|
|
13828
|
+
selector?: "literal";
|
|
13829
|
+
}, ...({
|
|
13830
|
+
elementNamePattern?: (({
|
|
13831
|
+
pattern: string;
|
|
13832
|
+
flags?: string;
|
|
13833
|
+
} | string)[] | ({
|
|
13834
|
+
pattern: string;
|
|
13835
|
+
flags?: string;
|
|
13836
|
+
} | string));
|
|
13837
|
+
selector?: "literal";
|
|
13838
|
+
})[]];
|
|
13839
|
+
} | {
|
|
13840
|
+
fallbackSort?: {
|
|
13841
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13842
|
+
order?: ("asc" | "desc");
|
|
13843
|
+
};
|
|
13844
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13845
|
+
groupName: string;
|
|
13846
|
+
newlinesInside?: ("ignore" | number);
|
|
13847
|
+
order?: ("asc" | "desc");
|
|
13848
|
+
elementNamePattern?: (({
|
|
13849
|
+
pattern: string;
|
|
13850
|
+
flags?: string;
|
|
13851
|
+
} | string)[] | ({
|
|
13852
|
+
pattern: string;
|
|
13853
|
+
flags?: string;
|
|
13854
|
+
} | string));
|
|
13855
|
+
selector?: "literal";
|
|
13856
|
+
})[];
|
|
13857
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13858
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13859
|
+
newlinesBetween: ("ignore" | number);
|
|
13860
|
+
} | {
|
|
13861
|
+
group: (string | [string, ...(string)[]]);
|
|
13862
|
+
fallbackSort?: {
|
|
13863
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13864
|
+
order?: ("asc" | "desc");
|
|
13865
|
+
};
|
|
13866
|
+
commentAbove?: string;
|
|
13867
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13868
|
+
newlinesInside?: ("ignore" | number);
|
|
13869
|
+
order?: ("asc" | "desc");
|
|
13870
|
+
})[];
|
|
13871
|
+
newlinesBetween?: ("ignore" | number);
|
|
13872
|
+
useConfigurationIf: {
|
|
13873
|
+
allNamesMatchPattern?: (({
|
|
13874
|
+
pattern: string;
|
|
13875
|
+
flags?: string;
|
|
13876
|
+
} | string)[] | ({
|
|
13877
|
+
pattern: string;
|
|
13878
|
+
flags?: string;
|
|
13879
|
+
} | string));
|
|
13880
|
+
matchesAstSelector?: string;
|
|
13881
|
+
};
|
|
13882
|
+
partitionByComment?: (boolean | (({
|
|
13883
|
+
pattern: string;
|
|
13884
|
+
flags?: string;
|
|
13885
|
+
} | string)[] | ({
|
|
13886
|
+
pattern: string;
|
|
13887
|
+
flags?: string;
|
|
13888
|
+
} | string)) | {
|
|
13889
|
+
block?: (boolean | (({
|
|
13890
|
+
pattern: string;
|
|
13891
|
+
flags?: string;
|
|
13892
|
+
} | string)[] | ({
|
|
13893
|
+
pattern: string;
|
|
13894
|
+
flags?: string;
|
|
13895
|
+
} | string)));
|
|
13896
|
+
line?: (boolean | (({
|
|
13897
|
+
pattern: string;
|
|
13898
|
+
flags?: string;
|
|
13899
|
+
} | string)[] | ({
|
|
13900
|
+
pattern: string;
|
|
13901
|
+
flags?: string;
|
|
13902
|
+
} | string)));
|
|
13903
|
+
});
|
|
13904
|
+
partitionByNewLine?: boolean;
|
|
13905
|
+
})[]];
|
|
13906
|
+
// ----- perfectionist/sort-classes -----
|
|
13907
|
+
type PerfectionistSortClasses = {
|
|
13908
|
+
fallbackSort?: {
|
|
13909
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13910
|
+
order?: ("asc" | "desc");
|
|
13911
|
+
};
|
|
13912
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13913
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13914
|
+
ignoreCase?: boolean;
|
|
13915
|
+
alphabet?: string;
|
|
13916
|
+
locales?: (string | string[]);
|
|
13917
|
+
order?: ("asc" | "desc");
|
|
13918
|
+
customGroups?: ({
|
|
13919
|
+
fallbackSort?: {
|
|
13920
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13921
|
+
order?: ("asc" | "desc");
|
|
13922
|
+
};
|
|
13923
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13924
|
+
groupName: string;
|
|
13925
|
+
newlinesInside?: ("ignore" | number);
|
|
13926
|
+
order?: ("asc" | "desc");
|
|
13927
|
+
anyOf: [{
|
|
13928
|
+
elementNamePattern?: (({
|
|
13929
|
+
pattern: string;
|
|
13930
|
+
flags?: string;
|
|
13931
|
+
} | string)[] | ({
|
|
13932
|
+
pattern: string;
|
|
13933
|
+
flags?: string;
|
|
13934
|
+
} | string));
|
|
13935
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
13936
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
13937
|
+
decoratorNamePattern?: (({
|
|
13938
|
+
pattern: string;
|
|
13939
|
+
flags?: string;
|
|
13940
|
+
} | string)[] | ({
|
|
13941
|
+
pattern: string;
|
|
13942
|
+
flags?: string;
|
|
13943
|
+
} | string));
|
|
13944
|
+
elementValuePattern?: (({
|
|
13945
|
+
pattern: string;
|
|
13946
|
+
flags?: string;
|
|
13947
|
+
} | string)[] | ({
|
|
13948
|
+
pattern: string;
|
|
13949
|
+
flags?: string;
|
|
13950
|
+
} | string));
|
|
13025
13951
|
}, ...({
|
|
13026
13952
|
elementNamePattern?: (({
|
|
13027
13953
|
pattern: string;
|
|
@@ -13030,7 +13956,22 @@ type PerfectionistSortArrays = [{
|
|
|
13030
13956
|
pattern: string;
|
|
13031
13957
|
flags?: string;
|
|
13032
13958
|
} | string));
|
|
13033
|
-
|
|
13959
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
13960
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
13961
|
+
decoratorNamePattern?: (({
|
|
13962
|
+
pattern: string;
|
|
13963
|
+
flags?: string;
|
|
13964
|
+
} | string)[] | ({
|
|
13965
|
+
pattern: string;
|
|
13966
|
+
flags?: string;
|
|
13967
|
+
} | string));
|
|
13968
|
+
elementValuePattern?: (({
|
|
13969
|
+
pattern: string;
|
|
13970
|
+
flags?: string;
|
|
13971
|
+
} | string)[] | ({
|
|
13972
|
+
pattern: string;
|
|
13973
|
+
flags?: string;
|
|
13974
|
+
} | string));
|
|
13034
13975
|
})[]];
|
|
13035
13976
|
} | {
|
|
13036
13977
|
fallbackSort?: {
|
|
@@ -13048,7 +13989,22 @@ type PerfectionistSortArrays = [{
|
|
|
13048
13989
|
pattern: string;
|
|
13049
13990
|
flags?: string;
|
|
13050
13991
|
} | string));
|
|
13051
|
-
|
|
13992
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
13993
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
13994
|
+
decoratorNamePattern?: (({
|
|
13995
|
+
pattern: string;
|
|
13996
|
+
flags?: string;
|
|
13997
|
+
} | string)[] | ({
|
|
13998
|
+
pattern: string;
|
|
13999
|
+
flags?: string;
|
|
14000
|
+
} | string));
|
|
14001
|
+
elementValuePattern?: (({
|
|
14002
|
+
pattern: string;
|
|
14003
|
+
flags?: string;
|
|
14004
|
+
} | string)[] | ({
|
|
14005
|
+
pattern: string;
|
|
14006
|
+
flags?: string;
|
|
14007
|
+
} | string));
|
|
13052
14008
|
})[];
|
|
13053
14009
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13054
14010
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -13065,7 +14021,7 @@ type PerfectionistSortArrays = [{
|
|
|
13065
14021
|
order?: ("asc" | "desc");
|
|
13066
14022
|
})[];
|
|
13067
14023
|
newlinesBetween?: ("ignore" | number);
|
|
13068
|
-
useConfigurationIf
|
|
14024
|
+
useConfigurationIf?: {
|
|
13069
14025
|
allNamesMatchPattern?: (({
|
|
13070
14026
|
pattern: string;
|
|
13071
14027
|
flags?: string;
|
|
@@ -13075,6 +14031,15 @@ type PerfectionistSortArrays = [{
|
|
|
13075
14031
|
} | string));
|
|
13076
14032
|
matchesAstSelector?: string;
|
|
13077
14033
|
};
|
|
14034
|
+
useExperimentalDependencyDetection?: boolean;
|
|
14035
|
+
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
14036
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
14037
|
+
pattern: string;
|
|
14038
|
+
flags?: string;
|
|
14039
|
+
} | string)[] | ({
|
|
14040
|
+
pattern: string;
|
|
14041
|
+
flags?: string;
|
|
14042
|
+
} | string));
|
|
13078
14043
|
partitionByComment?: (boolean | (({
|
|
13079
14044
|
pattern: string;
|
|
13080
14045
|
flags?: string;
|
|
@@ -13098,7 +14063,9 @@ type PerfectionistSortArrays = [{
|
|
|
13098
14063
|
} | string)));
|
|
13099
14064
|
});
|
|
13100
14065
|
partitionByNewLine?: boolean;
|
|
13101
|
-
}
|
|
14066
|
+
}[];
|
|
14067
|
+
// ----- perfectionist/sort-constructor-parameters -----
|
|
14068
|
+
type PerfectionistSortConstructorParameters = [{
|
|
13102
14069
|
fallbackSort?: {
|
|
13103
14070
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13104
14071
|
order?: ("asc" | "desc");
|
|
@@ -13126,7 +14093,15 @@ type PerfectionistSortArrays = [{
|
|
|
13126
14093
|
pattern: string;
|
|
13127
14094
|
flags?: string;
|
|
13128
14095
|
} | string));
|
|
13129
|
-
|
|
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));
|
|
13130
14105
|
}, ...({
|
|
13131
14106
|
elementNamePattern?: (({
|
|
13132
14107
|
pattern: string;
|
|
@@ -13135,7 +14110,15 @@ type PerfectionistSortArrays = [{
|
|
|
13135
14110
|
pattern: string;
|
|
13136
14111
|
flags?: string;
|
|
13137
14112
|
} | string));
|
|
13138
|
-
|
|
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));
|
|
13139
14122
|
})[]];
|
|
13140
14123
|
} | {
|
|
13141
14124
|
fallbackSort?: {
|
|
@@ -13153,7 +14136,15 @@ type PerfectionistSortArrays = [{
|
|
|
13153
14136
|
pattern: string;
|
|
13154
14137
|
flags?: string;
|
|
13155
14138
|
} | string));
|
|
13156
|
-
|
|
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));
|
|
13157
14148
|
})[];
|
|
13158
14149
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13159
14150
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -13203,9 +14194,7 @@ type PerfectionistSortArrays = [{
|
|
|
13203
14194
|
} | string)));
|
|
13204
14195
|
});
|
|
13205
14196
|
partitionByNewLine?: boolean;
|
|
13206
|
-
}
|
|
13207
|
-
// ----- perfectionist/sort-classes -----
|
|
13208
|
-
type PerfectionistSortClasses = {
|
|
14197
|
+
}, ...({
|
|
13209
14198
|
fallbackSort?: {
|
|
13210
14199
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13211
14200
|
order?: ("asc" | "desc");
|
|
@@ -13233,8 +14222,8 @@ type PerfectionistSortClasses = {
|
|
|
13233
14222
|
pattern: string;
|
|
13234
14223
|
flags?: string;
|
|
13235
14224
|
} | string));
|
|
13236
|
-
modifiers?: ("
|
|
13237
|
-
selector?:
|
|
14225
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14226
|
+
selector?: "parameter";
|
|
13238
14227
|
decoratorNamePattern?: (({
|
|
13239
14228
|
pattern: string;
|
|
13240
14229
|
flags?: string;
|
|
@@ -13242,13 +14231,6 @@ type PerfectionistSortClasses = {
|
|
|
13242
14231
|
pattern: string;
|
|
13243
14232
|
flags?: string;
|
|
13244
14233
|
} | string));
|
|
13245
|
-
elementValuePattern?: (({
|
|
13246
|
-
pattern: string;
|
|
13247
|
-
flags?: string;
|
|
13248
|
-
} | string)[] | ({
|
|
13249
|
-
pattern: string;
|
|
13250
|
-
flags?: string;
|
|
13251
|
-
} | string));
|
|
13252
14234
|
}, ...({
|
|
13253
14235
|
elementNamePattern?: (({
|
|
13254
14236
|
pattern: string;
|
|
@@ -13257,8 +14239,8 @@ type PerfectionistSortClasses = {
|
|
|
13257
14239
|
pattern: string;
|
|
13258
14240
|
flags?: string;
|
|
13259
14241
|
} | string));
|
|
13260
|
-
modifiers?: ("
|
|
13261
|
-
selector?:
|
|
14242
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14243
|
+
selector?: "parameter";
|
|
13262
14244
|
decoratorNamePattern?: (({
|
|
13263
14245
|
pattern: string;
|
|
13264
14246
|
flags?: string;
|
|
@@ -13266,13 +14248,6 @@ type PerfectionistSortClasses = {
|
|
|
13266
14248
|
pattern: string;
|
|
13267
14249
|
flags?: string;
|
|
13268
14250
|
} | string));
|
|
13269
|
-
elementValuePattern?: (({
|
|
13270
|
-
pattern: string;
|
|
13271
|
-
flags?: string;
|
|
13272
|
-
} | string)[] | ({
|
|
13273
|
-
pattern: string;
|
|
13274
|
-
flags?: string;
|
|
13275
|
-
} | string));
|
|
13276
14251
|
})[]];
|
|
13277
14252
|
} | {
|
|
13278
14253
|
fallbackSort?: {
|
|
@@ -13290,8 +14265,8 @@ type PerfectionistSortClasses = {
|
|
|
13290
14265
|
pattern: string;
|
|
13291
14266
|
flags?: string;
|
|
13292
14267
|
} | string));
|
|
13293
|
-
modifiers?: ("
|
|
13294
|
-
selector?:
|
|
14268
|
+
modifiers?: ("decorated" | "override" | "readonly" | "protected" | "private" | "public")[];
|
|
14269
|
+
selector?: "parameter";
|
|
13295
14270
|
decoratorNamePattern?: (({
|
|
13296
14271
|
pattern: string;
|
|
13297
14272
|
flags?: string;
|
|
@@ -13299,13 +14274,6 @@ type PerfectionistSortClasses = {
|
|
|
13299
14274
|
pattern: string;
|
|
13300
14275
|
flags?: string;
|
|
13301
14276
|
} | string));
|
|
13302
|
-
elementValuePattern?: (({
|
|
13303
|
-
pattern: string;
|
|
13304
|
-
flags?: string;
|
|
13305
|
-
} | string)[] | ({
|
|
13306
|
-
pattern: string;
|
|
13307
|
-
flags?: string;
|
|
13308
|
-
} | string));
|
|
13309
14277
|
})[];
|
|
13310
14278
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
13311
14279
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -13322,7 +14290,7 @@ type PerfectionistSortClasses = {
|
|
|
13322
14290
|
order?: ("asc" | "desc");
|
|
13323
14291
|
})[];
|
|
13324
14292
|
newlinesBetween?: ("ignore" | number);
|
|
13325
|
-
useConfigurationIf
|
|
14293
|
+
useConfigurationIf: {
|
|
13326
14294
|
allNamesMatchPattern?: (({
|
|
13327
14295
|
pattern: string;
|
|
13328
14296
|
flags?: string;
|
|
@@ -13332,15 +14300,6 @@ type PerfectionistSortClasses = {
|
|
|
13332
14300
|
} | string));
|
|
13333
14301
|
matchesAstSelector?: string;
|
|
13334
14302
|
};
|
|
13335
|
-
useExperimentalDependencyDetection?: boolean;
|
|
13336
|
-
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
13337
|
-
ignoreCallbackDependenciesPatterns?: (({
|
|
13338
|
-
pattern: string;
|
|
13339
|
-
flags?: string;
|
|
13340
|
-
} | string)[] | ({
|
|
13341
|
-
pattern: string;
|
|
13342
|
-
flags?: string;
|
|
13343
|
-
} | string));
|
|
13344
14303
|
partitionByComment?: (boolean | (({
|
|
13345
14304
|
pattern: string;
|
|
13346
14305
|
flags?: string;
|
|
@@ -13364,7 +14323,7 @@ type PerfectionistSortClasses = {
|
|
|
13364
14323
|
} | string)));
|
|
13365
14324
|
});
|
|
13366
14325
|
partitionByNewLine?: boolean;
|
|
13367
|
-
}[];
|
|
14326
|
+
})[]];
|
|
13368
14327
|
// ----- perfectionist/sort-decorators -----
|
|
13369
14328
|
type PerfectionistSortDecorators = {
|
|
13370
14329
|
fallbackSort?: {
|
|
@@ -15927,6 +16886,212 @@ type RegexpUnicodeProperty = [] | [{
|
|
|
15927
16886
|
script?: ("short" | "long" | "ignore");
|
|
15928
16887
|
});
|
|
15929
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
|
+
}];
|
|
15930
17095
|
// ----- tailwind-better/enforce-canonical-classes -----
|
|
15931
17096
|
type TailwindBetterEnforceCanonicalClasses = [] | [{
|
|
15932
17097
|
selectors?: ({
|
|
@@ -19175,6 +20340,11 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
19175
20340
|
interface _UnicornImportStyle_BooleanObject {
|
|
19176
20341
|
[k: string]: boolean | undefined;
|
|
19177
20342
|
}
|
|
20343
|
+
// ----- unicorn/indent -----
|
|
20344
|
+
type UnicornIndent = [] | [{
|
|
20345
|
+
indent?: ("tab" | number);
|
|
20346
|
+
tabWidth?: number;
|
|
20347
|
+
}];
|
|
19178
20348
|
// ----- unicorn/isolated-functions -----
|
|
19179
20349
|
type UnicornIsolatedFunctions = [] | [{
|
|
19180
20350
|
overrideGlobals?: {
|
|
@@ -19186,6 +20356,15 @@ type UnicornIsolatedFunctions = [] | [{
|
|
|
19186
20356
|
}];
|
|
19187
20357
|
// ----- unicorn/iteration-fallback-style -----
|
|
19188
20358
|
type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
|
|
20359
|
+
// ----- unicorn/key-name-casing -----
|
|
20360
|
+
type UnicornKeyNameCasing = [] | [{
|
|
20361
|
+
camelCase?: boolean;
|
|
20362
|
+
PascalCase?: boolean;
|
|
20363
|
+
SCREAMING_SNAKE_CASE?: boolean;
|
|
20364
|
+
"kebab-case"?: boolean;
|
|
20365
|
+
snake_case?: boolean;
|
|
20366
|
+
ignore?: string[];
|
|
20367
|
+
}];
|
|
19189
20368
|
// ----- unicorn/logical-assignment-operators -----
|
|
19190
20369
|
type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
19191
20370
|
enforceForIfStatements?: boolean;
|
|
@@ -19240,10 +20419,6 @@ type UnicornNoArraySort = [] | [{
|
|
|
19240
20419
|
type UnicornNoBreakInNestedLoop = [] | [{
|
|
19241
20420
|
checkContinue?: boolean;
|
|
19242
20421
|
}];
|
|
19243
|
-
// ----- unicorn/no-deprecated-css-features -----
|
|
19244
|
-
type UnicornNoDeprecatedCssFeatures = [] | [{
|
|
19245
|
-
allow?: string[];
|
|
19246
|
-
}];
|
|
19247
20422
|
// ----- unicorn/no-empty-file -----
|
|
19248
20423
|
type UnicornNoEmptyFile = [] | [{
|
|
19249
20424
|
allowComments?: boolean;
|
|
@@ -19288,13 +20463,19 @@ type UnicornNoNull = [] | [{
|
|
|
19288
20463
|
checkArguments?: boolean;
|
|
19289
20464
|
checkStrictEquality?: boolean;
|
|
19290
20465
|
}];
|
|
20466
|
+
// ----- unicorn/no-top-level-side-effects -----
|
|
20467
|
+
type UnicornNoTopLevelSideEffects = [] | [{
|
|
20468
|
+
allow?: {
|
|
20469
|
+
[k: string]: string[] | undefined;
|
|
20470
|
+
};
|
|
20471
|
+
}];
|
|
19291
20472
|
// ----- unicorn/no-typeof-undefined -----
|
|
19292
20473
|
type UnicornNoTypeofUndefined = [] | [{
|
|
19293
20474
|
checkGlobalVariables?: boolean;
|
|
19294
20475
|
}];
|
|
19295
|
-
// ----- unicorn/no-
|
|
19296
|
-
type
|
|
19297
|
-
|
|
20476
|
+
// ----- unicorn/no-unnecessary-parameters -----
|
|
20477
|
+
type UnicornNoUnnecessaryParameters = [] | [{
|
|
20478
|
+
minimumCallCount?: number;
|
|
19298
20479
|
}];
|
|
19299
20480
|
// ----- unicorn/no-unnecessary-polyfills -----
|
|
19300
20481
|
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
@@ -19306,10 +20487,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
|
19306
20487
|
type UnicornNoUnreadableArrayDestructuring = [] | [{
|
|
19307
20488
|
maximumIgnoredElements?: number;
|
|
19308
20489
|
}];
|
|
19309
|
-
// ----- unicorn/no-unscoped-css-nesting-selector -----
|
|
19310
|
-
type UnicornNoUnscopedCssNestingSelector = [] | [{
|
|
19311
|
-
scopingRootAtRules?: string[];
|
|
19312
|
-
}];
|
|
19313
20490
|
// ----- unicorn/no-useless-undefined -----
|
|
19314
20491
|
type UnicornNoUselessUndefined = [] | [{
|
|
19315
20492
|
checkArguments?: boolean;
|
|
@@ -19366,12 +20543,17 @@ type UnicornPreferAt = [] | [{
|
|
|
19366
20543
|
// ----- unicorn/prefer-combined-guards -----
|
|
19367
20544
|
type UnicornPreferCombinedGuards = [] | [{
|
|
19368
20545
|
checkCompoundConditions?: boolean;
|
|
20546
|
+
checkMultiStatementBodies?: boolean;
|
|
19369
20547
|
}];
|
|
19370
20548
|
// ----- unicorn/prefer-continue -----
|
|
19371
20549
|
type UnicornPreferContinue = [] | [{
|
|
19372
20550
|
maximumStatements?: number;
|
|
19373
20551
|
checkShortBodies?: boolean;
|
|
19374
20552
|
}];
|
|
20553
|
+
// ----- unicorn/prefer-default-parameters -----
|
|
20554
|
+
type UnicornPreferDefaultParameters = [] | [{
|
|
20555
|
+
checkFallbackExpressions?: boolean;
|
|
20556
|
+
}];
|
|
19375
20557
|
// ----- unicorn/prefer-dom-node-html-methods -----
|
|
19376
20558
|
type UnicornPreferDomNodeHtmlMethods = [] | [{
|
|
19377
20559
|
checkGetHTML?: boolean;
|
|
@@ -19382,10 +20564,6 @@ type UnicornPreferEarlyReturn = [] | [{
|
|
|
19382
20564
|
maximumStatements?: number;
|
|
19383
20565
|
checkShortBodies?: boolean;
|
|
19384
20566
|
}];
|
|
19385
|
-
// ----- unicorn/prefer-explicit-viewport-units -----
|
|
19386
|
-
type UnicornPreferExplicitViewportUnits = [] | [{
|
|
19387
|
-
unit?: ("dvh" | "svh" | "lvh");
|
|
19388
|
-
}];
|
|
19389
20567
|
// ----- unicorn/prefer-export-from -----
|
|
19390
20568
|
type UnicornPreferExportFrom = [] | [{
|
|
19391
20569
|
checkUsedVariables?: boolean;
|
|
@@ -19429,6 +20607,10 @@ type UnicornPreferSetHas = [] | [{
|
|
|
19429
20607
|
}];
|
|
19430
20608
|
// ----- unicorn/prefer-short-arrow-method -----
|
|
19431
20609
|
type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
|
|
20610
|
+
// ----- unicorn/prefer-simplified-conditions -----
|
|
20611
|
+
type UnicornPreferSimplifiedConditions = [] | [{
|
|
20612
|
+
negatedConditions?: ("simplify" | "expand");
|
|
20613
|
+
}];
|
|
19432
20614
|
// ----- unicorn/prefer-single-call -----
|
|
19433
20615
|
type UnicornPreferSingleCall = [] | [{
|
|
19434
20616
|
ignore?: string[];
|
|
@@ -19453,7 +20635,10 @@ type UnicornPreferTemporal = [] | [{
|
|
|
19453
20635
|
checkMethods?: boolean;
|
|
19454
20636
|
}];
|
|
19455
20637
|
// ----- unicorn/prefer-ternary -----
|
|
19456
|
-
type UnicornPreferTernary = [] | [("always" | "only-single-line")]
|
|
20638
|
+
type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
|
|
20639
|
+
checkVaryingBase?: boolean;
|
|
20640
|
+
checkComputedMemberAccess?: boolean;
|
|
20641
|
+
}];
|
|
19457
20642
|
// ----- unicorn/relative-url-style -----
|
|
19458
20643
|
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
19459
20644
|
// ----- unicorn/require-css-escape -----
|
|
@@ -21223,9 +22408,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
21223
22408
|
markers?: string[];
|
|
21224
22409
|
}];
|
|
21225
22410
|
// Names of all the configs
|
|
21226
|
-
type ConfigNames = 'moso/eslint-comments' | 'moso/ignores/globals' | 'moso/ignores/gitignore' | 'moso/imports' | 'moso/imports/typescript' | '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';
|
|
21227
|
-
//#endregion
|
|
21228
|
-
//#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';
|
|
21229
22412
|
type Awaitable<T> = Promise<T> | T;
|
|
21230
22413
|
type ProjectMode = "application" | "library" | "none";
|
|
21231
22414
|
type ConfigOptions = {
|
|
@@ -21275,6 +22458,14 @@ type ConfigOptions = {
|
|
|
21275
22458
|
* @default true
|
|
21276
22459
|
*/
|
|
21277
22460
|
regexp?: boolean | OptionsOverrides;
|
|
22461
|
+
/**
|
|
22462
|
+
* Enable security rules.
|
|
22463
|
+
*
|
|
22464
|
+
* @see https://https://github.com/eslint-community/eslint-plugin-security
|
|
22465
|
+
*
|
|
22466
|
+
* @default true
|
|
22467
|
+
*/
|
|
22468
|
+
security?: boolean | OptionsSecurity["severity"] | (OptionsOverrides & OptionsSecurity);
|
|
21278
22469
|
/**
|
|
21279
22470
|
* Enable test support.
|
|
21280
22471
|
*
|
|
@@ -21345,12 +22536,24 @@ type FrameworkOptions = {
|
|
|
21345
22536
|
* @default true
|
|
21346
22537
|
*/
|
|
21347
22538
|
node?: boolean | OptionsNode;
|
|
22539
|
+
/**
|
|
22540
|
+
* Enable Preact support.
|
|
22541
|
+
*
|
|
22542
|
+
* @default auto-detect based on the dependencies
|
|
22543
|
+
*/
|
|
22544
|
+
preact?: boolean | OptionsPreact;
|
|
21348
22545
|
/**
|
|
21349
22546
|
* Enable React support.
|
|
21350
22547
|
*
|
|
21351
22548
|
* @default auto-detect based on the dependencies
|
|
21352
22549
|
*/
|
|
21353
22550
|
react?: boolean | OptionsReact;
|
|
22551
|
+
/**
|
|
22552
|
+
* Enable Svelte/SvelteKit support.
|
|
22553
|
+
*
|
|
22554
|
+
* @default auto-detect based on the dependencies
|
|
22555
|
+
*/
|
|
22556
|
+
svelte?: boolean | OptionsSvelte;
|
|
21354
22557
|
/**
|
|
21355
22558
|
* Enable TailwindCSS support.
|
|
21356
22559
|
*
|
|
@@ -21382,7 +22585,7 @@ type LanguageOptions = {
|
|
|
21382
22585
|
/**
|
|
21383
22586
|
* Enable JSON/JSON5/JSONC support.
|
|
21384
22587
|
*
|
|
21385
|
-
* @default
|
|
22588
|
+
* @default false
|
|
21386
22589
|
*/
|
|
21387
22590
|
jsonc?: boolean | OptionsOverrides;
|
|
21388
22591
|
/**
|
|
@@ -21524,6 +22727,18 @@ type OptionsHasDOM = {
|
|
|
21524
22727
|
*/
|
|
21525
22728
|
hasDOM?: boolean;
|
|
21526
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
|
+
};
|
|
21527
22742
|
type OptionsHasTypeScript = {
|
|
21528
22743
|
typescript?: boolean;
|
|
21529
22744
|
};
|
|
@@ -21660,6 +22875,21 @@ type OptionsOverrides = {
|
|
|
21660
22875
|
type OptionsPerfectionist = OptionsOverrides & {
|
|
21661
22876
|
perfectionist?: boolean;
|
|
21662
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
|
+
};
|
|
21663
22893
|
type OptionsProjectRoot = {
|
|
21664
22894
|
projectRoot?: Readonly<string>;
|
|
21665
22895
|
};
|
|
@@ -21699,9 +22929,22 @@ type OptionsReact = OptionsOverrides & {
|
|
|
21699
22929
|
allowConstantExport?: boolean;
|
|
21700
22930
|
};
|
|
21701
22931
|
};
|
|
22932
|
+
type OptionsSecurity = OptionsOverrides & {
|
|
22933
|
+
/**
|
|
22934
|
+
* Security rule enforcement options.
|
|
22935
|
+
*
|
|
22936
|
+
* - `none`: no security rules
|
|
22937
|
+
* - `lite`: basic rules set to 'warn' (detect-object-injection, detect-non-literal-fs-filename, and detect-non-literal-regexp off)
|
|
22938
|
+
* - `moderate`: standard rules set to 'error' (detect-object-injection, detect-non-literal-fs-filename, and detect-non-literal-regexp off)
|
|
22939
|
+
* - `recommended`: alias for `moderate`
|
|
22940
|
+
* - `strict`: all security rules set to 'error' (including detect-object-injection, detect-non-literal-fs-filename, and detect-non-literal-regexp)
|
|
22941
|
+
*/
|
|
22942
|
+
severity?: "lite" | "moderate" | "none" | "recommended" | "strict";
|
|
22943
|
+
};
|
|
21702
22944
|
type OptionsStylistic = {
|
|
21703
22945
|
stylistic?: boolean | StylisticConfig;
|
|
21704
22946
|
};
|
|
22947
|
+
type OptionsSvelte = OptionsOverrides;
|
|
21705
22948
|
type OptionsTailwind = OptionsOverrides & ({
|
|
21706
22949
|
/**
|
|
21707
22950
|
* Path to the entry file of the CSS-based Tailwind config.
|
|
@@ -21865,62 +23108,26 @@ type TypedFlatConfigItem = Omit<(ConfigWithExtends | Linter.Config), "ignores" |
|
|
|
21865
23108
|
*/
|
|
21866
23109
|
rules?: (RuleOptions & TSESLint.FlatConfig.Config["rules"]);
|
|
21867
23110
|
};
|
|
21868
|
-
//#endregion
|
|
21869
|
-
//#region src/configs/astro.d.ts
|
|
21870
23111
|
export declare const astro: (options: Readonly<OptionsAstro & OptionsLessOpinionated & OptionsOverrides & OptionsTypeScriptParserOptions & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21871
|
-
//#endregion
|
|
21872
|
-
//#region src/configs/baseline.d.ts
|
|
21873
23112
|
export declare const baseline: (options: Readonly<OptionsBaseline & OptionsHasDOM & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & Required<OptionsFiles & OptionsHasTypeScript>>) => Promise<TypedFlatConfigItem[]>;
|
|
21874
|
-
//#endregion
|
|
21875
|
-
//#region src/configs/disables.d.ts
|
|
21876
23113
|
export declare const disables: (functionalEnabled?: boolean) => Promise<TypedFlatConfigItem[]>;
|
|
21877
|
-
//#endregion
|
|
21878
|
-
//#region src/configs/e18e.d.ts
|
|
21879
23114
|
export declare const e18e: (options: Readonly<OptionsE18e & OptionsIsInEditor & OptionsLessOpinionated & OptionsMode>) => Promise<TypedFlatConfigItem[]>;
|
|
21880
|
-
//#endregion
|
|
21881
|
-
//#region src/configs/eslint-comments.d.ts
|
|
21882
23115
|
export declare const comments: (options: Readonly<OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|
|
21883
|
-
//#endregion
|
|
21884
|
-
//#region src/configs/functional.d.ts
|
|
21885
23116
|
export declare const functional: (options: Readonly<OptionsOverrides & Required<OptionsFunctional & OptionsMode & OptionsTypeScriptParserOptions & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21886
|
-
//#endregion
|
|
21887
|
-
//#region src/configs/ignores.d.ts
|
|
21888
23117
|
export declare const ignores: (options: Readonly<OptionsIgnores>) => Promise<TypedFlatConfigItem[]>;
|
|
21889
|
-
//#endregion
|
|
21890
|
-
//#region src/configs/imports.d.ts
|
|
21891
23118
|
export declare const imports: (options: Readonly<OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptParserOptions & Required<RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21892
|
-
//#endregion
|
|
21893
|
-
//#region src/configs/javascript.d.ts
|
|
21894
23119
|
export declare const javascript: (options: Readonly<OptionsIsInEditor & OptionsLessOpinionated & OptionsOverrides & OptionsPerfectionist & Required<OptionsFunctional>>) => Promise<TypedFlatConfigItem[]>;
|
|
21895
|
-
//#endregion
|
|
21896
|
-
//#region src/configs/jsdoc.d.ts
|
|
21897
23120
|
export declare const jsdoc: (options: Readonly<OptionsJSDoc & OptionsLessOpinionated & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21898
|
-
//#endregion
|
|
21899
|
-
//#region src/configs/jsonc.d.ts
|
|
21900
23121
|
export declare const jsonc: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21901
|
-
//#endregion
|
|
21902
|
-
//#region src/configs/jsx.d.ts
|
|
21903
23122
|
export declare const jsx: (options: Readonly<OptionsJSX & OptionsLessOpinionated & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21904
|
-
//#endregion
|
|
21905
|
-
//#region src/configs/nextjs.d.ts
|
|
21906
23123
|
export declare const nextjs: (options: Readonly<OptionsNextJS & Required<OptionsFiles>>) => Promise<TypedFlatConfigItem[]>;
|
|
21907
|
-
//#endregion
|
|
21908
|
-
//#region src/configs/node.d.ts
|
|
21909
23124
|
export declare const node: (options: Readonly<OptionsFiles & OptionsLessOpinionated & OptionsNode>) => Promise<TypedFlatConfigItem[]>;
|
|
21910
|
-
//#endregion
|
|
21911
|
-
//#region src/configs/perfectionist.d.ts
|
|
21912
23125
|
export declare const perfectionist: (options: Readonly<OptionsPerfectionist>) => Promise<TypedFlatConfigItem[]>;
|
|
21913
|
-
|
|
21914
|
-
//#region src/configs/promise.d.ts
|
|
23126
|
+
export declare const preact: (options: Readonly<OptionsLessOpinionated & OptionsPreact & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21915
23127
|
export declare const promise: (options: Readonly<OptionsHasTypeScript & OptionsLessOpinionated & OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|
|
21916
|
-
//#endregion
|
|
21917
|
-
//#region src/configs/react.d.ts
|
|
21918
23128
|
export declare const react: (options: Readonly<OptionsLessOpinionated & OptionsReact & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21919
|
-
//#endregion
|
|
21920
|
-
//#region src/configs/regexp.d.ts
|
|
21921
23129
|
export declare const regexp: (options: Readonly<OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|
|
21922
|
-
|
|
21923
|
-
//#region src/configs/sort.d.ts
|
|
23130
|
+
export declare const security: (options: Readonly<OptionsSecurity>) => Promise<TypedFlatConfigItem[]>;
|
|
21924
23131
|
/**
|
|
21925
23132
|
* Sort package.json
|
|
21926
23133
|
*
|
|
@@ -21933,33 +23140,16 @@ export declare const sortPackageJson: (options?: Readonly<OptionsOverrides>) =>
|
|
|
21933
23140
|
* Requires `jsonc` config
|
|
21934
23141
|
*/
|
|
21935
23142
|
export declare const sortTsconfig: (options?: Readonly<OptionsOverrides>) => TypedFlatConfigItem[];
|
|
21936
|
-
//#endregion
|
|
21937
|
-
//#region src/configs/stylistic.d.ts
|
|
21938
23143
|
export declare const StylisticConfigDefaults: Required<StylisticConfig>;
|
|
21939
23144
|
export declare const stylistic: (options: Readonly<OptionsLessOpinionated & OptionsOverrides & Required<OptionsHasTypeScript & StylisticConfig>>) => Promise<TypedFlatConfigItem[]>;
|
|
21940
|
-
|
|
21941
|
-
//#region src/configs/tailwind.d.ts
|
|
23145
|
+
export declare const svelte: (options: Readonly<OptionsLessOpinionated & OptionsSvelte & OptionsTypeScriptParserOptions & Required<OptionsFiles & OptionsHasTypeScript & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21942
23146
|
export declare const tailwind: (options: Readonly<Required<RequiredOptionsStylistic & RequiredOptionsTailwind>>) => Promise<TypedFlatConfigItem[]>;
|
|
21943
|
-
//#endregion
|
|
21944
|
-
//#region src/configs/test.d.ts
|
|
21945
23147
|
export declare const test: (options: Readonly<OptionsIsInEditor & OptionsOverrides & Required<OptionsFiles & OptionsFunctional>>) => Promise<TypedFlatConfigItem[]>;
|
|
21946
|
-
//#endregion
|
|
21947
|
-
//#region src/configs/toml.d.ts
|
|
21948
23148
|
export declare const toml: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21949
|
-
|
|
21950
|
-
//#region src/configs/typescript.d.ts
|
|
21951
|
-
export declare const typescript: (options: Readonly<OptionsLessOpinionated & OptionsOverrides & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptWithTypes & Required<OptionsComponentExts & OptionsFiles & OptionsFunctional & OptionsMode & OptionsTypeScriptParserOptions>>) => Promise<TypedFlatConfigItem[]>;
|
|
21952
|
-
//#endregion
|
|
21953
|
-
//#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[]>;
|
|
21954
23150
|
export declare const unicorn: (options: Readonly<OptionsHasDOM & OptionsLessOpinionated & OptionsOverrides & Required<OptionsFiles>>) => Promise<TypedFlatConfigItem[]>;
|
|
21955
|
-
//#endregion
|
|
21956
|
-
//#region src/configs/vue.d.ts
|
|
21957
23151
|
export declare const vue: (options: Readonly<OptionsOverrides & OptionsTypeScriptWithTypes & OptionsVue & Required<OptionsFiles & OptionsHasTypeScript & OptionsTypeScriptParserOptions & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21958
|
-
//#endregion
|
|
21959
|
-
//#region src/configs/yaml.d.ts
|
|
21960
23152
|
export declare const yaml: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
21961
|
-
//#endregion
|
|
21962
|
-
//#region src/factory.d.ts
|
|
21963
23153
|
/**
|
|
21964
23154
|
* Construct an array of ESLint flat config items.
|
|
21965
23155
|
*
|
|
@@ -21968,12 +23158,8 @@ export declare const yaml: (options: Readonly<OptionsOverrides & Required<Option
|
|
|
21968
23158
|
* @returns {Promise<TypedFlatConfigItem[]>} - The merged ESLint configurations
|
|
21969
23159
|
*/
|
|
21970
23160
|
export declare function moso(options?: Omit<TypedFlatConfigItem, "files" | "ignores"> & OptionsConfig, ...userConfigs: ReadonlyArray<Awaitable<Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>>): Promise<Linter.Config[]>;
|
|
21971
|
-
//#endregion
|
|
21972
|
-
//#region src/presets.d.ts
|
|
21973
23161
|
export declare const full: OptionsConfig;
|
|
21974
23162
|
export declare const off: OptionsConfig;
|
|
21975
|
-
//#endregion
|
|
21976
|
-
//#region src/utils.d.ts
|
|
21977
23163
|
/**
|
|
21978
23164
|
* Resolve and flatten any mix of (awaitable) config items or arrays
|
|
21979
23165
|
* into a single flat array of config items.
|
|
@@ -22082,5 +23268,4 @@ export declare const memoize: <T extends ESLint.Plugin>(plugin: T, key: string)
|
|
|
22082
23268
|
* @see https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/utils/inline-non-void-elements.json
|
|
22083
23269
|
*/
|
|
22084
23270
|
export declare const vueInlineElements: ReadonlyArray<string>;
|
|
22085
|
-
|
|
22086
|
-
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 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 };
|