Skip to content

Commit 4344a39

Browse files
committed
fix: update
1 parent 36e1f42 commit 4344a39

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@ async function init() {
350350
const needsRouter = argv.router || argv['vue-router'] || features.includes('router')
351351
const needsPinia = argv.pinia || features.includes('pinia')
352352
const needsVitest = argv.vitest || argv.tests || features.includes('vitest')
353-
const needsEslint = argv.eslint || argv['eslint-with-prettier'] || features.includes('eslint')
353+
const needsEslint =
354+
argv.eslint ||
355+
argv['eslint-with-oxlint'] ||
356+
argv['eslint-with-prettier'] ||
357+
features.includes('eslint')
354358
const needsPrettier =
355359
argv.prettier || argv['eslint-with-prettier'] || features.includes('prettier')
356360
const needsOxlint = argv['eslint-with-oxlint'] || result.experimentOxlint
@@ -486,7 +490,7 @@ async function init() {
486490
}
487491

488492
// Render ESLint config
489-
if (needsEslint || needsOxlint) {
493+
if (needsEslint) {
490494
renderEslint(root, {
491495
needsTypeScript,
492496
needsOxlint,

0 commit comments

Comments
 (0)