@ntnyq/eslint-config 3.4.0 → 3.5.1

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.d.cts CHANGED
@@ -4,8 +4,9 @@ import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
4
4
  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
+ import { ConfigWithExtends } from 'typescript-eslint';
8
+ export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
7
9
  import { RequiredOptions, BuiltInParserName } from 'prettier';
8
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
9
10
  import * as eslintPluginRegexp from 'eslint-plugin-regexp';
10
11
  export { eslintPluginRegexp as pluginRegexp };
11
12
  export { default as pluginNode } from 'eslint-plugin-n';
@@ -17,7 +18,6 @@ export { default as pluginMarkdown } from '@eslint/markdown';
17
18
  export { default as pluginAntfu } from 'eslint-plugin-antfu';
18
19
  export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
19
20
  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';
@@ -42,8 +42,20 @@ export { jsoncEslintParser as parserJsonc };
42
42
  /**
43
43
  * @file Type Utils
44
44
  */
45
+ /**
46
+ * Array or not
47
+ */
45
48
  type Arrayable<T> = T | T[];
49
+ /**
50
+ * Promise or not
51
+ */
46
52
  type Awaitable<T> = T | Promise<T>;
53
+ /**
54
+ * Make types human readable
55
+ */
56
+ type Pretty<T> = {
57
+ [P in keyof T]: T[P];
58
+ } & {};
47
59
  /**
48
60
  * A literal type that supports custom further strings but preserves autocompletion in IDEs.
49
61
  *
@@ -14622,7 +14634,7 @@ type Yoda = [] | [("always" | "never")] | [
14622
14634
  onlyEquality?: boolean;
14623
14635
  }
14624
14636
  ];
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';
14637
+ 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/processor' | 'ntnyq/markdown/parser' | '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
14638
 
14627
14639
  /**
14628
14640
  * Typed flat config item
@@ -14646,9 +14658,13 @@ type ESLintParser = Linter.Parser;
14646
14658
  */
14647
14659
  type ESLintProcessor = Linter.Processor;
14648
14660
  /**
14649
- * Parser options
14661
+ * ESLint parserOptions
14650
14662
  */
14651
14663
  type ESLintParserOptions = Linter.ParserOptions;
14664
+ /**
14665
+ * TypeScript ESLint parserOptions
14666
+ */
14667
+ type TSESLintParserOptions = Pretty<Required<Required<ConfigWithExtends>['languageOptions']>['parserOptions']>;
14652
14668
 
14653
14669
  /**
14654
14670
  * @file Config options
@@ -14660,6 +14676,21 @@ type ESLintParserOptions = Linter.ParserOptions;
14660
14676
  interface OptionsFiles {
14661
14677
  files?: string[];
14662
14678
  }
14679
+ /**
14680
+ * Options for add `extensions` support
14681
+ */
14682
+ interface OptionsExtensions {
14683
+ extensions?: string[];
14684
+ }
14685
+ /**
14686
+ * Options for add `features` support
14687
+ */
14688
+ type OptionsFeatures = {
14689
+ /**
14690
+ * Support typescript
14691
+ */
14692
+ typescript?: boolean;
14693
+ };
14663
14694
  /**
14664
14695
  * Options for overrides `rules`
14665
14696
  */
@@ -14679,6 +14710,12 @@ type ConfigCommandOptions = ESLintPluginCommandOptions;
14679
14710
  interface ConfigJsdocOptions extends OptionsOverrides {
14680
14711
  }
14681
14712
  interface ConfigUnoCSSOptions extends OptionsOverrides {
14713
+ /**
14714
+ * Enable attributify sort order
14715
+ *
14716
+ * @default false
14717
+ */
14718
+ attributify?: boolean;
14682
14719
  }
14683
14720
  interface ConfigUnicornOptions extends OptionsOverrides {
14684
14721
  }
@@ -14749,7 +14786,7 @@ interface ConfigJavaScriptOptions extends OptionsOverrides {
14749
14786
  */
14750
14787
  strict?: boolean;
14751
14788
  }
