@ntnyq/eslint-config 3.3.1 → 3.4.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 +10 -10
- package/dist/index.cjs +223 -172
- package/dist/index.d.cts +36 -14
- package/dist/index.d.ts +36 -14
- package/dist/index.js +215 -163
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,6 @@ import { Options } from 'eslint-processor-vue-blocks';
|
|
|
5
5
|
export { default as processorVueBlocks } from 'eslint-processor-vue-blocks';
|
|
6
6
|
import { Linter } from 'eslint';
|
|
7
7
|
import { RequiredOptions, BuiltInParserName } from 'prettier';
|
|
8
|
-
export { config as createTypeScriptConfig, plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
|
|
9
8
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
10
9
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
11
10
|
export { eslintPluginRegexp as pluginRegexp };
|
|
@@ -18,6 +17,7 @@ export { default as pluginMarkdown } from '@eslint/markdown';
|
|
|
18
17
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
19
18
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
20
19
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
20
|
+
export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
|
|
21
21
|
export { default as pluginFormat } from 'eslint-plugin-format';
|
|
22
22
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
23
23
|
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
@@ -14622,7 +14622,7 @@ type Yoda = [] | [("always" | "never")] | [
|
|
|
14622
14622
|
onlyEquality?: boolean;
|
|
14623
14623
|
}
|
|
14624
14624
|
];
|
|
14625
|
-
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | '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/ntnyq' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/
|
|
14625
|
+
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | '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/ntnyq' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
|
|
14626
14626
|
|
|
14627
14627
|
/**
|
|
14628
14628
|
* Typed flat config item
|
|
@@ -14633,14 +14633,22 @@ type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & RuleOptions>, 'pl
|
|
|
14633
14633
|
*/
|
|
14634
14634
|
plugins?: Record<string, any>;
|
|
14635
14635
|
};
|
|
14636
|
+
/**
|
|
14637
|
+
* ESLint config
|
|
14638
|
+
*/
|
|
14639
|
+
type ESLintConfig = Linter.Config;
|
|
14636
14640
|
/**
|
|
14637
14641
|
* ESLint parser
|
|
14638
14642
|
*/
|
|
14639
14643
|
type ESLintParser = Linter.Parser;
|
|
14644
|
+
/**
|
|
14645
|
+
* ESLint processor
|
|
14646
|
+
*/
|
|
14647
|
+
type ESLintProcessor = Linter.Processor;
|
|
14640
14648
|
/**
|
|
14641
14649
|
* Parser options
|
|
14642
14650
|
*/
|
|
14643
|
-
type
|
|
14651
|
+
type ESLintParserOptions = Linter.ParserOptions;
|
|
14644
14652
|
|
|
14645
14653
|
/**
|
|
14646
14654
|
* @file Config options
|
|
@@ -14749,7 +14757,21 @@ interface ConfigTypeScriptOptions extends OptionsOverrides {
|
|
|
14749
14757
|
/**
|
|
14750
14758
|
* Additional parser options
|
|
14751
14759
|
*/
|
|
14752
|
-
parserOptions?: Partial<
|
|
14760
|
+
parserOptions?: Partial<ESLintParserOptions>;
|
|
14761
|
+
/**
|
|
14762
|
+
* Glob patterns for files that should be type aware.
|
|
14763
|
+
* @default ['**\/*.{ts,tsx}']
|
|
14764
|
+
*/
|
|
14765
|
+
filesTypeAware?: string[];
|
|
14766
|
+
/**
|
|
14767
|
+
* Glob patterns for files that should not be type aware.
|
|
14768
|
+
* @default ['**\/*.md\/**', '**\/*.astro/*.ts']
|
|
14769
|
+
*/
|
|
14770
|
+
ignoresTypeAware?: string[];
|
|
14771
|
+
/**
|
|
14772
|
+
* Overrides built-in type aware rules
|
|
14773
|
+
*/
|
|
14774
|
+
overridesTypeAwareRules?: TypedConfigItem['rules'];
|
|
14753
14775
|
}
|
|
14754
14776
|
interface ConfigSortOptions {
|
|
14755
14777
|
/**
|
|
@@ -14794,7 +14816,7 @@ interface ConfigVueOptions extends OptionsOverrides {
|
|
|
14794
14816
|
}
|
|
14795
14817
|
interface ConfigTestOptions extends OptionsOverrides {
|
|
14796
14818
|
/**
|
|
14797
|
-
*
|
|
14819
|
+
* Overrides built-in vitest rules
|
|
14798
14820
|
*/
|
|
14799
14821
|
overridesVitestRules?: TypedConfigItem['rules'];
|
|
14800
14822
|
}
|
|
@@ -14846,20 +14868,20 @@ interface ConfigOptionsInternal {
|
|
|
14846
14868
|
* Config factory options
|
|
14847
14869
|
*/
|
|
14848
14870
|
interface ConfigOptions extends ConfigOptionsInternal {
|
|
14871
|
+
node?: ConfigNodeOptions;
|
|
14872
|
+
jsdoc?: ConfigJsdocOptions;
|
|
14849
14873
|
ignores?: ConfigIgnoresOptions;
|
|
14850
|
-
sort?: boolean | ConfigSortOptions;
|
|
14851
|
-
command?: boolean | ConfigCommandOptions;
|
|
14852
|
-
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
14853
14874
|
imports?: ConfigImportsOptions;
|
|
14854
|
-
|
|
14875
|
+
command?: ConfigCommandOptions;
|
|
14876
|
+
comments?: ConfigCommentsOptions;
|
|
14855
14877
|
javascript?: ConfigJavaScriptOptions;
|
|
14878
|
+
sort?: boolean | ConfigSortOptions;
|
|
14879
|
+
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
14856
14880
|
stylistic?: boolean | ConfigStylisticOptions;
|
|
14857
14881
|
typescript?: boolean | ConfigTypeScriptOptions;
|
|
14858
14882
|
unicorn?: boolean | ConfigUnicornOptions;
|
|
14859
14883
|
prettier?: boolean | ConfigPrettierOptions;
|
|
14860
14884
|
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
14861
|
-
comments?: boolean | ConfigCommentsOptions;
|
|
14862
|
-
jsdoc?: boolean | ConfigJsdocOptions;
|
|
14863
14885
|
unocss?: boolean | ConfigUnoCSSOptions;
|
|
14864
14886
|
regexp?: boolean | ConfigRegexpOptions;
|
|
14865
14887
|
jsonc?: boolean | ConfigJsoncOptions;
|
|
@@ -14886,7 +14908,7 @@ type PrettierOptions = Partial<Pick<RequiredOptions, 'semi' | 'useTabs' | 'tabWi
|
|
|
14886
14908
|
/**
|
|
14887
14909
|
* Config factory
|
|
14888
14910
|
*/
|
|
14889
|
-
declare function defineESLintConfig(options?: ConfigOptions, userConfigs
|
|
14911
|
+
declare function defineESLintConfig(options?: ConfigOptions, ...userConfigs: Awaitable<TypedConfigItem | TypedConfigItem[] | ESLintConfig[]>[]): Promise<FlatConfigComposer<TypedConfigItem, ConfigNames>>;
|
|
14890
14912
|
|
|
14891
14913
|
/**
|
|
14892
14914
|
* @file globs constants
|
|
@@ -14912,6 +14934,7 @@ declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
|
14912
14934
|
declare const GLOB_TOML = "**/*.toml";
|
|
14913
14935
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
14914
14936
|
declare const GLOB_ASTRO = "**/*.astro";
|
|
14937
|
+
declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
14915
14938
|
declare const GLOB_SVELTE = "**/*.svelte";
|
|
14916
14939
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
14917
14940
|
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
@@ -15025,7 +15048,6 @@ declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[]
|
|
|
15025
15048
|
declare const javascript: (options?: ConfigJavaScriptOptions) => TypedConfigItem[];
|
|
15026
15049
|
declare const jsx: () => TypedConfigItem[];
|
|
15027
15050
|
|
|
15028
|
-
declare const typescriptCore: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
15029
15051
|
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
15030
15052
|
|
|
15031
15053
|
declare const githubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
@@ -15039,4 +15061,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
|
|
|
15039
15061
|
*/
|
|
15040
15062
|
declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
|
|
15041
15063
|
|
|
15042
|
-
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintParser, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, 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_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type
|
|
15064
|
+
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, 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_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type PerfectionistSortOrder, type PerfectionistSortType, type PrettierOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, defineESLintConfig, format, getOverrides, githubAction, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, prettier, regexp, resolveSubOptions, sort, specials, stylistic, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { Options } from 'eslint-processor-vue-blocks';
|
|
|
5
5
|
export { default as processorVueBlocks } from 'eslint-processor-vue-blocks';
|
|
6
6
|
import { Linter } from 'eslint';
|
|
7
7
|
import { RequiredOptions, BuiltInParserName } from 'prettier';
|
|
8
|
-
export { config as createTypeScriptConfig, plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
|
|
9
8
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
10
9
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
11
10
|
export { eslintPluginRegexp as pluginRegexp };
|
|
@@ -18,6 +17,7 @@ export { default as pluginMarkdown } from '@eslint/markdown';
|
|
|
18
17
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
19
18
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
20
19
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
20
|
+
export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
|
|
21
21
|
export { default as pluginFormat } from 'eslint-plugin-format';
|
|
22
22
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
23
23
|
export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
@@ -14622,7 +14622,7 @@ type Yoda = [] | [("always" | "never")] | [
|
|
|
14622
14622
|
onlyEquality?: boolean;
|
|
14623
14623
|
}
|
|
14624
14624
|
];
|
|
14625
|
-
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | '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/ntnyq' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/
|
|
14625
|
+
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/imports' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | '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/ntnyq' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
|
|
14626
14626
|
|
|
14627
14627
|
/**
|
|
14628
14628
|
* Typed flat config item
|
|
@@ -14633,14 +14633,22 @@ type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & RuleOptions>, 'pl
|
|
|
14633
14633
|
*/
|
|
14634
14634
|
plugins?: Record<string, any>;
|
|
14635
14635
|
};
|
|
14636
|
+
/**
|
|
14637
|
+
* ESLint config
|
|
14638
|
+
*/
|
|
14639
|
+
type ESLintConfig = Linter.Config;
|
|
14636
14640
|
/**
|
|
14637
14641
|
* ESLint parser
|
|
14638
14642
|
*/
|
|
14639
14643
|
type ESLintParser = Linter.Parser;
|
|
14644
|
+
/**
|
|
14645
|
+
* ESLint processor
|
|
14646
|
+
*/
|
|
14647
|
+
type ESLintProcessor = Linter.Processor;
|
|
14640
14648
|
/**
|
|
14641
14649
|
* Parser options
|
|
14642
14650
|
*/
|
|
14643
|
-
type
|
|
14651
|
+
type ESLintParserOptions = Linter.ParserOptions;
|
|
14644
14652
|
|
|
14645
14653
|
/**
|
|
14646
14654
|
* @file Config options
|
|
@@ -14749,7 +14757,21 @@ interface ConfigTypeScriptOptions extends OptionsOverrides {
|
|
|
14749
14757
|
/**
|
|
14750
14758
|
* Additional parser options
|
|
14751
14759
|
*/
|
|
14752
|
-
parserOptions?: Partial<
|
|
14760
|
+
parserOptions?: Partial<ESLintParserOptions>;
|
|
14761
|
+
/**
|
|
14762
|
+
* Glob patterns for files that should be type aware.
|
|
14763
|
+
* @default ['**\/*.{ts,tsx}']
|
|
14764
|
+
*/
|
|
14765
|
+
filesTypeAware?: string[];
|
|
14766
|
+
/**
|
|
14767
|
+
* Glob patterns for files that should not be type aware.
|
|
14768
|
+
* @default ['**\/*.md\/**', '**\/*.astro/*.ts']
|
|
14769
|
+
*/
|
|
14770
|
+
ignoresTypeAware?: string[];
|
|
14771
|
+
/**
|
|
14772
|
+
* Overrides built-in type aware rules
|
|
14773
|
+
*/
|
|
14774
|
+
overridesTypeAwareRules?: TypedConfigItem['rules'];
|
|
14753
14775
|
}
|
|
14754
14776
|
interface ConfigSortOptions {
|
|
14755
14777
|
/**
|
|
@@ -14794,7 +14816,7 @@ interface ConfigVueOptions extends OptionsOverrides {
|
|
|
14794
14816
|
}
|
|
14795
14817
|
interface ConfigTestOptions extends OptionsOverrides {
|
|
14796
14818
|
/**
|
|
14797
|
-
*
|
|
14819
|
+
* Overrides built-in vitest rules
|
|
14798
14820
|
*/
|
|
14799
14821
|
overridesVitestRules?: TypedConfigItem['rules'];
|
|
14800
14822
|
}
|
|
@@ -14846,20 +14868,20 @@ interface ConfigOptionsInternal {
|
|
|
14846
14868
|
* Config factory options
|
|
14847
14869
|
*/
|
|
14848
14870
|
interface ConfigOptions extends ConfigOptionsInternal {
|
|
14871
|
+
node?: ConfigNodeOptions;
|
|
14872
|
+
jsdoc?: ConfigJsdocOptions;
|
|
14849
14873
|
ignores?: ConfigIgnoresOptions;
|
|
14850
|
-
sort?: boolean | ConfigSortOptions;
|
|
14851
|
-
command?: boolean | ConfigCommandOptions;
|
|
14852
|
-
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
14853
14874
|
imports?: ConfigImportsOptions;
|
|
14854
|
-
|
|
14875
|
+
command?: ConfigCommandOptions;
|
|
14876
|
+
comments?: ConfigCommentsOptions;
|
|
14855
14877
|
javascript?: ConfigJavaScriptOptions;
|
|
14878
|
+
sort?: boolean | ConfigSortOptions;
|
|
14879
|
+
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
14856
14880
|
stylistic?: boolean | ConfigStylisticOptions;
|
|
14857
14881
|
typescript?: boolean | ConfigTypeScriptOptions;
|
|
14858
14882
|
unicorn?: boolean | ConfigUnicornOptions;
|
|
14859
14883
|
prettier?: boolean | ConfigPrettierOptions;
|
|
14860
14884
|
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
14861
|
-
comments?: boolean | ConfigCommentsOptions;
|
|
14862
|
-
jsdoc?: boolean | ConfigJsdocOptions;
|
|
14863
14885
|
unocss?: boolean | ConfigUnoCSSOptions;
|
|
14864
14886
|
regexp?: boolean | ConfigRegexpOptions;
|
|
14865
14887
|
jsonc?: boolean | ConfigJsoncOptions;
|
|
@@ -14886,7 +14908,7 @@ type PrettierOptions = Partial<Pick<RequiredOptions, 'semi' | 'useTabs' | 'tabWi
|
|
|
14886
14908
|
/**
|
|
14887
14909
|
* Config factory
|
|
14888
14910
|
*/
|
|
14889
|
-
declare function defineESLintConfig(options?: ConfigOptions, userConfigs
|
|
14911
|
+
declare function defineESLintConfig(options?: ConfigOptions, ...userConfigs: Awaitable<TypedConfigItem | TypedConfigItem[] | ESLintConfig[]>[]): Promise<FlatConfigComposer<TypedConfigItem, ConfigNames>>;
|
|
14890
14912
|
|
|
14891
14913
|
/**
|
|
14892
14914
|
* @file globs constants
|
|
@@ -14912,6 +14934,7 @@ declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
|
14912
14934
|
declare const GLOB_TOML = "**/*.toml";
|
|
14913
14935
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
14914
14936
|
declare const GLOB_ASTRO = "**/*.astro";
|
|
14937
|
+
declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
14915
14938
|
declare const GLOB_SVELTE = "**/*.svelte";
|
|
14916
14939
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
14917
14940
|
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
@@ -15025,7 +15048,6 @@ declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[]
|
|
|
15025
15048
|
declare const javascript: (options?: ConfigJavaScriptOptions) => TypedConfigItem[];
|
|
15026
15049
|
declare const jsx: () => TypedConfigItem[];
|
|
15027
15050
|
|
|
15028
|
-
declare const typescriptCore: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
15029
15051
|
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
15030
15052
|
|
|
15031
15053
|
declare const githubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
@@ -15039,4 +15061,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
|
|
|
15039
15061
|
*/
|
|
15040
15062
|
declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
|
|
15041
15063
|
|
|
15042
|
-
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintParser, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, 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_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type
|
|
15064
|
+
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportsOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, 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_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type LiteralUnion, type OptionsFiles, type OptionsOverrides, type PerfectionistSortOrder, type PerfectionistSortType, type PrettierOptions, type ResolvedOptions, type RuleOptions, type TypedConfigItem, antfu, command, comments, defineESLintConfig, format, getOverrides, githubAction, gitignore, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, prettier, regexp, resolveSubOptions, sort, specials, stylistic, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };
|