11/**
2- * Generated by tsnapi — public API snapshot of `@antfu/eslint-config` */
3- // Interfaces
2+ * Generated by tsnapi — public API snapshot of `@antfu/eslint-config`
3+ */
4+ // #region Interfaces
45export interface OptionsComponentExts {
56 componentExts ?: string [ ] ;
67}
78export interface OptionsConfig extends OptionsComponentExts , OptionsProjectType {
89 gitignore ?: boolean | FlatGitignoreOptions ;
9- ignores ?: string [ ] | ( ( originals : string [ ] ) => string [ ] ) ;
10+ ignores ?: string [ ] | ( ( _ : string [ ] ) => string [ ] ) ;
1011 lessOpinionated ?: boolean ;
1112 javascript ?: OptionsOverrides ;
1213 node ?: boolean ;
@@ -1783,7 +1784,7 @@ export interface RuleOptions {
17831784 'vue/no-import-compiler-macros' ?: Linter . RuleEntry < [ ] > ;
17841785 'vue/no-irregular-whitespace' ?: Linter . RuleEntry < VueNoIrregularWhitespace > ;
17851786 'vue/no-lifecycle-after-await' ?: Linter . RuleEntry < [ ] > ;
1786- 'vue/no-literals-in-template' ?: Linter . RuleEntry < [ ] > ;
1787+ 'vue/no-literals-in-template' ?: Linter . RuleEntry < VueNoLiteralsInTemplate > ;
17871788 'vue/no-lone-template' ?: Linter . RuleEntry < VueNoLoneTemplate > ;
17881789 'vue/no-loss-of-precision' ?: Linter . RuleEntry < [ ] > ;
17891790 'vue/no-multi-spaces' ?: Linter . RuleEntry < VueNoMultiSpaces > ;
@@ -1862,9 +1863,11 @@ export interface RuleOptions {
18621863 'vue/prefer-import-from-vue' ?: Linter . RuleEntry < [ ] > ;
18631864 'vue/prefer-prop-type-boolean-first' ?: Linter . RuleEntry < [ ] > ;
18641865 'vue/prefer-separate-static-class' ?: Linter . RuleEntry < [ ] > ;
1866+ 'vue/prefer-single-event-payload' ?: Linter . RuleEntry < [ ] > ;
18651867 'vue/prefer-template' ?: Linter . RuleEntry < [ ] > ;
18661868 'vue/prefer-true-attribute-shorthand' ?: Linter . RuleEntry < VuePreferTrueAttributeShorthand > ;
18671869 'vue/prefer-use-template-ref' ?: Linter . RuleEntry < [ ] > ;
1870+ 'vue/prefer-v-model' ?: Linter . RuleEntry < [ ] > ;
18681871 'vue/prop-name-casing' ?: Linter . RuleEntry < VuePropNameCasing > ;
18691872 'vue/quote-props' ?: Linter . RuleEntry < VueQuoteProps > ;
18701873 'vue/require-component-is' ?: Linter . RuleEntry < [ ] > ;
@@ -1969,8 +1972,9 @@ export interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent
19691972export interface StylisticOptions extends StylisticConfig , OptionsOverrides {
19701973 lessOpinionated ?: boolean ;
19711974}
1975+ // #endregion
19721976
1973- // Types
1977+ // #region Types
19741978export type Awaitable < T > = T | Promise < T > ;
19751979export type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files' ;
19761980export type OptionsTypescript = ( OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly ) | ( OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly ) ;
@@ -1980,8 +1984,9 @@ export type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> &
19801984 plugins ?: Record < string , any > ;
19811985 rules ?: Rules ;
19821986} ;
1987+ // #endregion
19831988
1984- // Functions
1989+ // #region Functions
19851990export declare function angular ( _ ?: OptionsOverrides ) : Promise < TypedFlatConfigItem [ ] > ;
19861991export declare function antfu ( _ ?: OptionsConfig & Omit < TypedFlatConfigItem , 'files' | 'ignores' > , ..._ : Awaitable < TypedFlatConfigItem | TypedFlatConfigItem [ ] | FlatConfigComposer < any , any > | Linter . Config [ ] > [ ] ) : FlatConfigComposer < TypedFlatConfigItem , ConfigNames > ;
19871992export declare function astro ( _ ?: OptionsOverrides & OptionsStylistic & OptionsFiles ) : Promise < TypedFlatConfigItem [ ] > ;
@@ -1992,7 +1997,7 @@ export declare function disables(): Promise<TypedFlatConfigItem[]>;
19921997export declare function ensurePackages ( _ : ( string | undefined ) [ ] ) : Promise < void > ;
19931998export declare function formatters ( _ ?: OptionsFormatters | true , _ ?: StylisticConfig ) : Promise < TypedFlatConfigItem [ ] > ;
19941999export declare function getOverrides < K extends keyof OptionsConfig > ( _ : OptionsConfig , _ : K ) : Partial < Linter . RulesRecord & RuleOptions > ;
1995- export declare function ignores ( _ ?: string [ ] | ( ( originals : string [ ] ) => string [ ] ) , _ ?: boolean ) : Promise < TypedFlatConfigItem [ ] > ;
2000+ export declare function ignores ( _ ?: string [ ] | ( ( _ : string [ ] ) => string [ ] ) , _ ?: boolean ) : Promise < TypedFlatConfigItem [ ] > ;
19962001export declare function imports ( _ ?: OptionsOverrides & OptionsStylistic ) : Promise < TypedFlatConfigItem [ ] > ;
19972002export declare function interopDefault < T > ( _ : Awaitable < T > ) : Promise < T extends {
19982003 default : infer U ;
@@ -2027,8 +2032,9 @@ export declare function unicorn(_?: OptionsUnicorn): Promise<TypedFlatConfigItem
20272032export declare function unocss ( _ ?: OptionsUnoCSS ) : Promise < TypedFlatConfigItem [ ] > ;
20282033export declare function vue ( _ ?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles ) : Promise < TypedFlatConfigItem [ ] > ;
20292034export declare function yaml ( _ ?: OptionsOverrides & OptionsStylistic & OptionsFiles ) : Promise < TypedFlatConfigItem [ ] > ;
2035+ // #endregion
20302036
2031- // Variables
2037+ // #region Variables
20322038export declare const CONFIG_PRESET_FULL_OFF : OptionsConfig ;
20332039export declare const CONFIG_PRESET_FULL_ON : OptionsConfig ;
20342040export declare const defaultPluginRenaming : {
@@ -2047,21 +2053,34 @@ export declare const defaultPluginRenaming: {
20472053} ;
20482054export declare const GLOB_ALL_SRC : string [ ] ;
20492055export declare const GLOB_ASTRO : string ;
2056+ export declare const GLOB_ASTRO_TS : string ;
20502057export declare const GLOB_CSS : string ;
20512058export declare const GLOB_EXCLUDE : string [ ] ;
2059+ export declare const GLOB_GRAPHQL : string ;
2060+ export declare const GLOB_HTML : string ;
2061+ export declare const GLOB_JS : string ;
20522062export declare const GLOB_JSON : string ;
2063+ export declare const GLOB_JSON5 : string ;
20532064export declare const GLOB_JSONC : string ;
20542065export declare const GLOB_JSX : string ;
20552066export declare const GLOB_LESS : string ;
2067+ export declare const GLOB_MARKDOWN : string ;
20562068export declare const GLOB_MARKDOWN_CODE : string ;
20572069export declare const GLOB_MARKDOWN_IN_MARKDOWN : string ;
2070+ export declare const GLOB_POSTCSS : string ;
2071+ export declare const GLOB_SCSS : string ;
20582072export declare const GLOB_SRC : string ;
20592073export declare const GLOB_SRC_EXT : string ;
2074+ export declare const GLOB_STYLE : string ;
2075+ export declare const GLOB_SVELTE : string ;
20602076export declare const GLOB_SVG : string ;
20612077export declare const GLOB_TESTS : string [ ] ;
20622078export declare const GLOB_TOML : string ;
2079+ export declare const GLOB_TS : string ;
20632080export declare const GLOB_TSX : string ;
20642081export declare const GLOB_VUE : string ;
2082+ export declare const GLOB_XML : string ;
2083+ export declare const GLOB_YAML : string ;
20652084export declare const parserPlain : {
20662085 meta : {
20672086 name : string ;
@@ -2088,22 +2107,9 @@ export declare const parserPlain: {
20882107 } ;
20892108} ;
20902109export declare const StylisticConfigDefaults : StylisticConfig ;
2110+ // #endregion
20912111
2092- // Default Export
2112+ // #region Default Export
20932113declare function _default ( _ ?: OptionsConfig & Omit < TypedFlatConfigItem , 'files' | 'ignores' > , ..._ : Awaitable < TypedFlatConfigItem | TypedFlatConfigItem [ ] | FlatConfigComposer < any , any > | Linter . Config [ ] > [ ] ) : FlatConfigComposer < TypedFlatConfigItem , ConfigNames > ;
20942114export default _default
2095-
2096- // Other
2097- export { GLOB_ASTRO_TS }
2098- export { GLOB_GRAPHQL }
2099- export { GLOB_HTML }
2100- export { GLOB_JS }
2101- export { GLOB_JSON5 }
2102- export { GLOB_MARKDOWN }
2103- export { GLOB_POSTCSS }
2104- export { GLOB_SCSS }
2105- export { GLOB_STYLE }
2106- export { GLOB_SVELTE }
2107- export { GLOB_TS }
2108- export { GLOB_XML }
2109- export { GLOB_YAML }
2115+ // #endregion
0 commit comments