14752
- interface ConfigTypeScriptOptions extends OptionsOverrides {
14789
+ interface ConfigTypeScriptOptions extends OptionsOverrides, OptionsFiles, OptionsExtensions {
14753
14790
  /**
14754
14791
  * Enable type aware check for TypeScript files
14755
14792
  */
@@ -14757,7 +14794,7 @@ interface ConfigTypeScriptOptions extends OptionsOverrides {
14757
14794
  /**
14758
14795
  * Additional parser options
14759
14796
  */
14760
- parserOptions?: Partial<ESLintParserOptions>;
14797
+ parserOptions?: TSESLintParserOptions;
14761
14798
  /**
14762
14799
  * Glob patterns for files that should be type aware.
14763
14800
  * @default ['**\/*.{ts,tsx}']
@@ -14795,11 +14832,11 @@ interface ConfigJsoncOptions extends OptionsOverrides {
14795
14832
  }
14796
14833
  interface ConfigYmlOptions extends OptionsOverrides {
14797
14834
  }
14798
- interface ConfigMarkdownOptions extends OptionsOverrides {
14835
+ interface ConfigMarkdownOptions extends OptionsOverrides, OptionsFiles, OptionsExtensions {
14799
14836
  }
14800
14837
  interface ConfigTomlOptions extends OptionsOverrides {
14801
14838
  }
14802
- interface ConfigVueOptions extends OptionsOverrides {
14839
+ interface ConfigVueOptions extends OptionsOverrides, OptionsFiles, OptionsFeatures {
14803
14840
  /**
14804
14841
  * Create virtual files for Vue SFC blocks to enable linting.
14805
14842
  *
@@ -14867,7 +14904,7 @@ interface ConfigOptionsInternal {
14867
14904
  /**
14868
14905
  * Config factory options
14869
14906
  */
14870
- interface ConfigOptions extends ConfigOptionsInternal {
14907
+ interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
14871
14908
  node?: ConfigNodeOptions;
14872
14909
  jsdoc?: ConfigJsdocOptions;
14873
14910
  ignores?: ConfigIgnoresOptions;
@@ -14977,12 +15014,24 @@ declare function resolveSubOptions<K extends keyof ConfigOptions>(options: Confi
14977
15014
 
14978
15015
  declare function mergePrettierOptions(options?: PrettierOptions, overrides?: PrettierOptions): PrettierOptions;
14979
15016
 
15017
+ /**
15018
+ * @file ESLint parsers
15019
+ */
15020
+
14980
15021
  /**
14981
15022
  * With meta
14982
15023
  */
14983
15024
  declare const parserTypeScript: {
14984
- meta?: { [K in keyof _typescript_eslint_utils_ts_eslint.Parser.ParserMeta]?: _typescript_eslint_utils_ts_eslint.Parser.ParserMeta[K] | undefined; };
14985
- parseForESLint(text: string, options?: unknown): { [k in keyof _typescript_eslint_utils_ts_eslint.Parser.ParseResult]: unknown; };
15025
+ meta?: {
15026
+ name?: string | undefined;
15027
+ version?: string | undefined;
15028
+ };
15029
+ parseForESLint(text: string, options?: unknown): {
15030
+ ast: unknown;
15031
+ scopeManager?: unknown;
15032
+ services?: unknown;
15033
+ visitorKeys?: unknown;
15034
+ };
14986
15035
  };
14987
15036
 
14988
15037
  /**
@@ -15061,4 +15110,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
15061
15110
  */
15062
15111
  declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
15063
15112
 
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 };
15113
+ 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 OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PerfectionistSortOrder, type PerfectionistSortType, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, 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
@@ -4,8 +4,9 @@ import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
4
4
  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
+ import { ConfigWithExtends } from 'typescript-eslint';
8
+ export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
7
9
  import { RequiredOptions, BuiltInParserName } from 'prettier';
8
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
9
10
  import * as eslintPluginRegexp from 'eslint-plugin-regexp';
10
11
  export { eslintPluginRegexp as pluginRegexp };
11
12
  export { default as pluginNode } from 'eslint-plugin-n';
@@ -17,7 +18,6 @@ export { default as pluginMarkdown } from '@eslint/markdown';
17
18
  export { default as pluginAntfu } from 'eslint-plugin-antfu';
18
19
  export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
19
20
  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';
@@ -42,8 +42,20 @@ export { jsoncEslintParser as parserJsonc };
42
42
  /**
43
43
  * @file Type Utils
44
44
  */
45
+ /**
46
+ * Array or not
47
+ */
45
48
  type Arrayable<T> = T | T[];
49
+ /**
50
+ * Promise or not
51
+ */
46
52
  type Awaitable<T> = T | Promise<T>;
53
+ /**
54
+ * Make types human readable
55
+ */
56
+ type Pretty<T> = {
57
+ [P in keyof T]: T[P];
58
+ } & {};
47
59
  /**
48
60
  * A literal type that supports custom further strings but preserves autocompletion in IDEs.
49
61
  *
@@ -14622,7 +14634,7 @@ type Yoda = [] | [("always" | "never")] | [
14622
14634
  onlyEquality?: boolean;
14623
14635
  }
14624
14636
  ];
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';
14637
+ 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/processor' | 'ntnyq/markdown/parser' | '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
14638
 
14627
14639
  /**
14628
14640
  * Typed flat config item
@@ -14646,9 +14658,13 @@ type ESLintParser = Linter.Parser;
14646
14658
  */
14647
14659
  type ESLintProcessor = Linter.Processor;
14648
14660
  /**
14649
- * Parser options
14661
+ * ESLint parserOptions
14650
14662
  */
14651
14663
  type ESLintParserOptions = Linter.ParserOptions;
14664
+ /**
14665
+ * TypeScript ESLint parserOptions
14666
+ */
14667
+ type TSESLintParserOptions = Pretty<Required<Required<ConfigWithExtends>['languageOptions']>['parserOptions']>;
14652
14668
 
14653
14669
  /**
14654
14670
  * @file Config options
@@ -14660,6 +14676,21 @@ type ESLintParserOptions = Linter.ParserOptions;
14660
14676
  interface OptionsFiles {
14661
14677
  files?: string[];
14662
14678
  }
14679
+ /**
14680
+ * Options for add `extensions` support
14681
+ */
14682
+ interface OptionsExtensions {
14683
+ extensions?: string[];
14684
+ }
14685
+ /**
14686
+ * Options for add `features` support
14687
+ */
14688
+ type OptionsFeatures = {
14689
+ /**
14690
+ * Support typescript
14691
+ */
14692
+ typescript?: boolean;
14693
+ };
14663
14694
  /**
14664
14695
  * Options for overrides `rules`
14665
14696
  */
@@ -14679,6 +14710,12 @@ type ConfigCommandOptions = ESLintPluginCommandOptions;
14679
14710
  interface ConfigJsdocOptions extends OptionsOverrides {
14680
14711
  }
14681
14712
  interface ConfigUnoCSSOptions extends OptionsOverrides {
14713
+ /**
14714
+ * Enable attributify sort order
14715
+ *
14716
+ * @default false
14717
+ */
14718
+ attributify?: boolean;
14682
14719
  }
14683
14720
  interface ConfigUnicornOptions extends OptionsOverrides {
14684
14721
  }
@@ -14749,7 +14786,7 @@ interface ConfigJavaScriptOptions extends OptionsOverrides {
14749
14786
  */
14750
14787
  strict?: boolean;
14751
14788
  }
14752
- interface ConfigTypeScriptOptions extends OptionsOverrides {
14789
+ interface ConfigTypeScriptOptions extends OptionsOverrides, OptionsFiles, OptionsExtensions {
14753
14790
  /**
14754
14791
  * Enable type aware check for TypeScript files
14755
14792
  */
@@ -14757,7 +14794,7 @@ interface ConfigTypeScriptOptions extends OptionsOverrides {
14757
14794
  /**
14758
14795
  * Additional parser options
14759
14796
  */
14760
- parserOptions?: Partial<ESLintParserOptions>;
14797
+ parserOptions?: TSESLintParserOptions;
14761
14798
  /**
14762
14799
  * Glob patterns for files that should be type aware.
14763
14800
  * @default ['**\/*.{ts,tsx}']
@@ -14795,11 +14832,11 @@ interface ConfigJsoncOptions extends OptionsOverrides {
14795
14832
  }
14796
14833
  interface ConfigYmlOptions extends OptionsOverrides {
14797
14834
  }
14798
- interface ConfigMarkdownOptions extends OptionsOverrides {
14835
+ interface ConfigMarkdownOptions extends OptionsOverrides, OptionsFiles, OptionsExtensions {
14799
14836
  }
14800
14837
  interface ConfigTomlOptions extends OptionsOverrides {
14801
14838
  }
14802
- interface ConfigVueOptions extends OptionsOverrides {
14839
+ interface ConfigVueOptions extends OptionsOverrides, OptionsFiles, OptionsFeatures {
14803
14840
  /**
14804
14841
  * Create virtual files for Vue SFC blocks to enable linting.
14805
14842
  *
@@ -14867,7 +14904,7 @@ interface ConfigOptionsInternal {
14867
14904
  /**
14868
14905
  * Config factory options
14869
14906
  */
14870
- interface ConfigOptions extends ConfigOptionsInternal {
14907
+ interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
14871
14908
  node?: ConfigNodeOptions;
14872
14909
  jsdoc?: ConfigJsdocOptions;
14873
14910
  ignores?: ConfigIgnoresOptions;
@@ -14977,12 +15014,24 @@ declare function resolveSubOptions<K extends keyof ConfigOptions>(options: Confi
14977
15014
 
14978
15015
  declare function mergePrettierOptions(options?: PrettierOptions, overrides?: PrettierOptions): PrettierOptions;
14979
15016
 
15017
+ /**
15018
+ * @file ESLint parsers
15019
+ */
15020
+
14980
15021
  /**
14981
15022
  * With meta
14982
15023
  */
14983
15024
  declare const parserTypeScript: {
14984
- meta?: { [K in keyof _typescript_eslint_utils_ts_eslint.Parser.ParserMeta]?: _typescript_eslint_utils_ts_eslint.Parser.ParserMeta[K] | undefined; };
14985
- parseForESLint(text: string, options?: unknown): { [k in keyof _typescript_eslint_utils_ts_eslint.Parser.ParseResult]: unknown; };
15025
+ meta?: {
15026
+ name?: string | undefined;
15027
+ version?: string | undefined;
15028
+ };
15029
+ parseForESLint(text: string, options?: unknown): {
15030
+ ast: unknown;
15031
+ scopeManager?: unknown;
15032
+ services?: unknown;
15033
+ visitorKeys?: unknown;
15034
+ };
14986
15035
  };
14987
15036
 
14988
15037
  /**
@@ -15061,4 +15110,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
15061
15110
  */
15062
15111
  declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
15063
15112
 
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 };
15113
+ 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 OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PerfectionistSortOrder, type PerfectionistSortType, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, 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 };