We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d61f1 commit b6a32bbCopy full SHA for b6a32bb
packages/create-next-app/index.ts
@@ -291,6 +291,11 @@ async function run(): Promise<void> {
291
opts.biome = preferredLinter === 'biome'
292
// No need to set noLinter flag since we check args at runtime
293
} else {
294
+ const linterIndexMap = {
295
+ eslint: 0,
296
+ biome: 1,
297
+ none: 2,
298
+ }
299
const { linter } = await prompts({
300
onState: onPromptState,
301
type: 'select',
@@ -313,7 +318,10 @@ async function run(): Promise<void> {
313
318
description: 'Skip linter configuration',
314
319
},
315
320
],
316
- initial: 0,
321
+ initial:
322
+ linterIndexMap[
323
+ getPrefOrDefault('linter') as keyof typeof linterIndexMap
324
+ ],
317
325
})
326
327
opts.eslint = linter === 'eslint'
0 commit comments