Skip to content

Commit

Permalink
feat: add componentExts to top level config
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 28, 2023
1 parent 38bef4a commit 2080be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/factory.ts
Expand Up @@ -53,6 +53,7 @@ export function antfu(options: OptionsConfig & FlatESLintConfigItem = {}, ...use
stylistic: enableStylistic = true,
gitignore: enableGitignore = true,
overrides = {},
componentExts = [],
} = options

const configs: FlatESLintConfigItem[][] = []
Expand Down Expand Up @@ -85,9 +86,6 @@ export function antfu(options: OptionsConfig & FlatESLintConfigItem = {}, ...use
unicorn(),
)

// In the future we may support more component extensions like Svelte or so
const componentExts: string[] = []

if (enableVue)
componentExts.push('vue')

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Expand Up @@ -43,7 +43,7 @@ export interface OptionsIsInEditor {
isInEditor?: boolean
}

export interface OptionsConfig {
export interface OptionsConfig extends OptionsComponentExts {
/**
* Enable gitignore support.
*
Expand Down

0 comments on commit 2080be2

Please sign in to comment.