Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b6a32bb5
Unverified
Commit
b6a32bb5
authored
Sep 22, 2025
by
Jiwon Choi
Committed by
GitHub
Sep 22, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[backport] [CNA] use linter preference (#83194) (#84087)
backports
https://github.com/vercel/next.js/pull/83194
parent
26d61f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
index.ts
packages/create-next-app/index.ts
+9
-1
No files found.
packages/create-next-app/index.ts
View file @
b6a32bb5
...
@@ -291,6 +291,11 @@ async function run(): Promise<void> {
...
@@ -291,6 +291,11 @@ async function run(): Promise<void> {
opts
.
biome
=
preferredLinter
===
'biome'
opts
.
biome
=
preferredLinter
===
'biome'
// No need to set noLinter flag since we check args at runtime
// No need to set noLinter flag since we check args at runtime
}
else
{
}
else
{
const
linterIndexMap
=
{
eslint
:
0
,
biome
:
1
,
none
:
2
,
}
const
{
linter
}
=
await
prompts
({
const
{
linter
}
=
await
prompts
({
onState
:
onPromptState
,
onState
:
onPromptState
,
type
:
'select'
,
type
:
'select'
,
...
@@ -313,7 +318,10 @@ async function run(): Promise<void> {
...
@@ -313,7 +318,10 @@ async function run(): Promise<void> {
description
:
'Skip linter configuration'
,
description
:
'Skip linter configuration'
,
},
},
],
],
initial
:
0
,
initial
:
linterIndexMap
[
getPrefOrDefault
(
'linter'
)
as
keyof
typeof
linterIndexMap
],
})
})
opts
.
eslint
=
linter
===
'eslint'
opts
.
eslint
=
linter
===
'eslint'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment