Commit 5b599eca authored by Vercel's avatar Vercel

Fix: When using `create-next-app` with the `--api` flag combined with `--yes`…

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()`\.
parent c5af12a2
......@@ -489,6 +489,11 @@ async function run(): Promise<void> {
opts.ultracite = false
preferences.linter = 'none'
preferences.eslint = false
} else if (opts.api) {
// When using --api without an explicit linter flag, default to no linter
opts.eslint = false
opts.biome = false
opts.ultracite = false
}
if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment