@ntnyq/eslint-config 2.8.2 → 3.0.0-beta.10
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 +28 -1
- package/dist/index.cjs +1512 -1212
- package/dist/index.d.cts +464 -152
- package/dist/index.d.ts +464 -152
- package/dist/index.js +1531 -1238
- package/package.json +30 -28
package/dist/index.d.cts
CHANGED
|
@@ -1,30 +1,44 @@
|
|
|
1
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
|
+
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
3
|
+
import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
|
|
1
4
|
import { Linter } from 'eslint';
|
|
2
5
|
export { default as tseslint } from 'typescript-eslint';
|
|
6
|
+
import * as vueEslintParser from 'vue-eslint-parser';
|
|
7
|
+
export { vueEslintParser as parserVue };
|
|
8
|
+
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
9
|
+
export { tomlEslintParser as parserToml };
|
|
10
|
+
import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
11
|
+
export { yamlEslintParser as parserYaml };
|
|
12
|
+
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
13
|
+
export { jsoncEslintParser as parserJsonc };
|
|
3
14
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
4
15
|
export { eslintPluginRegexp as pluginRegexp };
|
|
5
16
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
6
17
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
7
18
|
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
8
19
|
export { default as pluginToml } from 'eslint-plugin-toml';
|
|
9
|
-
export { default as
|
|
20
|
+
export { default as pluginMarkdown } from '@eslint/markdown';
|
|
21
|
+
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
10
22
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
23
|
+
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
11
24
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
12
25
|
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
13
|
-
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
14
26
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
27
|
+
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
15
28
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
16
|
-
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
17
29
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
18
30
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
19
31
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @file Type Utils
|
|
35
|
+
*/
|
|
36
|
+
type Arrayable<T> = T | T[];
|
|
37
|
+
type Awaitable<T> = T | Promise<T>;
|
|
38
|
+
type InteropModuleDefault<T> = T extends {
|
|
39
|
+
default: infer U;
|
|
40
|
+
} ? U : T;
|
|
41
|
+
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
28
42
|
|
|
29
43
|
interface RuleOptions {
|
|
30
44
|
/**
|
|
@@ -217,6 +231,11 @@ interface RuleOptions {
|
|
|
217
231
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
218
232
|
*/
|
|
219
233
|
'@typescript-eslint/no-confusing-void-expression'?: Linter.RuleEntry<TypescriptEslintNoConfusingVoidExpression>;
|
|
234
|
+
/**
|
|
235
|
+
* Disallow using code marked as `@deprecated`
|
|
236
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
237
|
+
*/
|
|
238
|
+
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
220
239
|
/**
|
|
221
240
|
* Disallow duplicate class members
|
|
222
241
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -441,7 +460,7 @@ interface RuleOptions {
|
|
|
441
460
|
*/
|
|
442
461
|
'@typescript-eslint/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>;
|
|
443
462
|
/**
|
|
444
|
-
* Disallow type parameters that
|
|
463
|
+
* Disallow type parameters that aren't used multiple times
|
|
445
464
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
446
465
|
*/
|
|
447
466
|
'@typescript-eslint/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>;
|
|
@@ -704,10 +723,60 @@ interface RuleOptions {
|
|
|
704
723
|
*/
|
|
705
724
|
'@typescript-eslint/unified-signatures'?: Linter.RuleEntry<TypescriptEslintUnifiedSignatures>;
|
|
706
725
|
/**
|
|
707
|
-
* Enforce typing arguments in
|
|
726
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
708
727
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
709
728
|
*/
|
|
710
729
|
'@typescript-eslint/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>;
|
|
730
|
+
/**
|
|
731
|
+
* Having line breaks styles to object, array and named imports
|
|
732
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
|
|
733
|
+
*/
|
|
734
|
+
'antfu/consistent-chaining'?: Linter.RuleEntry<AntfuConsistentChaining>;
|
|
735
|
+
/**
|
|
736
|
+
* Having line breaks styles to object, array and named imports
|
|
737
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
738
|
+
*/
|
|
739
|
+
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>;
|
|
740
|
+
/**
|
|
741
|
+
* Enforce Anthony's style of curly bracket
|
|
742
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
|
|
743
|
+
*/
|
|
744
|
+
'antfu/curly'?: Linter.RuleEntry<[]>;
|
|
745
|
+
/**
|
|
746
|
+
* Newline after if
|
|
747
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
748
|
+
*/
|
|
749
|
+
'antfu/if-newline'?: Linter.RuleEntry<[]>;
|
|
750
|
+
/**
|
|
751
|
+
* Fix duplication in imports
|
|
752
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
|
|
753
|
+
*/
|
|
754
|
+
'antfu/import-dedupe'?: Linter.RuleEntry<[]>;
|
|
755
|
+
/**
|
|
756
|
+
* Enforce consistent indentation in `unindent` template tag
|
|
757
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
|
|
758
|
+
*/
|
|
759
|
+
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>;
|
|
760
|
+
/**
|
|
761
|
+
* Prevent importing modules in `dist` folder
|
|
762
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.test.ts
|
|
763
|
+
*/
|
|
764
|
+
'antfu/no-import-dist'?: Linter.RuleEntry<[]>;
|
|
765
|
+
/**
|
|
766
|
+
* Prevent importing modules in `node_modules` folder by relative or absolute path
|
|
767
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
768
|
+
*/
|
|
769
|
+
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>;
|
|
770
|
+
/**
|
|
771
|
+
* Do not use `exports =`
|
|
772
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
773
|
+
*/
|
|
774
|
+
'antfu/no-ts-export-equal'?: Linter.RuleEntry<[]>;
|
|
775
|
+
/**
|
|
776
|
+
* Enforce top-level functions to be declared with function keyword
|
|
777
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
|
|
778
|
+
*/
|
|
779
|
+
'antfu/top-level-function'?: Linter.RuleEntry<[]>;
|
|
711
780
|
/**
|
|
712
781
|
* Comment-as-command for one-off codemod with ESLint
|
|
713
782
|
* @see https://github.com/antfu/eslint-plugin-command
|
|
@@ -715,228 +784,233 @@ interface RuleOptions {
|
|
|
715
784
|
'command/command'?: Linter.RuleEntry<[]>;
|
|
716
785
|
/**
|
|
717
786
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
718
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
787
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
719
788
|
*/
|
|
720
789
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
721
790
|
/**
|
|
722
791
|
* Ensure a default export is present, given a default import.
|
|
723
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
792
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
724
793
|
*/
|
|
725
794
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
726
795
|
/**
|
|
727
796
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
728
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
797
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
729
798
|
*/
|
|
730
799
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
731
800
|
/**
|
|
732
801
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
733
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
802
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
734
803
|
*/
|
|
735
804
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
736
805
|
/**
|
|
737
806
|
* Ensure all exports appear after other statements.
|
|
738
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
807
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
739
808
|
*/
|
|
740
809
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
741
810
|
/**
|
|
742
811
|
* Ensure consistent use of file extension within the import path.
|
|
743
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
812
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
744
813
|
*/
|
|
745
814
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
746
815
|
/**
|
|
747
816
|
* Ensure all imports appear before other statements.
|
|
748
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
817
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
749
818
|
*/
|
|
750
819
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
751
820
|
/**
|
|
752
821
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
753
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
822
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
754
823
|
*/
|
|
755
824
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
756
825
|
/**
|
|
757
826
|
* Replaced by `import-x/first`.
|
|
758
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
827
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
759
828
|
* @deprecated
|
|
760
829
|
*/
|
|
761
830
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
762
831
|
/**
|
|
763
832
|
* Enforce the maximum number of dependencies a module can have.
|
|
764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
833
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
765
834
|
*/
|
|
766
835
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
767
836
|
/**
|
|
768
837
|
* Ensure named imports correspond to a named export in the remote file.
|
|
769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
838
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
770
839
|
*/
|
|
771
840
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
772
841
|
/**
|
|
773
842
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
843
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
775
844
|
*/
|
|
776
845
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
777
846
|
/**
|
|
778
847
|
* Enforce a newline after import statements.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
848
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
780
849
|
*/
|
|
781
850
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
782
851
|
/**
|
|
783
852
|
* Forbid import of modules using absolute paths.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
853
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
785
854
|
*/
|
|
786
855
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
787
856
|
/**
|
|
788
857
|
* Forbid AMD `require` and `define` calls.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
858
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
790
859
|
*/
|
|
791
860
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
792
861
|
/**
|
|
793
862
|
* Forbid anonymous values as default exports.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
863
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
795
864
|
*/
|
|
796
865
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
797
866
|
/**
|
|
798
867
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
868
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
800
869
|
*/
|
|
801
870
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
802
871
|
/**
|
|
803
872
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
873
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
805
874
|
*/
|
|
806
875
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
807
876
|
/**
|
|
808
877
|
* Forbid default exports.
|
|
809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
878
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
810
879
|
*/
|
|
811
880
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
812
881
|
/**
|
|
813
882
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
883
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
815
884
|
*/
|
|
816
885
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
817
886
|
/**
|
|
818
887
|
* Forbid repeated import of the same module in multiple places.
|
|
819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
888
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
820
889
|
*/
|
|
821
890
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
822
891
|
/**
|
|
823
892
|
* Forbid `require()` calls with expressions.
|
|
824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
893
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
825
894
|
*/
|
|
826
895
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
827
896
|
/**
|
|
828
897
|
* Forbid empty named import blocks.
|
|
829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
898
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
830
899
|
*/
|
|
831
900
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
832
901
|
/**
|
|
833
902
|
* Forbid the use of extraneous packages.
|
|
834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
903
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
835
904
|
*/
|
|
836
905
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
837
906
|
/**
|
|
838
907
|
* Forbid import statements with CommonJS module.exports.
|
|
839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
908
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
840
909
|
*/
|
|
841
910
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
842
911
|
/**
|
|
843
912
|
* Forbid importing the submodules of other modules.
|
|
844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
913
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
845
914
|
*/
|
|
846
915
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
847
916
|
/**
|
|
848
917
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
918
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
850
919
|
*/
|
|
851
920
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
852
921
|
/**
|
|
853
922
|
* Forbid use of exported name as identifier of default export.
|
|
854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
923
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
855
924
|
*/
|
|
856
925
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
857
926
|
/**
|
|
858
927
|
* Forbid use of exported name as property of default export.
|
|
859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
928
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
860
929
|
*/
|
|
861
930
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
862
931
|
/**
|
|
863
932
|
* Forbid named default exports.
|
|
864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
933
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
865
934
|
*/
|
|
866
935
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
867
936
|
/**
|
|
868
937
|
* Forbid named exports.
|
|
869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
938
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
870
939
|
*/
|
|
871
940
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
872
941
|
/**
|
|
873
942
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
943
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
875
944
|
*/
|
|
876
945
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
877
946
|
/**
|
|
878
947
|
* Forbid Node.js builtin modules.
|
|
879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
948
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
880
949
|
*/
|
|
881
950
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
882
951
|
/**
|
|
883
952
|
* Forbid importing packages through relative paths.
|
|
884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
953
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
885
954
|
*/
|
|
886
955
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
887
956
|
/**
|
|
888
957
|
* Forbid importing modules from parent directories.
|
|
889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
958
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
890
959
|
*/
|
|
891
960
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
961
|
+
/**
|
|
962
|
+
* Forbid importing a default export by a different name.
|
|
963
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
964
|
+
*/
|
|
965
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
892
966
|
/**
|
|
893
967
|
* Enforce which files can be imported in a given folder.
|
|
894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
968
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
895
969
|
*/
|
|
896
970
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
897
971
|
/**
|
|
898
972
|
* Forbid a module from importing itself.
|
|
899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
973
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
900
974
|
*/
|
|
901
975
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
902
976
|
/**
|
|
903
977
|
* Forbid unassigned imports.
|
|
904
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
978
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
905
979
|
*/
|
|
906
980
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
907
981
|
/**
|
|
908
982
|
* Ensure imports point to a file/module that can be resolved.
|
|
909
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
983
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
910
984
|
*/
|
|
911
985
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
912
986
|
/**
|
|
913
987
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
914
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
988
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
915
989
|
*/
|
|
916
990
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
917
991
|
/**
|
|
918
992
|
* Forbid unnecessary path segments in import and require statements.
|
|
919
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
993
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
920
994
|
*/
|
|
921
995
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
922
996
|
/**
|
|
923
997
|
* Forbid webpack loader syntax in imports.
|
|
924
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
998
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
925
999
|
*/
|
|
926
1000
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
927
1001
|
/**
|
|
928
1002
|
* Enforce a convention in module import order.
|
|
929
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
1003
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
930
1004
|
*/
|
|
931
1005
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
932
1006
|
/**
|
|
933
1007
|
* Prefer a default export if module exports a single name or multiple names.
|
|
934
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
1008
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
935
1009
|
*/
|
|
936
1010
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
937
1011
|
/**
|
|
938
1012
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
939
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
1013
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
940
1014
|
*/
|
|
941
1015
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
942
1016
|
/**
|
|
@@ -1442,6 +1516,34 @@ interface RuleOptions {
|
|
|
1442
1516
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/vue-custom-block/no-parsing-error.html
|
|
1443
1517
|
*/
|
|
1444
1518
|
'jsonc/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
|
|
1519
|
+
/**
|
|
1520
|
+
* Require languages for fenced code blocks.
|
|
1521
|
+
*/
|
|
1522
|
+
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Enforce heading levels increment by one.
|
|
1525
|
+
*/
|
|
1526
|
+
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Disallow duplicate headings in the same document.
|
|
1529
|
+
*/
|
|
1530
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>;
|
|
1531
|
+
/**
|
|
1532
|
+
* Disallow empty links.
|
|
1533
|
+
*/
|
|
1534
|
+
'markdown/no-empty-links'?: Linter.RuleEntry<[]>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Disallow HTML tags.
|
|
1537
|
+
*/
|
|
1538
|
+
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>;
|
|
1539
|
+
/**
|
|
1540
|
+
* Disallow invalid label references.
|
|
1541
|
+
*/
|
|
1542
|
+
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
|
|
1543
|
+
/**
|
|
1544
|
+
* Disallow missing label references.
|
|
1545
|
+
*/
|
|
1546
|
+
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
1445
1547
|
/**
|
|
1446
1548
|
* require `return` statements after callbacks
|
|
1447
1549
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
|
|
@@ -1714,6 +1816,11 @@ interface RuleOptions {
|
|
|
1714
1816
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
1715
1817
|
*/
|
|
1716
1818
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
1819
|
+
/**
|
|
1820
|
+
* Enforce sorted sets.
|
|
1821
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
1822
|
+
*/
|
|
1823
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>;
|
|
1717
1824
|
/**
|
|
1718
1825
|
* Enforce sorted Svelte attributes.
|
|
1719
1826
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -3086,7 +3193,7 @@ interface RuleOptions {
|
|
|
3086
3193
|
*/
|
|
3087
3194
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>;
|
|
3088
3195
|
/**
|
|
3089
|
-
* enforce order of
|
|
3196
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
3090
3197
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
3091
3198
|
*/
|
|
3092
3199
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>;
|
|
@@ -3215,6 +3322,16 @@ interface RuleOptions {
|
|
|
3215
3322
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
3216
3323
|
*/
|
|
3217
3324
|
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>;
|
|
3325
|
+
/**
|
|
3326
|
+
* enforce maximum number of props in Vue component
|
|
3327
|
+
* @see https://eslint.vuejs.org/rules/max-props.html
|
|
3328
|
+
*/
|
|
3329
|
+
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>;
|
|
3330
|
+
/**
|
|
3331
|
+
* enforce maximum depth of template
|
|
3332
|
+
* @see https://eslint.vuejs.org/rules/max-template-depth.html
|
|
3333
|
+
*/
|
|
3334
|
+
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>;
|
|
3218
3335
|
/**
|
|
3219
3336
|
* require component names to be always multi-word
|
|
3220
3337
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -3271,7 +3388,7 @@ interface RuleOptions {
|
|
|
3271
3388
|
*/
|
|
3272
3389
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>;
|
|
3273
3390
|
/**
|
|
3274
|
-
* disallow accessing computed properties in `data
|
|
3391
|
+
* disallow accessing computed properties in `data`
|
|
3275
3392
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
3276
3393
|
*/
|
|
3277
3394
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>;
|
|
@@ -3819,7 +3936,7 @@ interface RuleOptions {
|
|
|
3819
3936
|
*/
|
|
3820
3937
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>;
|
|
3821
3938
|
/**
|
|
3822
|
-
* enforce use of `defineOptions` instead of default export
|
|
3939
|
+
* enforce use of `defineOptions` instead of default export
|
|
3823
3940
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
3824
3941
|
*/
|
|
3825
3942
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>;
|
|
@@ -3863,6 +3980,11 @@ interface RuleOptions {
|
|
|
3863
3980
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
3864
3981
|
*/
|
|
3865
3982
|
'vue/require-component-is'?: Linter.RuleEntry<[]>;
|
|
3983
|
+
/**
|
|
3984
|
+
* require components to be the default export
|
|
3985
|
+
* @see https://eslint.vuejs.org/rules/require-default-export.html
|
|
3986
|
+
*/
|
|
3987
|
+
'vue/require-default-export'?: Linter.RuleEntry<[]>;
|
|
3866
3988
|
/**
|
|
3867
3989
|
* require default value for props
|
|
3868
3990
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -3932,7 +4054,7 @@ interface RuleOptions {
|
|
|
3932
4054
|
* require control the display of the content inside `<transition>`
|
|
3933
4055
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
3934
4056
|
*/
|
|
3935
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
4057
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>;
|
|
3936
4058
|
/**
|
|
3937
4059
|
* enforce adding type declarations to object props
|
|
3938
4060
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -4448,8 +4570,8 @@ type TypescriptEslintInitDeclarations = ([] | ["always"] | [] | ["never"] | [
|
|
|
4448
4570
|
]);
|
|
4449
4571
|
type TypescriptEslintMaxParams = [] | [
|
|
4450
4572
|
{
|
|
4451
|
-
maximum?: number;
|
|
4452
4573
|
max?: number;
|
|
4574
|
+
maximum?: number;
|
|
4453
4575
|
countVoidThis?: boolean;
|
|
4454
4576
|
}
|
|
4455
4577
|
];
|
|
@@ -4922,6 +5044,7 @@ type TypescriptEslintNoMisusedPromises = [] | [
|
|
|
4922
5044
|
checksVoidReturn?: (boolean | {
|
|
4923
5045
|
arguments?: boolean;
|
|
4924
5046
|
attributes?: boolean;
|
|
5047
|
+
inheritedMethods?: boolean;
|
|
4925
5048
|
properties?: boolean;
|
|
4926
5049
|
returns?: boolean;
|
|
4927
5050
|
variables?: boolean;
|
|
@@ -5044,12 +5167,12 @@ type TypescriptEslintNoUnusedVars = [] | [
|
|
|
5044
5167
|
vars?: ("all" | "local");
|
|
5045
5168
|
varsIgnorePattern?: string;
|
|
5046
5169
|
args?: ("all" | "after-used" | "none");
|
|
5047
|
-
ignoreRestSiblings?: boolean;
|
|
5048
5170
|
argsIgnorePattern?: string;
|
|
5049
5171
|
caughtErrors?: ("all" | "none");
|
|
5050
5172
|
caughtErrorsIgnorePattern?: string;
|
|
5051
5173
|
destructuredArrayIgnorePattern?: string;
|
|
5052
5174
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
5175
|
+
ignoreRestSiblings?: boolean;
|
|
5053
5176
|
reportUsedIgnorePattern?: boolean;
|
|
5054
5177
|
})
|
|
5055
5178
|
];
|
|
@@ -5217,7 +5340,7 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
|
|
|
5217
5340
|
allowNever?: boolean;
|
|
5218
5341
|
}
|
|
5219
5342
|
];
|
|
5220
|
-
type TypescriptEslintReturnAwait = [] | [("
|
|
5343
|
+
type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
5221
5344
|
type TypescriptEslintSortTypeConstituents = [] | [
|
|
5222
5345
|
{
|
|
5223
5346
|
checkIntersections?: boolean;
|
|
@@ -5274,6 +5397,41 @@ type TypescriptEslintUnifiedSignatures = [] | [
|
|
|
5274
5397
|
ignoreDifferentlyNamedParameters?: boolean;
|
|
5275
5398
|
}
|
|
5276
5399
|
];
|
|
5400
|
+
type AntfuConsistentChaining = [] | [
|
|
5401
|
+
{
|
|
5402
|
+
allowLeadingPropertyAccess?: boolean;
|
|
5403
|
+
}
|
|
5404
|
+
];
|
|
5405
|
+
type AntfuConsistentListNewline = [] | [
|
|
5406
|
+
{
|
|
5407
|
+
ArrayExpression?: boolean;
|
|
5408
|
+
ArrayPattern?: boolean;
|
|
5409
|
+
ArrowFunctionExpression?: boolean;
|
|
5410
|
+
CallExpression?: boolean;
|
|
5411
|
+
ExportNamedDeclaration?: boolean;
|
|
5412
|
+
FunctionDeclaration?: boolean;
|
|
5413
|
+
FunctionExpression?: boolean;
|
|
5414
|
+
ImportDeclaration?: boolean;
|
|
5415
|
+
JSONArrayExpression?: boolean;
|
|
5416
|
+
JSONObjectExpression?: boolean;
|
|
5417
|
+
JSXOpeningElement?: boolean;
|
|
5418
|
+
NewExpression?: boolean;
|
|
5419
|
+
ObjectExpression?: boolean;
|
|
5420
|
+
ObjectPattern?: boolean;
|
|
5421
|
+
TSFunctionType?: boolean;
|
|
5422
|
+
TSInterfaceDeclaration?: boolean;
|
|
5423
|
+
TSTupleType?: boolean;
|
|
5424
|
+
TSTypeLiteral?: boolean;
|
|
5425
|
+
TSTypeParameterDeclaration?: boolean;
|
|
5426
|
+
TSTypeParameterInstantiation?: boolean;
|
|
5427
|
+
}
|
|
5428
|
+
];
|
|
5429
|
+
type AntfuIndentUnindent = [] | [
|
|
5430
|
+
{
|
|
5431
|
+
indent?: number;
|
|
5432
|
+
tags?: string[];
|
|
5433
|
+
}
|
|
5434
|
+
];
|
|
5277
5435
|
type ImportConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
|
|
5278
5436
|
type ImportDynamicImportChunkname = [] | [
|
|
5279
5437
|
{
|
|
@@ -5393,6 +5551,7 @@ type ImportNoExtraneousDependencies = [] | [
|
|
|
5393
5551
|
packageDir?: (string | unknown[]);
|
|
5394
5552
|
includeInternal?: boolean;
|
|
5395
5553
|
includeTypes?: boolean;
|
|
5554
|
+
whitelist?: unknown[];
|
|
5396
5555
|
}
|
|
5397
5556
|
];
|
|
5398
5557
|
type ImportNoImportModuleExports = [] | [
|
|
@@ -5434,6 +5593,12 @@ type ImportNoRelativeParentImports = [] | [
|
|
|
5434
5593
|
ignore?: [string, ...(string)[]];
|
|
5435
5594
|
}
|
|
5436
5595
|
];
|
|
5596
|
+
type ImportNoRenameDefault = [] | [
|
|
5597
|
+
{
|
|
5598
|
+
commonjs?: boolean;
|
|
5599
|
+
preventRenamingBindings?: boolean;
|
|
5600
|
+
}
|
|
5601
|
+
];
|
|
5437
5602
|
type ImportNoRestrictedPaths = [] | [
|
|
5438
5603
|
{
|
|
5439
5604
|
zones?: [
|
|
@@ -6312,6 +6477,16 @@ type JsoncSpaceUnaryOps = [] | [
|
|
|
6312
6477
|
};
|
|
6313
6478
|
}
|
|
6314
6479
|
];
|
|
6480
|
+
type MarkdownFencedCodeLanguage = [] | [
|
|
6481
|
+
{
|
|
6482
|
+
required?: string[];
|
|
6483
|
+
}
|
|
6484
|
+
];
|
|
6485
|
+
type MarkdownNoHtml = [] | [
|
|
6486
|
+
{
|
|
6487
|
+
allowed?: string[];
|
|
6488
|
+
}
|
|
6489
|
+
];
|
|
6315
6490
|
type NodeCallbackReturn = [] | [string[]];
|
|
6316
6491
|
type NodeExportsStyle = [] | [("module.exports" | "exports")] | [
|
|
6317
6492
|
("module.exports" | "exports"),
|
|
@@ -6589,9 +6764,27 @@ type PerfectionistSortClasses = [] | [
|
|
|
6589
6764
|
ignoreCase?: boolean;
|
|
6590
6765
|
partitionByComment?: (string[] | boolean | string);
|
|
6591
6766
|
groups?: (string | string[])[];
|
|
6592
|
-
customGroups?: {
|
|
6767
|
+
customGroups?: ({
|
|
6593
6768
|
[k: string]: (string | string[]) | undefined;
|
|
6594
|
-
}
|
|
6769
|
+
} | ({
|
|
6770
|
+
groupName?: string;
|
|
6771
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
6772
|
+
order?: ("desc" | "asc");
|
|
6773
|
+
anyOf?: {
|
|
6774
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
6775
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
6776
|
+
elementNamePattern?: string;
|
|
6777
|
+
decoratorNamePattern?: string;
|
|
6778
|
+
}[];
|
|
6779
|
+
} | {
|
|
6780
|
+
groupName?: string;
|
|
6781
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
6782
|
+
order?: ("desc" | "asc");
|
|
6783
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
6784
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
6785
|
+
elementNamePattern?: string;
|
|
6786
|
+
decoratorNamePattern?: string;
|
|
6787
|
+
})[]);
|
|
6595
6788
|
}
|
|
6596
6789
|
];
|
|
6597
6790
|
type PerfectionistSortEnums = [] | [
|
|
@@ -6599,6 +6792,8 @@ type PerfectionistSortEnums = [] | [
|
|
|
6599
6792
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
6600
6793
|
order?: ("asc" | "desc");
|
|
6601
6794
|
ignoreCase?: boolean;
|
|
6795
|
+
sortByValue?: boolean;
|
|
6796
|
+
forceNumericSort?: boolean;
|
|
6602
6797
|
partitionByComment?: (string[] | boolean | string);
|
|
6603
6798
|
}
|
|
6604
6799
|
];
|
|
@@ -6615,6 +6810,7 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
6615
6810
|
order?: ("asc" | "desc");
|
|
6616
6811
|
ignoreCase?: boolean;
|
|
6617
6812
|
internalPattern?: string[];
|
|
6813
|
+
sortSideEffects?: boolean;
|
|
6618
6814
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
6619
6815
|
maxLineLength?: number;
|
|
6620
6816
|
groups?: (string | string[])[];
|
|
@@ -6722,6 +6918,14 @@ type PerfectionistSortObjects = [] | [
|
|
|
6722
6918
|
};
|
|
6723
6919
|
}
|
|
6724
6920
|
];
|
|
6921
|
+
type PerfectionistSortSets = [] | [
|
|
6922
|
+
{
|
|
6923
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6924
|
+
order?: ("asc" | "desc");
|
|
6925
|
+
ignoreCase?: boolean;
|
|
6926
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
6927
|
+
}
|
|
6928
|
+
];
|
|
6725
6929
|
type PerfectionistSortSvelteAttributes = [] | [
|
|
6726
6930
|
{
|
|
6727
6931
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
@@ -7437,7 +7641,7 @@ type VueCustomEventNameCasing = ([] | [("kebab-case" | "camelCase")] | [
|
|
|
7437
7641
|
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
7438
7642
|
type VueDefineMacrosOrder = [] | [
|
|
7439
7643
|
{
|
|
7440
|
-
order?:
|
|
7644
|
+
order?: string[];
|
|
7441
7645
|
defineExposeLast?: boolean;
|
|
7442
7646
|
}
|
|
7443
7647
|
];
|
|
@@ -7999,6 +8203,16 @@ type VueMaxLinesPerBlock = [] | [
|
|
|
7999
8203
|
skipBlankLines?: boolean;
|
|
8000
8204
|
}
|
|
8001
8205
|
];
|
|
8206
|
+
type VueMaxProps = [] | [
|
|
8207
|
+
{
|
|
8208
|
+
maxProps?: number;
|
|
8209
|
+
}
|
|
8210
|
+
];
|
|
8211
|
+
type VueMaxTemplateDepth = [] | [
|
|
8212
|
+
{
|
|
8213
|
+
maxDepth?: number;
|
|
8214
|
+
}
|
|
8215
|
+
];
|
|
8002
8216
|
type VueMultiWordComponentNames = [] | [
|
|
8003
8217
|
{
|
|
8004
8218
|
ignores?: string[];
|
|
@@ -8433,6 +8647,11 @@ type VueRequirePropComment = [] | [
|
|
|
8433
8647
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
8434
8648
|
}
|
|
8435
8649
|
];
|
|
8650
|
+
type VueRequireToggleInsideTransition = [] | [
|
|
8651
|
+
{
|
|
8652
|
+
additionalDirectives?: string[];
|
|
8653
|
+
}
|
|
8654
|
+
];
|
|
8436
8655
|
type VueReturnInComputedProperty = [] | [
|
|
8437
8656
|
{
|
|
8438
8657
|
treatUndefinedAsUnspecified?: boolean;
|
|
@@ -8770,88 +8989,150 @@ type YmlSpacedComment = [] | [("always" | "never")] | [
|
|
|
8770
8989
|
markers?: string[];
|
|
8771
8990
|
}
|
|
8772
8991
|
];
|
|
8773
|
-
type ConfigName = 'command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/
|
|
8992
|
+
type ConfigName = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/gitignore' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/js/scripts' | 'ntnyq/js/test' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/regexp' | 'ntnyq/perfectionist' | 'ntnyq/sort/package-json' | 'ntnyq/sort/tsconfig' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/ts/dts' | 'ntnyq/ts/test' | 'ntnyq/ts/cjs' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/recommended' | 'ntnyq/ts/core' | 'ntnyq/vue/ts' | 'ntnyq/vue/core' | 'ntnyq/yaml' | 'ntnyq/toml';
|
|
8774
8993
|
|
|
8775
|
-
/**
|
|
8776
|
-
* Parser options
|
|
8777
|
-
*/
|
|
8778
|
-
type ParserOptions = Linter.ParserOptions;
|
|
8779
|
-
/**
|
|
8780
|
-
* Rules
|
|
8781
|
-
*/
|
|
8782
|
-
type Rules = RuleOptions;
|
|
8783
8994
|
/**
|
|
8784
8995
|
* Typed flat config item
|
|
8785
8996
|
*/
|
|
8786
|
-
type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord &
|
|
8997
|
+
type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & RuleOptions>, 'plugins'> & {
|
|
8787
8998
|
/**
|
|
8788
8999
|
* Most plugin are not properly typed
|
|
8789
9000
|
*/
|
|
8790
9001
|
plugins?: Record<string, any>;
|
|
8791
9002
|
};
|
|
8792
9003
|
/**
|
|
8793
|
-
*
|
|
8794
|
-
*/
|
|
8795
|
-
type RuleRecord = Linter.RulesRecord;
|
|
8796
|
-
/**
|
|
8797
|
-
* ESLint rules entry
|
|
9004
|
+
* Parser options
|
|
8798
9005
|
*/
|
|
8799
|
-
type
|
|
9006
|
+
type ParserOptions = Linter.ParserOptions;
|
|
8800
9007
|
|
|
8801
9008
|
/**
|
|
8802
|
-
* @file
|
|
9009
|
+
* @file Config options
|
|
8803
9010
|
*/
|
|
8804
9011
|
|
|
8805
|
-
type Arrayable<T> = T | T[];
|
|
8806
|
-
type Awaitable<T> = T | Promise<T>;
|
|
8807
|
-
type InteropModuleDefault<T> = T extends {
|
|
8808
|
-
default: infer U;
|
|
8809
|
-
} ? U : T;
|
|
8810
|
-
interface OverridesOptions<Rules = TypedConfigItem['rules']> {
|
|
8811
|
-
files?: TypedConfigItem['files'];
|
|
8812
|
-
rules?: Rules;
|
|
8813
|
-
parserOptions?: ParserOptions;
|
|
8814
|
-
}
|
|
8815
|
-
|
|
8816
9012
|
/**
|
|
8817
|
-
*
|
|
9013
|
+
* Options for overrides `files`
|
|
8818
9014
|
*/
|
|
8819
|
-
|
|
9015
|
+
interface OptionsFiles {
|
|
9016
|
+
files?: string[];
|
|
9017
|
+
}
|
|
8820
9018
|
/**
|
|
8821
|
-
*
|
|
9019
|
+
* Options for overrides `rules`
|
|
8822
9020
|
*/
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
}
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
9021
|
+
interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigItem['rules']> {
|
|
9022
|
+
overrides?: Rules;
|
|
9023
|
+
}
|
|
9024
|
+
type ConfigIgnoresOptions = string[];
|
|
9025
|
+
type ConfigGitIgnoreOptions = FlatGitignoreOptions;
|
|
9026
|
+
type ConfigCommandOptions = ESLintPluginCommandOptions;
|
|
9027
|
+
interface ConfigJsdocOptions extends OptionsOverrides {
|
|
9028
|
+
}
|
|
9029
|
+
interface ConfigUnoCSSOptions extends OptionsOverrides {
|
|
9030
|
+
}
|
|
9031
|
+
interface ConfigUnicornOptions extends OptionsOverrides {
|
|
9032
|
+
}
|
|
9033
|
+
interface ConfigImportsOptions extends OptionsOverrides {
|
|
9034
|
+
}
|
|
9035
|
+
interface ConfigNodeOptions extends OptionsOverrides {
|
|
9036
|
+
}
|
|
9037
|
+
interface ConfigAntfuOptions extends OptionsOverrides {
|
|
9038
|
+
}
|
|
9039
|
+
interface ConfigPrettierOptions extends OptionsOverrides {
|
|
9040
|
+
/**
|
|
9041
|
+
* Prettier level
|
|
9042
|
+
*
|
|
9043
|
+
* @default 'warn'
|
|
9044
|
+
*/
|
|
9045
|
+
level?: 'warn' | 'error';
|
|
9046
|
+
}
|
|
9047
|
+
interface ConfigPerfectionistOptions extends OptionsOverrides {
|
|
9048
|
+
}
|
|
9049
|
+
interface ConfigCommentsOptions extends OptionsOverrides {
|
|
9050
|
+
}
|
|
9051
|
+
interface ConfigRegexpOptions extends OptionsOverrides {
|
|
9052
|
+
}
|
|
9053
|
+
interface ConfigJavaScriptOptions extends OptionsOverrides {
|
|
9054
|
+
/**
|
|
9055
|
+
* Enable strict checking for JavaScript files
|
|
9056
|
+
*
|
|
9057
|
+
* @default false
|
|
9058
|
+
*/
|
|
9059
|
+
strict?: boolean;
|
|
9060
|
+
}
|
|
9061
|
+
interface ConfigTypeScriptOptions extends OptionsOverrides {
|
|
9062
|
+
/**
|
|
9063
|
+
* Enable type aware check for TypeScript files
|
|
9064
|
+
*/
|
|
9065
|
+
tsconfigPath?: string;
|
|
9066
|
+
/**
|
|
9067
|
+
* Additional parser options
|
|
9068
|
+
*/
|
|
9069
|
+
parserOptions?: Partial<ParserOptions>;
|
|
9070
|
+
}
|
|
9071
|
+
interface ConfigJsoncOptions extends OptionsOverrides {
|
|
9072
|
+
}
|
|
9073
|
+
interface ConfigYmlOptions extends OptionsOverrides {
|
|
9074
|
+
}
|
|
9075
|
+
interface ConfigMarkdownOptions extends OptionsOverrides {
|
|
9076
|
+
}
|
|
9077
|
+
interface ConfigTomlOptions extends OptionsOverrides {
|
|
9078
|
+
}
|
|
9079
|
+
interface ConfigVueOptions extends OptionsOverrides {
|
|
9080
|
+
/**
|
|
9081
|
+
* Vue version
|
|
9082
|
+
*
|
|
9083
|
+
* @default 3
|
|
9084
|
+
*/
|
|
9085
|
+
vueVersion?: 2 | 3;
|
|
9086
|
+
}
|
|
9087
|
+
interface ConfigVitestOptions extends OptionsOverrides {
|
|
9088
|
+
}
|
|
9089
|
+
interface ConfigUnusedImportsOptions extends OptionsOverrides {
|
|
9090
|
+
}
|
|
8837
9091
|
/**
|
|
8838
|
-
*
|
|
8839
|
-
* @param name - The name of the plugin
|
|
8840
|
-
* @returns The plugin module
|
|
9092
|
+
* Config factory options
|
|
8841
9093
|
*/
|
|
8842
|
-
|
|
9094
|
+
interface ConfigOptions {
|
|
9095
|
+
sortTsConfig?: boolean;
|
|
9096
|
+
sortI18nLocale?: boolean;
|
|
9097
|
+
sortPackageJson?: boolean;
|
|
9098
|
+
ignores?: ConfigIgnoresOptions;
|
|
9099
|
+
command?: boolean | ConfigCommandOptions;
|
|
9100
|
+
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
9101
|
+
imports?: ConfigImportsOptions;
|
|
9102
|
+
node?: ConfigNodeOptions;
|
|
9103
|
+
javascript?: ConfigJavaScriptOptions;
|
|
9104
|
+
typescript?: boolean | ConfigTypeScriptOptions;
|
|
9105
|
+
unicorn?: boolean | ConfigUnicornOptions;
|
|
9106
|
+
prettier?: boolean | ConfigPrettierOptions;
|
|
9107
|
+
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
9108
|
+
/**
|
|
9109
|
+
* @internal
|
|
9110
|
+
*/
|
|
9111
|
+
unusedImports?: boolean | ConfigUnusedImportsOptions;
|
|
9112
|
+
/**
|
|
9113
|
+
* @internal
|
|
9114
|
+
*/
|
|
9115
|
+
antfu?: boolean | ConfigAntfuOptions;
|
|
9116
|
+
comments?: boolean | ConfigCommentsOptions;
|
|
9117
|
+
jsdoc?: boolean | ConfigJsdocOptions;
|
|
9118
|
+
unocss?: boolean | ConfigUnoCSSOptions;
|
|
9119
|
+
regexp?: boolean | ConfigRegexpOptions;
|
|
9120
|
+
jsonc?: boolean | ConfigJsoncOptions;
|
|
9121
|
+
yml?: boolean | ConfigYmlOptions;
|
|
9122
|
+
markdown?: boolean | ConfigMarkdownOptions;
|
|
9123
|
+
toml?: boolean | ConfigTomlOptions;
|
|
9124
|
+
vue?: boolean | ConfigVueOptions;
|
|
9125
|
+
vitest?: boolean | ConfigVitestOptions;
|
|
9126
|
+
}
|
|
8843
9127
|
|
|
8844
9128
|
/**
|
|
8845
|
-
*
|
|
9129
|
+
* @file presets
|
|
8846
9130
|
*/
|
|
8847
|
-
declare function defineConfig(configs?: TypedConfigItem[]): TypedConfigItem[];
|
|
8848
9131
|
|
|
8849
9132
|
/**
|
|
8850
|
-
*
|
|
8851
|
-
* @param mod - The module
|
|
8852
|
-
* @returns The default export
|
|
9133
|
+
* Config factory
|
|
8853
9134
|
*/
|
|
8854
|
-
declare function
|
|
9135
|
+
declare function ntnyq(options?: ConfigOptions, userConfigs?: Arrayable<TypedConfigItem>): FlatConfigComposer<TypedConfigItem, ConfigName>;
|
|
8855
9136
|
|
|
8856
9137
|
/**
|
|
8857
9138
|
* @file globs constants
|
|
@@ -8863,7 +9144,7 @@ declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
|
8863
9144
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
8864
9145
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
8865
9146
|
declare const GLOB_DTS = "**/*.d.?([cm])ts";
|
|
8866
|
-
declare const GLOB_TEST = "**/*.{test,spec}.?([cm])[jt]s?(x)";
|
|
9147
|
+
declare const GLOB_TEST = "**/*.{test,spec,bench,benchmark}.?([cm])[jt]s?(x)";
|
|
8867
9148
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
8868
9149
|
declare const GLOB_CSS = "**/*.css";
|
|
8869
9150
|
declare const GLOB_LESS = "**/*.less";
|
|
@@ -8872,63 +9153,94 @@ declare const GLOB_JSON = "**/*.json";
|
|
|
8872
9153
|
declare const GLOB_JSON5 = "**/*.json5";
|
|
8873
9154
|
declare const GLOB_JSONC = "**/*.jsonc";
|
|
8874
9155
|
declare const GLOB_VUE = "**/*.vue";
|
|
8875
|
-
declare const GLOB_MARKDOWN = "**/*.md";
|
|
8876
9156
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
8877
9157
|
declare const GLOB_TOML = "**/*.toml";
|
|
8878
9158
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
9159
|
+
declare const GLOB_MARKDOWN = "**/*.md";
|
|
9160
|
+
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
9161
|
+
declare const GLOB_MARKDOWN_NESTED = "**/*.md/*.md";
|
|
8879
9162
|
declare const GLOB_ALL_SRC: string[];
|
|
8880
9163
|
declare const GLOB_NODE_MODULES = "**/node_modules/**";
|
|
8881
9164
|
declare const GLOB_DIST = "**/dist/**";
|
|
8882
9165
|
declare const GLOB_LOCKFILE: string[];
|
|
8883
9166
|
declare const GLOB_EXCLUDE: string[];
|
|
8884
9167
|
|
|
9168
|
+
declare const hasTypeScript: boolean;
|
|
9169
|
+
declare const hasVitest: boolean;
|
|
9170
|
+
declare const hasVue: boolean;
|
|
9171
|
+
declare const hasUnoCSS: boolean;
|
|
9172
|
+
|
|
9173
|
+
declare function toArray<T>(val?: Arrayable<T>): T[];
|
|
9174
|
+
|
|
8885
9175
|
/**
|
|
8886
|
-
*
|
|
9176
|
+
* Load an ESLint plugin by name.
|
|
9177
|
+
* @param name - The name of the plugin
|
|
9178
|
+
* @returns The plugin module
|
|
9179
|
+
*/
|
|
9180
|
+
declare function loadPlugin<T = unknown>(name: string): Promise<T>;
|
|
9181
|
+
|
|
9182
|
+
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
9183
|
+
|
|
9184
|
+
/**
|
|
9185
|
+
* Interop default export from a module
|
|
9186
|
+
* @param mod - The module
|
|
9187
|
+
* @returns The default export
|
|
8887
9188
|
*/
|
|
8888
|
-
declare
|
|
9189
|
+
declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
9190
|
+
|
|
9191
|
+
declare function resolveSubOptions<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): ResolvedOptions<ConfigOptions[K]>;
|
|
8889
9192
|
|
|
8890
|
-
declare const
|
|
9193
|
+
declare const vue: (options?: ConfigVueOptions) => TypedConfigItem[];
|
|
8891
9194
|
|
|
8892
|
-
declare const
|
|
9195
|
+
declare const yml: (options?: ConfigYmlOptions) => TypedConfigItem[];
|
|
8893
9196
|
|
|
8894
|
-
declare const
|
|
9197
|
+
declare const node: (options?: ConfigNodeOptions) => TypedConfigItem[];
|
|
8895
9198
|
|
|
8896
|
-
declare const
|
|
9199
|
+
declare const sortPackageJson: () => TypedConfigItem[];
|
|
9200
|
+
declare const sortTsConfig: () => TypedConfigItem[];
|
|
9201
|
+
declare const sortI18nLocale: () => TypedConfigItem[];
|
|
8897
9202
|
|
|
8898
|
-
declare const
|
|
9203
|
+
declare const toml: (options?: ConfigTomlOptions) => TypedConfigItem[];
|
|
8899
9204
|
|
|
8900
|
-
declare const
|
|
9205
|
+
declare const antfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
|
|
8901
9206
|
|
|
8902
|
-
declare const
|
|
8903
|
-
declare const jsx: TypedConfigItem[];
|
|
9207
|
+
declare const jsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
|
|
8904
9208
|
|
|
8905
|
-
declare const
|
|
8906
|
-
declare const typescript: TypedConfigItem[];
|
|
9209
|
+
declare const jsonc: (options?: ConfigJsoncOptions) => TypedConfigItem[];
|
|
8907
9210
|
|
|
8908
|
-
declare const
|
|
9211
|
+
declare const regexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
|
|
8909
9212
|
|
|
8910
|
-
declare const
|
|
9213
|
+
declare const unocss: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
|
|
9214
|
+
|
|
9215
|
+
declare const vitest: (options?: ConfigVitestOptions) => TypedConfigItem[];
|
|
9216
|
+
|
|
9217
|
+
declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
|
|
9218
|
+
|
|
9219
|
+
/**
|
|
9220
|
+
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
|
|
9221
|
+
*/
|
|
9222
|
+
declare const ignores: (customIgnores?: ConfigIgnoresOptions) => TypedConfigItem[];
|
|
8911
9223
|
|
|
8912
|
-
declare const
|
|
9224
|
+
declare const imports: (options?: ConfigImportsOptions) => TypedConfigItem[];
|
|
8913
9225
|
|
|
8914
|
-
declare const
|
|
9226
|
+
declare const unicorn: (options?: ConfigUnicornOptions) => TypedConfigItem[];
|
|
8915
9227
|
|
|
8916
|
-
declare const
|
|
9228
|
+
declare const comments: (options?: ConfigCommentsOptions) => TypedConfigItem[];
|
|
8917
9229
|
|
|
8918
|
-
declare const
|
|
9230
|
+
declare const markdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
|
|
8919
9231
|
|
|
8920
|
-
declare
|
|
8921
|
-
declare const vue: TypedConfigItem[];
|
|
9232
|
+
declare const prettier: (options?: ConfigPrettierOptions) => TypedConfigItem[];
|
|
8922
9233
|
|
|
8923
|
-
declare const
|
|
9234
|
+
declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
|
|
8924
9235
|
|
|
8925
|
-
declare const
|
|
9236
|
+
declare const javascript: (options?: ConfigJavaScriptOptions) => TypedConfigItem[];
|
|
9237
|
+
declare const jsx: () => TypedConfigItem[];
|
|
8926
9238
|
|
|
8927
|
-
declare const
|
|
8928
|
-
declare const
|
|
9239
|
+
declare const typescriptCore: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
9240
|
+
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
8929
9241
|
|
|
8930
|
-
declare const
|
|
9242
|
+
declare const perfectionist: (options?: ConfigPerfectionistOptions) => TypedConfigItem[];
|
|
8931
9243
|
|
|
8932
|
-
declare const
|
|
9244
|
+
declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConfigItem[];
|
|
8933
9245
|
|
|
8934
|
-
export { type Arrayable, type Awaitable, type ConfigName, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type
|
|
9246
|
+
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigName, type ConfigNodeOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVitestOptions, type ConfigVueOptions, type ConfigYmlOptions, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsFiles, type OptionsOverrides, type ParserOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, getOverrides, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, node, ntnyq, perfectionist, prettier, regexp, resolveSubOptions, sortI18nLocale, sortPackageJson, sortTsConfig, toArray, toml, typescript, typescriptCore, unicorn, unocss, unusedImports, vitest, vue, yml };
|