Skip to content

Commit

Permalink
fix: ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 29, 2023
1 parent 9781a43 commit ae3e6d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/configs/ignores.ts
Expand Up @@ -5,7 +5,6 @@ export function ignores(): FlatESLintConfigItem[] {
return [
{
ignores: GLOB_EXCLUDE,
name: 'antfu:ignores:basic',
},
]
}
8 changes: 2 additions & 6 deletions src/factory.ts
Expand Up @@ -62,12 +62,8 @@ export function antfu(options: OptionsConfig & FlatESLintConfigItem = {}, ...use
configs.push([gitignore(enableGitignore)])
}
else {
if (fs.existsSync('.gitignore')) {
configs.push([{
...gitignore(),
name: 'antfu:ignores:gitignore',
}])
}
if (fs.existsSync('.gitignore'))
configs.push([gitignore()])
}
}

Expand Down

0 comments on commit ae3e6d3

Please sign in to comment.