@ntnyq/eslint-config 3.0.0-beta.7 → 3.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1357 -1303
- package/dist/index.d.cts +199 -68
- package/dist/index.d.ts +199 -68
- package/dist/index.js +1373 -1321
- package/package.json +16 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
2
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
3
3
|
import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
|
|
4
|
+
import { Linter } from 'eslint';
|
|
4
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 };
|
|
5
14
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
6
15
|
export { eslintPluginRegexp as pluginRegexp };
|
|
7
16
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
8
17
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
9
18
|
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
10
19
|
export { default as pluginToml } from 'eslint-plugin-toml';
|
|
11
|
-
export { default as
|
|
20
|
+
export { default as pluginMarkdown } from '@eslint/markdown';
|
|
21
|
+
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
12
22
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
23
|
+
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
13
24
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
14
25
|
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
15
|
-
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
16
26
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
27
|
+
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
17
28
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
18
|
-
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
19
29
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
20
30
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
21
31
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
22
|
-
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
23
|
-
export { tomlEslintParser as parserToml };
|
|
24
|
-
import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
25
|
-
export { yamlEslintParser as parserYaml };
|
|
26
|
-
import * as vueEslintParser from 'vue-eslint-parser';
|
|
27
|
-
export { vueEslintParser as parserVue };
|
|
28
|
-
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
29
|
-
export { jsoncEslintParser as parserJsonc };
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* @file Type Utils
|
|
@@ -725,6 +727,56 @@ interface RuleOptions {
|
|
|
725
727
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
726
728
|
*/
|
|
727
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<[]>;
|
|
728
780
|
/**
|
|
729
781
|
* Comment-as-command for one-off codemod with ESLint
|
|
730
782
|
* @see https://github.com/antfu/eslint-plugin-command
|
|
@@ -1464,6 +1516,34 @@ interface RuleOptions {
|
|
|
1464
1516
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/vue-custom-block/no-parsing-error.html
|
|
1465
1517
|
*/
|
|
1466
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<[]>;
|
|
1467
1547
|
/**
|
|
1468
1548
|
* require `return` statements after callbacks
|
|
1469
1549
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
|
|
@@ -5317,6 +5397,41 @@ type TypescriptEslintUnifiedSignatures = [] | [
|
|
|
5317
5397
|
ignoreDifferentlyNamedParameters?: boolean;
|
|
5318
5398
|
}
|
|
5319
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
|
+
];
|
|
5320
5435
|
type ImportConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
|
|
5321
5436
|
type ImportDynamicImportChunkname = [] | [
|
|
5322
5437
|
{
|
|
@@ -6362,6 +6477,16 @@ type JsoncSpaceUnaryOps = [] | [
|
|
|
6362
6477
|
};
|
|
6363
6478
|
}
|
|
6364
6479
|
];
|
|
6480
|
+
type MarkdownFencedCodeLanguage = [] | [
|
|
6481
|
+
{
|
|
6482
|
+
required?: string[];
|
|
6483
|
+
}
|
|
6484
|
+
];
|
|
6485
|
+
type MarkdownNoHtml = [] | [
|
|
6486
|
+
{
|
|
6487
|
+
allowed?: string[];
|
|
6488
|
+
}
|
|
6489
|
+
];
|
|
6365
6490
|
type NodeCallbackReturn = [] | [string[]];
|
|
6366
6491
|
type NodeExportsStyle = [] | [("module.exports" | "exports")] | [
|
|
6367
6492
|
("module.exports" | "exports"),
|
|
@@ -6685,6 +6810,7 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
6685
6810
|
order?: ("asc" | "desc");
|
|
6686
6811
|
ignoreCase?: boolean;
|
|
6687
6812
|
internalPattern?: string[];
|
|
6813
|
+
sortSideEffects?: boolean;
|
|
6688
6814
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
6689
6815
|
maxLineLength?: number;
|
|
6690
6816
|
groups?: (string | string[])[];
|
|
@@ -8863,7 +8989,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [
|
|
|
8863
8989
|
markers?: string[];
|
|
8864
8990
|
}
|
|
8865
8991
|
];
|
|
8866
|
-
type ConfigName = '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' | 'markdown/recommended/plugin' | 'markdown/recommended/processor' | 'markdown/recommended/code-blocks' | 'ntnyq/markdown/
|
|
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';
|
|
8867
8993
|
|
|
8868
8994
|
/**
|
|
8869
8995
|
* Typed flat config item
|
|
@@ -8908,6 +9034,8 @@ interface ConfigImportsOptions extends OptionsOverrides {
|
|
|
8908
9034
|
}
|
|
8909
9035
|
interface ConfigNodeOptions extends OptionsOverrides {
|
|
8910
9036
|
}
|
|
9037
|
+
interface ConfigAntfuOptions extends OptionsOverrides {
|
|
9038
|
+
}
|
|
8911
9039
|
interface ConfigPrettierOptions extends OptionsOverrides {
|
|
8912
9040
|
/**
|
|
8913
9041
|
* Prettier level
|
|
@@ -8971,19 +9099,20 @@ interface ConfigOptions {
|
|
|
8971
9099
|
command?: boolean | ConfigCommandOptions;
|
|
8972
9100
|
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
8973
9101
|
imports?: ConfigImportsOptions;
|
|
8974
|
-
javascript?: ConfigJavaScriptOptions;
|
|
8975
|
-
typescript?: ConfigTypeScriptOptions;
|
|
8976
9102
|
node?: ConfigNodeOptions;
|
|
9103
|
+
javascript?: ConfigJavaScriptOptions;
|
|
9104
|
+
typescript?: boolean | ConfigTypeScriptOptions;
|
|
8977
9105
|
unicorn?: boolean | ConfigUnicornOptions;
|
|
8978
9106
|
prettier?: boolean | ConfigPrettierOptions;
|
|
9107
|
+
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
8979
9108
|
/**
|
|
8980
9109
|
* @internal
|
|
8981
9110
|
*/
|
|
8982
|
-
|
|
9111
|
+
unusedImports?: boolean | ConfigUnusedImportsOptions;
|
|
8983
9112
|
/**
|
|
8984
9113
|
* @internal
|
|
8985
9114
|
*/
|
|
8986
|
-
|
|
9115
|
+
antfu?: boolean | ConfigAntfuOptions;
|
|
8987
9116
|
comments?: boolean | ConfigCommentsOptions;
|
|
8988
9117
|
jsdoc?: boolean | ConfigJsdocOptions;
|
|
8989
9118
|
unocss?: boolean | ConfigUnoCSSOptions;
|
|
@@ -9003,32 +9132,7 @@ interface ConfigOptions {
|
|
|
9003
9132
|
/**
|
|
9004
9133
|
* Config factory
|
|
9005
9134
|
*/
|
|
9006
|
-
declare function ntnyq(options?: ConfigOptions,
|
|
9007
|
-
|
|
9008
|
-
declare const hasTypeScript: boolean;
|
|
9009
|
-
declare const hasVitest: boolean;
|
|
9010
|
-
declare const hasVue: boolean;
|
|
9011
|
-
declare const hasUnoCSS: boolean;
|
|
9012
|
-
|
|
9013
|
-
declare function toArray<T>(val?: Arrayable<T>): T[];
|
|
9014
|
-
|
|
9015
|
-
/**
|
|
9016
|
-
* Load an ESLint plugin by name.
|
|
9017
|
-
* @param name - The name of the plugin
|
|
9018
|
-
* @returns The plugin module
|
|
9019
|
-
*/
|
|
9020
|
-
declare function loadPlugin<T = unknown>(name: string): Promise<T>;
|
|
9021
|
-
|
|
9022
|
-
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
9023
|
-
|
|
9024
|
-
/**
|
|
9025
|
-
* Interop default export from a module
|
|
9026
|
-
* @param mod - The module
|
|
9027
|
-
* @returns The default export
|
|
9028
|
-
*/
|
|
9029
|
-
declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
9030
|
-
|
|
9031
|
-
declare function resolveSubOptions<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): ResolvedOptions<ConfigOptions[K]>;
|
|
9135
|
+
declare function ntnyq(options?: ConfigOptions, userConfigs?: Arrayable<TypedConfigItem>): FlatConfigComposer<TypedConfigItem, ConfigName>;
|
|
9032
9136
|
|
|
9033
9137
|
/**
|
|
9034
9138
|
* @file globs constants
|
|
@@ -9061,55 +9165,82 @@ declare const GLOB_DIST = "**/dist/**";
|
|
|
9061
9165
|
declare const GLOB_LOCKFILE: string[];
|
|
9062
9166
|
declare const GLOB_EXCLUDE: string[];
|
|
9063
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
|
+
|
|
9064
9175
|
/**
|
|
9065
|
-
*
|
|
9176
|
+
* Load an ESLint plugin by name.
|
|
9177
|
+
* @param name - The name of the plugin
|
|
9178
|
+
* @returns The plugin module
|
|
9066
9179
|
*/
|
|
9067
|
-
declare
|
|
9180
|
+
declare function loadPlugin<T = unknown>(name: string): Promise<T>;
|
|
9068
9181
|
|
|
9069
|
-
declare
|
|
9182
|
+
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
9070
9183
|
|
|
9071
|
-
|
|
9184
|
+
/**
|
|
9185
|
+
* Interop default export from a module
|
|
9186
|
+
* @param mod - The module
|
|
9187
|
+
* @returns The default export
|
|
9188
|
+
*/
|
|
9189
|
+
declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
9072
9190
|
|
|
9073
|
-
declare
|
|
9191
|
+
declare function resolveSubOptions<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): ResolvedOptions<ConfigOptions[K]>;
|
|
9074
9192
|
|
|
9075
|
-
declare const
|
|
9193
|
+
declare const vue: (options?: ConfigVueOptions) => TypedConfigItem[];
|
|
9076
9194
|
|
|
9077
|
-
declare const
|
|
9195
|
+
declare const yml: (options?: ConfigYmlOptions) => TypedConfigItem[];
|
|
9078
9196
|
|
|
9079
|
-
declare const
|
|
9197
|
+
declare const node: (options?: ConfigNodeOptions) => TypedConfigItem[];
|
|
9080
9198
|
|
|
9081
|
-
declare const
|
|
9082
|
-
declare const
|
|
9199
|
+
declare const sortPackageJson: () => TypedConfigItem[];
|
|
9200
|
+
declare const sortTsConfig: () => TypedConfigItem[];
|
|
9201
|
+
declare const sortI18nLocale: () => TypedConfigItem[];
|
|
9083
9202
|
|
|
9084
|
-
declare const
|
|
9085
|
-
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
9203
|
+
declare const toml: (options?: ConfigTomlOptions) => TypedConfigItem[];
|
|
9086
9204
|
|
|
9087
|
-
declare const
|
|
9205
|
+
declare const antfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
|
|
9088
9206
|
|
|
9089
|
-
declare const
|
|
9207
|
+
declare const jsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
|
|
9208
|
+
|
|
9209
|
+
declare const jsonc: (options?: ConfigJsoncOptions) => TypedConfigItem[];
|
|
9090
9210
|
|
|
9091
9211
|
declare const regexp: (options?: ConfigRegexpOptions) => TypedConfigItem[];
|
|
9092
9212
|
|
|
9093
9213
|
declare const unocss: (options?: ConfigUnoCSSOptions) => TypedConfigItem[];
|
|
9094
9214
|
|
|
9095
|
-
declare const
|
|
9215
|
+
declare const vitest: (options?: ConfigVitestOptions) => TypedConfigItem[];
|
|
9096
9216
|
|
|
9097
9217
|
declare const command: (options?: ConfigCommandOptions) => TypedConfigItem[];
|
|
9098
9218
|
|
|
9099
|
-
|
|
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[];
|
|
9100
9223
|
|
|
9101
|
-
declare const
|
|
9224
|
+
declare const imports: (options?: ConfigImportsOptions) => TypedConfigItem[];
|
|
9102
9225
|
|
|
9103
|
-
declare const
|
|
9226
|
+
declare const unicorn: (options?: ConfigUnicornOptions) => TypedConfigItem[];
|
|
9104
9227
|
|
|
9105
|
-
declare const
|
|
9228
|
+
declare const comments: (options?: ConfigCommentsOptions) => TypedConfigItem[];
|
|
9106
9229
|
|
|
9107
|
-
declare const
|
|
9108
|
-
declare const sortTsConfig: () => TypedConfigItem[];
|
|
9109
|
-
declare const sortI18nLocale: () => TypedConfigItem[];
|
|
9230
|
+
declare const markdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
|
|
9110
9231
|
|
|
9111
|
-
declare const
|
|
9232
|
+
declare const prettier: (options?: ConfigPrettierOptions) => TypedConfigItem[];
|
|
9112
9233
|
|
|
9113
|
-
declare const
|
|
9234
|
+
declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
|
|
9235
|
+
|
|
9236
|
+
declare const javascript: (options?: ConfigJavaScriptOptions) => TypedConfigItem[];
|
|
9237
|
+
declare const jsx: () => TypedConfigItem[];
|
|
9238
|
+
|
|
9239
|
+
declare const typescriptCore: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
9240
|
+
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
9241
|
+
|
|
9242
|
+
declare const perfectionist: (options?: ConfigPerfectionistOptions) => TypedConfigItem[];
|
|
9243
|
+
|
|
9244
|
+
declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConfigItem[];
|
|
9114
9245
|
|
|
9115
|
-
export { type Arrayable, type Awaitable, 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, 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 };
|
|
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 };
|