@kazupon/eslint-config 0.31.1 → 0.32.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 +0 -2
- package/dist/index.d.ts +187 -65
- package/package.json +30 -30
package/README.md
CHANGED
|
@@ -179,7 +179,5 @@ Thank you! ❤️
|
|
|
179
179
|
|
|
180
180
|
[npm-version-src]: https://img.shields.io/npm/v/@kazupon/eslint-config?style=flat
|
|
181
181
|
[npm-version-href]: https://npmjs.com/package/@kazupon/eslint-config
|
|
182
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/@kazupon/eslint-config?style=flat
|
|
183
|
-
[npm-downloads-href]: https://npmjs.com/package/@kazupon/eslint-config
|
|
184
182
|
[ci-src]: https://github.com/kazupon/eslint-config/actions/workflows/ci.yml/badge.svg
|
|
185
183
|
[ci-href]: https://github.com/kazupon/eslint-config/actions/workflows/ci.yml
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
2
2
|
import { Awaitable } from "@kazupon/jts-utils/types";
|
|
3
3
|
import { ESLint, Linter } from "eslint";
|
|
4
|
-
import * as
|
|
4
|
+
import * as typescript0 from "typescript";
|
|
5
5
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/config.d.ts
|
|
@@ -142,6 +142,11 @@ interface CssRules {
|
|
|
142
142
|
*/
|
|
143
143
|
"css/prefer-logical-properties"?: Linter.RuleEntry<CssPreferLogicalProperties>;
|
|
144
144
|
/**
|
|
145
|
+
* Enforce the use of relative font units
|
|
146
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/relative-font-units.md
|
|
147
|
+
*/
|
|
148
|
+
"css/relative-font-units"?: Linter.RuleEntry<CssRelativeFontUnits>;
|
|
149
|
+
/**
|
|
145
150
|
* Enforce the use of baseline features
|
|
146
151
|
* @see https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md
|
|
147
152
|
*/
|
|
@@ -158,6 +163,11 @@ type CssPreferLogicalProperties = [] | [{
|
|
|
158
163
|
allowProperties?: string[];
|
|
159
164
|
allowUnits?: string[];
|
|
160
165
|
}];
|
|
166
|
+
// ----- css/relative-font-units -----
|
|
167
|
+
type CssRelativeFontUnits = [] | [{
|
|
168
|
+
allowUnits?: ("%" | "cap" | "ch" | "em" | "ex" | "ic" | "lh" | "rcap" | "rch" | "rem" | "rex" | "ric" | "rlh")[];
|
|
169
|
+
[k: string]: unknown | undefined;
|
|
170
|
+
}];
|
|
161
171
|
// ----- css/use-baseline -----
|
|
162
172
|
type CssUseBaseline = [] | [{
|
|
163
173
|
available?: (("widely" | "newly") | number);
|
|
@@ -216,6 +226,11 @@ interface HtmlRules {
|
|
|
216
226
|
*/
|
|
217
227
|
"@html-eslint/no-aria-hidden-body"?: Linter.RuleEntry<[]>;
|
|
218
228
|
/**
|
|
229
|
+
* Disallow aria-hidden="true" on focusable elements
|
|
230
|
+
* @see https://html-eslint.org/docs/rules/no-aria-hidden-on-focusable
|
|
231
|
+
*/
|
|
232
|
+
"@html-eslint/no-aria-hidden-on-focusable"?: Linter.RuleEntry<[]>;
|
|
233
|
+
/**
|
|
219
234
|
* Disallow to use duplicate attributes
|
|
220
235
|
* @see https://html-eslint.org/docs/rules/no-duplicate-attrs
|
|
221
236
|
*/
|
|
@@ -231,6 +246,16 @@ interface HtmlRules {
|
|
|
231
246
|
*/
|
|
232
247
|
"@html-eslint/no-duplicate-id"?: Linter.RuleEntry<[]>;
|
|
233
248
|
/**
|
|
249
|
+
* Disallow duplicate tags in `<head>`
|
|
250
|
+
* @see https://html-eslint.org/docs/rules/no-duplicate-in-head
|
|
251
|
+
*/
|
|
252
|
+
"@html-eslint/no-duplicate-in-head"?: Linter.RuleEntry<[]>;
|
|
253
|
+
/**
|
|
254
|
+
* Disallow empty or inaccessible headings.
|
|
255
|
+
* @see https://html-eslint.org/docs/rules/no-empty-headings
|
|
256
|
+
*/
|
|
257
|
+
"@html-eslint/no-empty-headings"?: Linter.RuleEntry<[]>;
|
|
258
|
+
/**
|
|
234
259
|
* Disallow an extra spacing around attributes
|
|
235
260
|
* @see https://html-eslint.org/docs/rules/no-extra-spacing-attrs
|
|
236
261
|
*/
|
|
@@ -251,6 +276,11 @@ interface HtmlRules {
|
|
|
251
276
|
*/
|
|
252
277
|
"@html-eslint/no-inline-styles"?: Linter.RuleEntry<[]>;
|
|
253
278
|
/**
|
|
279
|
+
* Disallows the use of invalid HTML entities
|
|
280
|
+
* @see https://html-eslint.org/docs/rules/no-invalid-entity
|
|
281
|
+
*/
|
|
282
|
+
"@html-eslint/no-invalid-entity"?: Linter.RuleEntry<[]>;
|
|
283
|
+
/**
|
|
254
284
|
* Disallows use of invalid role.
|
|
255
285
|
* @see https://html-eslint.org/docs/rules/no-invalid-role
|
|
256
286
|
*/
|
|
@@ -421,13 +451,11 @@ interface HtmlRules {
|
|
|
421
451
|
type HtmlEslintAttrsNewline = [] | [{
|
|
422
452
|
closeStyle?: ("newline" | "sameline");
|
|
423
453
|
ifAttrsMoreThan?: number;
|
|
424
|
-
[k: string]: unknown | undefined;
|
|
425
454
|
}];
|
|
426
455
|
// ----- @html-eslint/element-newline -----
|
|
427
456
|
type HtmlEslintElementNewline = [] | [{
|
|
428
457
|
inline?: string[];
|
|
429
458
|
skip?: string[];
|
|
430
|
-
[k: string]: unknown | undefined;
|
|
431
459
|
}];
|
|
432
460
|
// ----- @html-eslint/id-naming-convention -----
|
|
433
461
|
type HtmlEslintIdNamingConvention = [] | [("camelCase" | "snake_case" | "PascalCase" | "kebab-case" | "regex")] | [("camelCase" | "snake_case" | "PascalCase" | "kebab-case" | "regex"), {
|
|
@@ -440,7 +468,6 @@ type HtmlEslintIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
440
468
|
tagChildrenIndent?: {
|
|
441
469
|
[k: string]: number;
|
|
442
470
|
};
|
|
443
|
-
[k: string]: unknown | undefined;
|
|
444
471
|
}];
|
|
445
472
|
// ----- @html-eslint/max-element-depth -----
|
|
446
473
|
type HtmlEslintMaxElementDepth = [] | [{
|
|
@@ -452,7 +479,6 @@ type HtmlEslintNoExtraSpacingAttrs = [] | [{
|
|
|
452
479
|
disallowMissing?: boolean;
|
|
453
480
|
disallowTabs?: boolean;
|
|
454
481
|
enforceBeforeSelfClose?: boolean;
|
|
455
|
-
[k: string]: unknown | undefined;
|
|
456
482
|
}];
|
|
457
483
|
// ----- @html-eslint/no-extra-spacing-text -----
|
|
458
484
|
type HtmlEslintNoExtraSpacingText = [] | [{
|
|
@@ -467,17 +493,17 @@ type HtmlEslintNoRestrictedAttrValues = {
|
|
|
467
493
|
attrPatterns: string[];
|
|
468
494
|
attrValuePatterns: string[];
|
|
469
495
|
message?: string;
|
|
470
|
-
[k: string]: unknown | undefined;
|
|
471
496
|
}[];
|
|
472
497
|
// ----- @html-eslint/no-restricted-attrs -----
|
|
473
498
|
type HtmlEslintNoRestrictedAttrs = {
|
|
474
499
|
tagPatterns: string[];
|
|
475
500
|
attrPatterns: string[];
|
|
476
501
|
message?: string;
|
|
477
|
-
[k: string]: unknown | undefined;
|
|
478
502
|
}[];
|
|
479
503
|
// ----- @html-eslint/quotes -----
|
|
480
|
-
type HtmlEslintQuotes = [] | [("single" | "double")]
|
|
504
|
+
type HtmlEslintQuotes = [] | [("single" | "double")] | [("single" | "double"), {
|
|
505
|
+
enforceTemplatedAttrValue?: boolean;
|
|
506
|
+
}];
|
|
481
507
|
// ----- @html-eslint/require-attrs -----
|
|
482
508
|
type HtmlEslintRequireAttrs = {
|
|
483
509
|
tag: string;
|
|
@@ -497,14 +523,12 @@ type HtmlEslintRequireExplicitSize = [] | [{
|
|
|
497
523
|
// ----- @html-eslint/require-img-alt -----
|
|
498
524
|
type HtmlEslintRequireImgAlt = [] | [{
|
|
499
525
|
substitute?: string[];
|
|
500
|
-
[k: string]: unknown | undefined;
|
|
501
526
|
}];
|
|
502
527
|
// ----- @html-eslint/require-open-graph-protocol -----
|
|
503
528
|
type HtmlEslintRequireOpenGraphProtocol = [] | [string[]];
|
|
504
529
|
// ----- @html-eslint/sort-attrs -----
|
|
505
530
|
type HtmlEslintSortAttrs = [] | [{
|
|
506
531
|
priority?: string[];
|
|
507
|
-
[k: string]: unknown | undefined;
|
|
508
532
|
}];
|
|
509
533
|
// ----- @html-eslint/use-baseline -----
|
|
510
534
|
type HtmlEslintUseBaseline = [] | [{
|
|
@@ -515,42 +539,47 @@ type HtmlEslintUseBaseline = [] | [{
|
|
|
515
539
|
interface ImportsRules {
|
|
516
540
|
/**
|
|
517
541
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
518
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
542
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/consistent-type-specifier-style.md
|
|
519
543
|
*/
|
|
520
544
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
521
545
|
/**
|
|
522
546
|
* Ensure a default export is present, given a default import.
|
|
523
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
547
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/default.md
|
|
524
548
|
*/
|
|
525
549
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
526
550
|
/**
|
|
527
551
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
528
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
552
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/dynamic-import-chunkname.md
|
|
529
553
|
*/
|
|
530
554
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
531
555
|
/**
|
|
556
|
+
* Enforce either using, or omitting, the `node:` protocol when importing Node.js builtin modules.
|
|
557
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/enforce-node-protocol-usage.md
|
|
558
|
+
*/
|
|
559
|
+
"import/enforce-node-protocol-usage"?: Linter.RuleEntry<ImportEnforceNodeProtocolUsage>;
|
|
560
|
+
/**
|
|
532
561
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
533
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
562
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/export.md
|
|
534
563
|
*/
|
|
535
564
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
536
565
|
/**
|
|
537
566
|
* Ensure all exports appear after other statements.
|
|
538
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
567
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/exports-last.md
|
|
539
568
|
*/
|
|
540
569
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
541
570
|
/**
|
|
542
571
|
* Ensure consistent use of file extension within the import path.
|
|
543
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
572
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/extensions.md
|
|
544
573
|
*/
|
|
545
574
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
546
575
|
/**
|
|
547
576
|
* Ensure all imports appear before other statements.
|
|
548
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
577
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/first.md
|
|
549
578
|
*/
|
|
550
579
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
551
580
|
/**
|
|
552
581
|
* Prefer named exports to be grouped together in a single export declaration
|
|
553
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
582
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/group-exports.md
|
|
554
583
|
*/
|
|
555
584
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
556
585
|
/**
|
|
@@ -561,77 +590,77 @@ interface ImportsRules {
|
|
|
561
590
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
562
591
|
/**
|
|
563
592
|
* Enforce the maximum number of dependencies a module can have.
|
|
564
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
593
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/max-dependencies.md
|
|
565
594
|
*/
|
|
566
595
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
567
596
|
/**
|
|
568
597
|
* Ensure named imports correspond to a named export in the remote file.
|
|
569
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
598
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/named.md
|
|
570
599
|
*/
|
|
571
600
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
572
601
|
/**
|
|
573
602
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
574
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
603
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/namespace.md
|
|
575
604
|
*/
|
|
576
605
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
577
606
|
/**
|
|
578
607
|
* Enforce a newline after import statements.
|
|
579
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
608
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/newline-after-import.md
|
|
580
609
|
*/
|
|
581
610
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
582
611
|
/**
|
|
583
612
|
* Forbid import of modules using absolute paths.
|
|
584
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
613
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-absolute-path.md
|
|
585
614
|
*/
|
|
586
615
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
587
616
|
/**
|
|
588
617
|
* Forbid AMD `require` and `define` calls.
|
|
589
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
618
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-amd.md
|
|
590
619
|
*/
|
|
591
620
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
592
621
|
/**
|
|
593
622
|
* Forbid anonymous values as default exports.
|
|
594
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
623
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-anonymous-default-export.md
|
|
595
624
|
*/
|
|
596
625
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
597
626
|
/**
|
|
598
627
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
599
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
628
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-commonjs.md
|
|
600
629
|
*/
|
|
601
630
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
602
631
|
/**
|
|
603
632
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
604
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
633
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-cycle.md
|
|
605
634
|
*/
|
|
606
635
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
607
636
|
/**
|
|
608
637
|
* Forbid default exports.
|
|
609
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
638
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-default-export.md
|
|
610
639
|
*/
|
|
611
640
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
612
641
|
/**
|
|
613
642
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
614
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
643
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-deprecated.md
|
|
615
644
|
*/
|
|
616
645
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
617
646
|
/**
|
|
618
647
|
* Forbid repeated import of the same module in multiple places.
|
|
619
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
648
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-duplicates.md
|
|
620
649
|
*/
|
|
621
650
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
622
651
|
/**
|
|
623
652
|
* Forbid `require()` calls with expressions.
|
|
624
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
653
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-dynamic-require.md
|
|
625
654
|
*/
|
|
626
655
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
627
656
|
/**
|
|
628
657
|
* Forbid empty named import blocks.
|
|
629
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
658
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-empty-named-blocks.md
|
|
630
659
|
*/
|
|
631
660
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
632
661
|
/**
|
|
633
662
|
* Forbid the use of extraneous packages.
|
|
634
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
663
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-extraneous-dependencies.md
|
|
635
664
|
*/
|
|
636
665
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
637
666
|
/**
|
|
@@ -640,102 +669,102 @@ interface ImportsRules {
|
|
|
640
669
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
641
670
|
/**
|
|
642
671
|
* Forbid importing the submodules of other modules.
|
|
643
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
672
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-internal-modules.md
|
|
644
673
|
*/
|
|
645
674
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
646
675
|
/**
|
|
647
676
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
648
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
677
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-mutable-exports.md
|
|
649
678
|
*/
|
|
650
679
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
651
680
|
/**
|
|
652
681
|
* Forbid use of exported name as identifier of default export.
|
|
653
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
682
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-named-as-default.md
|
|
654
683
|
*/
|
|
655
684
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
656
685
|
/**
|
|
657
686
|
* Forbid use of exported name as property of default export.
|
|
658
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
687
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-named-as-default-member.md
|
|
659
688
|
*/
|
|
660
689
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
661
690
|
/**
|
|
662
691
|
* Forbid named default exports.
|
|
663
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
692
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-named-default.md
|
|
664
693
|
*/
|
|
665
694
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
666
695
|
/**
|
|
667
696
|
* Forbid named exports.
|
|
668
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
697
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-named-export.md
|
|
669
698
|
*/
|
|
670
699
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
671
700
|
/**
|
|
672
701
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
673
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
702
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-namespace.md
|
|
674
703
|
*/
|
|
675
704
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
676
705
|
/**
|
|
677
706
|
* Forbid Node.js builtin modules.
|
|
678
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
707
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-nodejs-modules.md
|
|
679
708
|
*/
|
|
680
709
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
681
710
|
/**
|
|
682
711
|
* Forbid importing packages through relative paths.
|
|
683
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
712
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-relative-packages.md
|
|
684
713
|
*/
|
|
685
714
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
686
715
|
/**
|
|
687
716
|
* Forbid importing modules from parent directories.
|
|
688
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
717
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-relative-parent-imports.md
|
|
689
718
|
*/
|
|
690
719
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
691
720
|
/**
|
|
692
721
|
* Enforce which files can be imported in a given folder.
|
|
693
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
722
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-restricted-paths.md
|
|
694
723
|
*/
|
|
695
724
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
696
725
|
/**
|
|
697
726
|
* Forbid a module from importing itself.
|
|
698
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
727
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-self-import.md
|
|
699
728
|
*/
|
|
700
729
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
701
730
|
/**
|
|
702
731
|
* Forbid unassigned imports
|
|
703
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
732
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-unassigned-import.md
|
|
704
733
|
*/
|
|
705
734
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
706
735
|
/**
|
|
707
736
|
* Ensure imports point to a file/module that can be resolved.
|
|
708
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
737
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-unresolved.md
|
|
709
738
|
*/
|
|
710
739
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
711
740
|
/**
|
|
712
741
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
713
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
742
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-unused-modules.md
|
|
714
743
|
*/
|
|
715
744
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
716
745
|
/**
|
|
717
746
|
* Forbid unnecessary path segments in import and require statements.
|
|
718
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
747
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-useless-path-segments.md
|
|
719
748
|
*/
|
|
720
749
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
721
750
|
/**
|
|
722
751
|
* Forbid webpack loader syntax in imports.
|
|
723
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
752
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-webpack-loader-syntax.md
|
|
724
753
|
*/
|
|
725
754
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
726
755
|
/**
|
|
727
756
|
* Enforce a convention in module import order.
|
|
728
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
757
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/order.md
|
|
729
758
|
*/
|
|
730
759
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
731
760
|
/**
|
|
732
761
|
* Prefer a default export if module exports a single name or multiple names.
|
|
733
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
762
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/prefer-default-export.md
|
|
734
763
|
*/
|
|
735
764
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
736
765
|
/**
|
|
737
766
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
738
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.
|
|
767
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/unambiguous.md
|
|
739
768
|
*/
|
|
740
769
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
741
770
|
/**
|
|
@@ -774,6 +803,8 @@ type ImportDynamicImportChunkname = [] | [{
|
|
|
774
803
|
webpackChunknameFormat?: string;
|
|
775
804
|
[k: string]: unknown | undefined;
|
|
776
805
|
}];
|
|
806
|
+
// ----- import/enforce-node-protocol-usage -----
|
|
807
|
+
type ImportEnforceNodeProtocolUsage = [("always" | "never")];
|
|
777
808
|
// ----- import/extensions -----
|
|
778
809
|
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
779
810
|
pattern?: {
|
|
@@ -781,6 +812,13 @@ type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [
|
|
|
781
812
|
};
|
|
782
813
|
checkTypeImports?: boolean;
|
|
783
814
|
ignorePackages?: boolean;
|
|
815
|
+
pathGroupOverrides?: {
|
|
816
|
+
pattern: string;
|
|
817
|
+
patternOptions?: {
|
|
818
|
+
[k: string]: unknown | undefined;
|
|
819
|
+
};
|
|
820
|
+
action: ("enforce" | "ignore");
|
|
821
|
+
}[];
|
|
784
822
|
[k: string]: unknown | undefined;
|
|
785
823
|
}] | [] | [{
|
|
786
824
|
pattern?: {
|
|
@@ -788,6 +826,13 @@ type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [
|
|
|
788
826
|
};
|
|
789
827
|
checkTypeImports?: boolean;
|
|
790
828
|
ignorePackages?: boolean;
|
|
829
|
+
pathGroupOverrides?: {
|
|
830
|
+
pattern: string;
|
|
831
|
+
patternOptions?: {
|
|
832
|
+
[k: string]: unknown | undefined;
|
|
833
|
+
};
|
|
834
|
+
action: ("enforce" | "ignore");
|
|
835
|
+
}[];
|
|
791
836
|
[k: string]: unknown | undefined;
|
|
792
837
|
}] | [] | [{
|
|
793
838
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
@@ -953,7 +998,7 @@ type ImportNoUselessPathSegments = [] | [{
|
|
|
953
998
|
}];
|
|
954
999
|
// ----- import/order -----
|
|
955
1000
|
type ImportOrder = [] | [{
|
|
956
|
-
groups?: unknown[];
|
|
1001
|
+
groups?: (("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type") | ("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type")[])[];
|
|
957
1002
|
pathGroupsExcludedImportTypes?: unknown[];
|
|
958
1003
|
distinctGroup?: boolean;
|
|
959
1004
|
pathGroups?: {
|
|
@@ -965,6 +1010,9 @@ type ImportOrder = [] | [{
|
|
|
965
1010
|
position?: ("after" | "before");
|
|
966
1011
|
}[];
|
|
967
1012
|
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
1013
|
+
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
1014
|
+
consolidateIslands?: ("inside-groups" | "never");
|
|
1015
|
+
sortTypesGroup?: boolean;
|
|
968
1016
|
named?: (boolean | {
|
|
969
1017
|
enabled?: boolean;
|
|
970
1018
|
import?: boolean;
|
|
@@ -1512,7 +1560,7 @@ interface JavascriptRules {
|
|
|
1512
1560
|
*/
|
|
1513
1561
|
"no-console"?: Linter.RuleEntry<NoConsole>;
|
|
1514
1562
|
/**
|
|
1515
|
-
* Disallow reassigning `const` variables
|
|
1563
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
1516
1564
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
1517
1565
|
*/
|
|
1518
1566
|
"no-const-assign"?: Linter.RuleEntry<[]>;
|
|
@@ -3395,6 +3443,7 @@ type NoConstantCondition = [] | [{
|
|
|
3395
3443
|
// ----- no-duplicate-imports -----
|
|
3396
3444
|
type NoDuplicateImports = [] | [{
|
|
3397
3445
|
includeExports?: boolean;
|
|
3446
|
+
allowSeparateTypeImports?: boolean;
|
|
3398
3447
|
}];
|
|
3399
3448
|
// ----- no-else-return -----
|
|
3400
3449
|
type NoElseReturn = [] | [{
|
|
@@ -4436,6 +4485,7 @@ type JsdocLinesBeforeBlock = [] | [{
|
|
|
4436
4485
|
checkBlockStarts?: boolean;
|
|
4437
4486
|
excludedTags?: string[];
|
|
4438
4487
|
ignoreSameLine?: boolean;
|
|
4488
|
+
ignoreSingleLines?: boolean;
|
|
4439
4489
|
lines?: number;
|
|
4440
4490
|
}];
|
|
4441
4491
|
// ----- jsdoc/match-description -----
|
|
@@ -4466,8 +4516,8 @@ type JsdocMatchName = [] | [{
|
|
|
4466
4516
|
context?: string;
|
|
4467
4517
|
disallowName?: string;
|
|
4468
4518
|
message?: string;
|
|
4519
|
+
replacement?: string;
|
|
4469
4520
|
tags?: string[];
|
|
4470
|
-
[k: string]: unknown | undefined;
|
|
4471
4521
|
}[];
|
|
4472
4522
|
}];
|
|
4473
4523
|
// ----- jsdoc/multiline-blocks -----
|
|
@@ -4479,6 +4529,7 @@ type JsdocMultilineBlocks = [] | [{
|
|
|
4479
4529
|
noMultilineBlocks?: boolean;
|
|
4480
4530
|
noSingleLineBlocks?: boolean;
|
|
4481
4531
|
noZeroLineText?: boolean;
|
|
4532
|
+
requireSingleLineUnderCount?: number;
|
|
4482
4533
|
singleLineTags?: string[];
|
|
4483
4534
|
}];
|
|
4484
4535
|
// ----- jsdoc/no-bad-blocks -----
|
|
@@ -4540,7 +4591,6 @@ type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [("alway
|
|
|
4540
4591
|
always?: string[];
|
|
4541
4592
|
any?: string[];
|
|
4542
4593
|
never?: string[];
|
|
4543
|
-
[k: string]: unknown | undefined;
|
|
4544
4594
|
};
|
|
4545
4595
|
}];
|
|
4546
4596
|
// ----- jsdoc/require-description -----
|
|
@@ -4750,7 +4800,6 @@ type JsdocSortTags = [] | [{
|
|
|
4750
4800
|
reportTagGroupSpacing?: boolean;
|
|
4751
4801
|
tagSequence?: {
|
|
4752
4802
|
tags?: string[];
|
|
4753
|
-
[k: string]: unknown | undefined;
|
|
4754
4803
|
}[];
|
|
4755
4804
|
}];
|
|
4756
4805
|
// ----- jsdoc/tag-lines -----
|
|
@@ -5279,6 +5328,11 @@ interface MarkdownRules {
|
|
|
5279
5328
|
*/
|
|
5280
5329
|
"markdown/heading-increment"?: Linter.RuleEntry<[]>;
|
|
5281
5330
|
/**
|
|
5331
|
+
* Disallow bare URLs
|
|
5332
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
5333
|
+
*/
|
|
5334
|
+
"markdown/no-bare-urls"?: Linter.RuleEntry<[]>;
|
|
5335
|
+
/**
|
|
5282
5336
|
* Disallow duplicate definitions
|
|
5283
5337
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
5284
5338
|
*/
|
|
@@ -5287,12 +5341,12 @@ interface MarkdownRules {
|
|
|
5287
5341
|
* Disallow duplicate headings in the same document
|
|
5288
5342
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
5289
5343
|
*/
|
|
5290
|
-
"markdown/no-duplicate-headings"?: Linter.RuleEntry<
|
|
5344
|
+
"markdown/no-duplicate-headings"?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>;
|
|
5291
5345
|
/**
|
|
5292
5346
|
* Disallow empty definitions
|
|
5293
5347
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
5294
5348
|
*/
|
|
5295
|
-
"markdown/no-empty-definitions"?: Linter.RuleEntry<
|
|
5349
|
+
"markdown/no-empty-definitions"?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
|
|
5296
5350
|
/**
|
|
5297
5351
|
* Disallow empty images
|
|
5298
5352
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
@@ -5324,11 +5378,26 @@ interface MarkdownRules {
|
|
|
5324
5378
|
*/
|
|
5325
5379
|
"markdown/no-missing-label-refs"?: Linter.RuleEntry<[]>;
|
|
5326
5380
|
/**
|
|
5381
|
+
* Disallow link fragments that do not reference valid headings
|
|
5382
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
|
|
5383
|
+
*/
|
|
5384
|
+
"markdown/no-missing-link-fragments"?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>;
|
|
5385
|
+
/**
|
|
5327
5386
|
* Disallow multiple H1 headings in the same document
|
|
5328
5387
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
5329
5388
|
*/
|
|
5330
5389
|
"markdown/no-multiple-h1"?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
5331
5390
|
/**
|
|
5391
|
+
* Disallow reversed link and image syntax
|
|
5392
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
5393
|
+
*/
|
|
5394
|
+
"markdown/no-reversed-media-syntax"?: Linter.RuleEntry<[]>;
|
|
5395
|
+
/**
|
|
5396
|
+
* Disallow unused definitions
|
|
5397
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
5398
|
+
*/
|
|
5399
|
+
"markdown/no-unused-definitions"?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
|
|
5400
|
+
/**
|
|
5332
5401
|
* Require alternative text for images
|
|
5333
5402
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
5334
5403
|
*/
|
|
@@ -5349,14 +5418,34 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
5349
5418
|
allowDefinitions?: string[];
|
|
5350
5419
|
allowFootnoteDefinitions?: string[];
|
|
5351
5420
|
}];
|
|
5421
|
+
// ----- markdown/no-duplicate-headings -----
|
|
5422
|
+
type MarkdownNoDuplicateHeadings = [] | [{
|
|
5423
|
+
checkSiblingsOnly?: boolean;
|
|
5424
|
+
}];
|
|
5425
|
+
// ----- markdown/no-empty-definitions -----
|
|
5426
|
+
type MarkdownNoEmptyDefinitions = [] | [{
|
|
5427
|
+
allowDefinitions?: string[];
|
|
5428
|
+
allowFootnoteDefinitions?: string[];
|
|
5429
|
+
checkFootnoteDefinitions?: boolean;
|
|
5430
|
+
}];
|
|
5352
5431
|
// ----- markdown/no-html -----
|
|
5353
5432
|
type MarkdownNoHtml = [] | [{
|
|
5354
5433
|
allowed?: string[];
|
|
5355
5434
|
}];
|
|
5435
|
+
// ----- markdown/no-missing-link-fragments -----
|
|
5436
|
+
type MarkdownNoMissingLinkFragments = [] | [{
|
|
5437
|
+
ignoreCase?: boolean;
|
|
5438
|
+
allowPattern?: string;
|
|
5439
|
+
}];
|
|
5356
5440
|
// ----- markdown/no-multiple-h1 -----
|
|
5357
5441
|
type MarkdownNoMultipleH1 = [] | [{
|
|
5358
5442
|
frontmatterTitle?: string;
|
|
5359
5443
|
}];
|
|
5444
|
+
// ----- markdown/no-unused-definitions -----
|
|
5445
|
+
type MarkdownNoUnusedDefinitions = [] | [{
|
|
5446
|
+
allowDefinitions?: string[];
|
|
5447
|
+
allowFootnoteDefinitions?: string[];
|
|
5448
|
+
}];
|
|
5360
5449
|
//#endregion
|
|
5361
5450
|
//#region src/types/gens/prettier.d.ts
|
|
5362
5451
|
/* eslint-disable */
|
|
@@ -10514,6 +10603,7 @@ interface _TypescriptEslintNamingConvention_MatchRegexConfig {
|
|
|
10514
10603
|
}
|
|
10515
10604
|
// ----- @typescript-eslint/no-base-to-string -----
|
|
10516
10605
|
type TypescriptEslintNoBaseToString = [] | [{
|
|
10606
|
+
checkUnknown?: boolean;
|
|
10517
10607
|
ignoredTypeNames?: string[];
|
|
10518
10608
|
}];
|
|
10519
10609
|
// ----- @typescript-eslint/no-confusing-void-expression -----
|
|
@@ -10837,7 +10927,6 @@ type TypescriptEslintPreferDestructuring = [] | [({
|
|
|
10837
10927
|
}), {
|
|
10838
10928
|
enforceForDeclarationWithTypeAnnotation?: boolean;
|
|
10839
10929
|
enforceForRenamedProperties?: boolean;
|
|
10840
|
-
[k: string]: unknown | undefined;
|
|
10841
10930
|
}];
|
|
10842
10931
|
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
10843
10932
|
type TypescriptEslintPreferLiteralEnumMember = [] | [{
|
|
@@ -10855,7 +10944,6 @@ type TypescriptEslintPreferNullishCoalescing = [] | [{
|
|
|
10855
10944
|
boolean?: boolean;
|
|
10856
10945
|
number?: boolean;
|
|
10857
10946
|
string?: boolean;
|
|
10858
|
-
[k: string]: unknown | undefined;
|
|
10859
10947
|
} | true);
|
|
10860
10948
|
ignoreTernaryTests?: boolean;
|
|
10861
10949
|
}];
|
|
@@ -11897,6 +11985,11 @@ interface VitestRules {
|
|
|
11897
11985
|
*/
|
|
11898
11986
|
"vitest/consistent-test-it"?: Linter.RuleEntry<VitestConsistentTestIt>;
|
|
11899
11987
|
/**
|
|
11988
|
+
* enforce using vitest or vi but not both
|
|
11989
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
11990
|
+
*/
|
|
11991
|
+
"vitest/consistent-vitest-vi"?: Linter.RuleEntry<VitestConsistentVitestVi>;
|
|
11992
|
+
/**
|
|
11900
11993
|
* enforce having expectation in test body
|
|
11901
11994
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
11902
11995
|
*/
|
|
@@ -11973,6 +12066,11 @@ interface VitestRules {
|
|
|
11973
12066
|
*/
|
|
11974
12067
|
"vitest/no-import-node-test"?: Linter.RuleEntry<[]>;
|
|
11975
12068
|
/**
|
|
12069
|
+
* disallow importing Vitest globals
|
|
12070
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
12071
|
+
*/
|
|
12072
|
+
"vitest/no-importing-vitest-globals"?: Linter.RuleEntry<[]>;
|
|
12073
|
+
/**
|
|
11976
12074
|
* disallow string interpolation in snapshots
|
|
11977
12075
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
11978
12076
|
*/
|
|
@@ -12003,7 +12101,7 @@ interface VitestRules {
|
|
|
12003
12101
|
*/
|
|
12004
12102
|
"vitest/no-standalone-expect"?: Linter.RuleEntry<VitestNoStandaloneExpect>;
|
|
12005
12103
|
/**
|
|
12006
|
-
*
|
|
12104
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
12007
12105
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
12008
12106
|
*/
|
|
12009
12107
|
"vitest/no-test-prefixes"?: Linter.RuleEntry<[]>;
|
|
@@ -12053,6 +12151,16 @@ interface VitestRules {
|
|
|
12053
12151
|
*/
|
|
12054
12152
|
"vitest/padding-around-test-blocks"?: Linter.RuleEntry<[]>;
|
|
12055
12153
|
/**
|
|
12154
|
+
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
12155
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
12156
|
+
*/
|
|
12157
|
+
"vitest/prefer-called-once"?: Linter.RuleEntry<[]>;
|
|
12158
|
+
/**
|
|
12159
|
+
* enforce using `toBeCalledTimes(1)` or `toHaveBeenCalledTimes(1)`
|
|
12160
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
|
|
12161
|
+
*/
|
|
12162
|
+
"vitest/prefer-called-times"?: Linter.RuleEntry<[]>;
|
|
12163
|
+
/**
|
|
12056
12164
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
12057
12165
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
12058
12166
|
*/
|
|
@@ -12098,6 +12206,11 @@ interface VitestRules {
|
|
|
12098
12206
|
*/
|
|
12099
12207
|
"vitest/prefer-hooks-on-top"?: Linter.RuleEntry<[]>;
|
|
12100
12208
|
/**
|
|
12209
|
+
* enforce importing Vitest globals
|
|
12210
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
12211
|
+
*/
|
|
12212
|
+
"vitest/prefer-importing-vitest-globals"?: Linter.RuleEntry<[]>;
|
|
12213
|
+
/**
|
|
12101
12214
|
* enforce lowercase titles
|
|
12102
12215
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
12103
12216
|
*/
|
|
@@ -12212,6 +12325,11 @@ interface VitestRules {
|
|
|
12212
12325
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
12213
12326
|
*/
|
|
12214
12327
|
"vitest/valid-title"?: Linter.RuleEntry<VitestValidTitle>;
|
|
12328
|
+
/**
|
|
12329
|
+
* disallow `.todo` usage
|
|
12330
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/warn-todo.md
|
|
12331
|
+
*/
|
|
12332
|
+
"vitest/warn-todo"?: Linter.RuleEntry<[]>;
|
|
12215
12333
|
}
|
|
12216
12334
|
/* ======= Declarations ======= */
|
|
12217
12335
|
// ----- vitest/consistent-test-filename -----
|
|
@@ -12224,6 +12342,10 @@ type VitestConsistentTestIt = [] | [{
|
|
|
12224
12342
|
fn?: ("test" | "it");
|
|
12225
12343
|
withinDescribe?: ("test" | "it");
|
|
12226
12344
|
}];
|
|
12345
|
+
// ----- vitest/consistent-vitest-vi -----
|
|
12346
|
+
type VitestConsistentVitestVi = [] | [{
|
|
12347
|
+
fn?: ("vi" | "vitest");
|
|
12348
|
+
}];
|
|
12227
12349
|
// ----- vitest/expect-expect -----
|
|
12228
12350
|
type VitestExpectExpect = [] | [{
|
|
12229
12351
|
assertFunctionNames?: string[];
|
|
@@ -13100,7 +13222,7 @@ interface VueRules {
|
|
|
13100
13222
|
*/
|
|
13101
13223
|
"vue/no-restricted-custom-event"?: Linter.RuleEntry<VueNoRestrictedCustomEvent>;
|
|
13102
13224
|
/**
|
|
13103
|
-
* disallow specific
|
|
13225
|
+
* disallow specific elements
|
|
13104
13226
|
* @see https://eslint.vuejs.org/rules/no-restricted-html-elements.html
|
|
13105
13227
|
*/
|
|
13106
13228
|
"vue/no-restricted-html-elements"?: Linter.RuleEntry<VueNoRestrictedHtmlElements>;
|
|
@@ -15832,7 +15954,7 @@ interface TypeScriptParserOptions {
|
|
|
15832
15954
|
jsxFragmentName?: string | null;
|
|
15833
15955
|
jsxPragma?: string | null;
|
|
15834
15956
|
lib?: string[];
|
|
15835
|
-
programs?:
|
|
15957
|
+
programs?: typescript0.Program[];
|
|
15836
15958
|
project?: string | string[] | boolean | null;
|
|
15837
15959
|
projectFolderIgnoreList?: string[];
|
|
15838
15960
|
projectService?: boolean | TypeScriptProjectServiceOptions;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kazupon/eslint-config",
|
|
3
3
|
"description": "ESLint config for @kazupon",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.32.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "kawakazu80@gmail.com",
|
|
7
7
|
"name": "kazuya kawaguchi"
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
53
|
-
"@eslint/js": "^9.
|
|
53
|
+
"@eslint/js": "^9.31.0",
|
|
54
54
|
"@kazupon/eslint-plugin": "^0.4.0",
|
|
55
55
|
"@kazupon/jts-utils": "^0.6.0",
|
|
56
56
|
"@stylistic/eslint-plugin": "^4.4.1",
|
|
57
57
|
"eslint-flat-config-utils": "^2.1.0",
|
|
58
58
|
"eslint-merge-processors": "^2.0.0",
|
|
59
|
-
"globals": "^16.
|
|
59
|
+
"globals": "^16.3.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@eslint/css": ">=0.5.0",
|
|
63
|
-
"@eslint/markdown": ">=
|
|
63
|
+
"@eslint/markdown": ">=7.0.0",
|
|
64
64
|
"@html-eslint/eslint-plugin": ">=0.41.0",
|
|
65
65
|
"@intlify/eslint-plugin-vue-i18n": ">=4.0.0",
|
|
66
66
|
"@vitest/eslint-plugin": ">=1.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"eslint-config-prettier": ">=9.1.0",
|
|
69
69
|
"eslint-import-resolver-typescript": ">=3.6.0",
|
|
70
70
|
"eslint-plugin-import": ">=2.31.0",
|
|
71
|
-
"eslint-plugin-jsdoc": ">=
|
|
71
|
+
"eslint-plugin-jsdoc": ">=51.0.0",
|
|
72
72
|
"eslint-plugin-jsonc": ">=2.16.0",
|
|
73
73
|
"eslint-plugin-module-interop": ">=0.3.0",
|
|
74
74
|
"eslint-plugin-promise": ">=6.4.0",
|
|
@@ -172,48 +172,48 @@
|
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
"devDependencies": {
|
|
175
|
-
"@eslint/compat": "^1.
|
|
176
|
-
"@eslint/css": "^0.
|
|
177
|
-
"@eslint/markdown": "^
|
|
178
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
175
|
+
"@eslint/compat": "^1.3.1",
|
|
176
|
+
"@eslint/css": "^0.9.0",
|
|
177
|
+
"@eslint/markdown": "^7.0.0",
|
|
178
|
+
"@html-eslint/eslint-plugin": "^0.43.0",
|
|
179
179
|
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
|
|
180
180
|
"@kazupon/prettier-config": "^0.1.1",
|
|
181
181
|
"@types/eslint": "^9.6.1",
|
|
182
|
-
"@types/node": "^22.
|
|
183
|
-
"@vitest/eslint-plugin": "^1.
|
|
184
|
-
"bumpp": "^10.
|
|
185
|
-
"eslint": "^9.
|
|
186
|
-
"eslint-config-prettier": "^10.1.
|
|
187
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
188
|
-
"eslint-plugin-import": "^2.
|
|
189
|
-
"eslint-plugin-jsdoc": "^
|
|
182
|
+
"@types/node": "^22.16.5",
|
|
183
|
+
"@vitest/eslint-plugin": "^1.3.4",
|
|
184
|
+
"bumpp": "^10.2.0",
|
|
185
|
+
"eslint": "^9.31.0",
|
|
186
|
+
"eslint-config-prettier": "^10.1.8",
|
|
187
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
188
|
+
"eslint-plugin-import": "^2.32.0",
|
|
189
|
+
"eslint-plugin-jsdoc": "^51.0.0",
|
|
190
190
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
191
191
|
"eslint-plugin-module-interop": "^0.3.1",
|
|
192
192
|
"eslint-plugin-promise": "^7.2.1",
|
|
193
193
|
"eslint-plugin-react": "^7.37.5",
|
|
194
194
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
195
195
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
196
|
-
"eslint-plugin-regexp": "^2.
|
|
196
|
+
"eslint-plugin-regexp": "^2.9.0",
|
|
197
197
|
"eslint-plugin-svelte": "^2.46.1",
|
|
198
198
|
"eslint-plugin-toml": "^0.12.0",
|
|
199
199
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
200
200
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
201
|
-
"eslint-plugin-vue": "^10.
|
|
201
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
202
202
|
"eslint-plugin-vue-composable": "^1.0.0",
|
|
203
|
-
"eslint-plugin-vue-scoped-css": "^2.
|
|
203
|
+
"eslint-plugin-vue-scoped-css": "^2.11.0",
|
|
204
204
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
205
205
|
"eslint-plugin-yml": "^1.18.0",
|
|
206
|
-
"eslint-typegen": "^2.2.
|
|
206
|
+
"eslint-typegen": "^2.2.1",
|
|
207
207
|
"gh-changelogen": "^0.2.8",
|
|
208
208
|
"jiti": "^2.4.2",
|
|
209
|
-
"knip": "^5.
|
|
210
|
-
"lint-staged": "^16.1.
|
|
211
|
-
"prettier": "^3.
|
|
212
|
-
"svelte": "^5.
|
|
213
|
-
"tsdown": "^0.
|
|
209
|
+
"knip": "^5.62.0",
|
|
210
|
+
"lint-staged": "^16.1.2",
|
|
211
|
+
"prettier": "^3.6.2",
|
|
212
|
+
"svelte": "^5.36.13",
|
|
213
|
+
"tsdown": "^0.13.0",
|
|
214
214
|
"typescript": "^5.8.3",
|
|
215
|
-
"typescript-eslint": "^8.
|
|
216
|
-
"vitest": "^3.2.
|
|
215
|
+
"typescript-eslint": "^8.38.0",
|
|
216
|
+
"vitest": "^3.2.4"
|
|
217
217
|
},
|
|
218
218
|
"prettier": "@kazupon/prettier-config",
|
|
219
219
|
"lint-staged": {
|
|
@@ -237,11 +237,11 @@
|
|
|
237
237
|
"fix": "pnpm run --parallel --color \"/^fix:/\"",
|
|
238
238
|
"fix:eslint": "eslint . --fix",
|
|
239
239
|
"fix:knip": "knip --fix --no-exit-code",
|
|
240
|
-
"fix:prettier": "prettier . --write",
|
|
240
|
+
"fix:prettier": "prettier . --write --experimental-cli",
|
|
241
241
|
"lint": "pnpm run --parallel --color \"/^lint:/\"",
|
|
242
242
|
"lint:eslint": "eslint .",
|
|
243
243
|
"lint:knip": "knip",
|
|
244
|
-
"lint:prettier": "prettier . --check",
|
|
244
|
+
"lint:prettier": "prettier . --check --experimental-cli",
|
|
245
245
|
"release": "bumpp --commit \"release: v%s\" --all --push --tag",
|
|
246
246
|
"test": "vitest run --typecheck",
|
|
247
247
|
"typecheck": "tsc -p .",
|