Skip to content

Commit 4ba55ef

Browse files
committed
fix: don't pass '.' to lint commands
1 parent abead4b commit 4ba55ef

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/01-app/03-api-reference/06-cli/create-next-app.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Would you like to customize the import alias (`@/*` by default)? No / Yes
7676

7777
**None**: Skip linter configuration entirely. You can always add a linter later.
7878

79-
> **Note**: `next lint` command will be deprecated in Next.js 16. New projects should use the chosen linter directly (e.g., `biome check .` or `eslint .`).
79+
> **Note**: `next lint` command will be deprecated in Next.js 16. New projects should use the chosen linter directly (e.g., `biome check` or `eslint`).
8080
8181
Once you've answered the prompts, a new project will be created with your chosen configuration.
8282

packages/create-next-app/templates/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ export const installTemplate = async ({
193193
dev: `next dev${turbopack ? " --turbopack" : ""}`,
194194
build: "next build",
195195
start: "next start",
196-
...(eslint && { lint: "eslint ." }),
197-
...(biome && { lint: "biome check .", format: "biome format --write ." }),
196+
...(eslint && { lint: "eslint" }),
197+
...(biome && { lint: "biome check", format: "biome format --write" }),
198198
},
199199
/**
200200
* Default dependencies.

packages/next/src/cli/next-lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const nextLint = async (options: NextLintOptions, directory?: string) => {
7272
bold('create-next-app') +
7373
' to choose your preferred linter.\n' +
7474
'For existing projects, migrate to explicit ESLint configuration and update your package.json scripts to use ' +
75-
bold('"eslint ."') +
75+
bold('"eslint"') +
7676
' instead.\n'
7777
)
7878

0 commit comments

Comments
 (0)