Skip to content

Commit 8e2e20f

Browse files
committed
fix: cli-suggest-remove-files
1 parent 3d92629 commit 8e2e20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = defineConfig({\n${coderwydConfig}\n})
109109
const files = fs.readdirSync(cwd)
110110
const legacyConfig: string[] = []
111111
files.forEach(file => {
112-
if (file.includes('eslint') || file.includes('prettier'))
112+
if (/eslint|prettier/.test(file) && !/eslint.config./.test(file))
113113
legacyConfig.push(file)
114114
})
115115
if (legacyConfig.length > 0) {

0 commit comments

Comments
 (0)