Skip to content

Commit 5b599ec

Browse files
committed
Fix: When using create-next-app with the --api flag combined with --yes \(or in CI\) without explicitly specifying a linter option\, the opts.ultracite variable is never initialized and remains undefined\. This causes a type mismatch when passed to createApp()\.
1 parent c5af12a commit 5b599ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/create-next-app/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,11 @@ async function run(): Promise<void> {
489489
opts.ultracite = false
490490
preferences.linter = 'none'
491491
preferences.eslint = false
492+
} else if (opts.api) {
493+
// When using --api without an explicit linter flag, default to no linter
494+
opts.eslint = false
495+
opts.biome = false
496+
opts.ultracite = false
492497
}
493498

494499
if (

0 commit comments

Comments
 (0)