- Notifications
You must be signed in to change notification settings - Fork29.5k
Open
Description
Link to the code that reproduces this issue
https://github.com/boiseiben/reproduction-app
To Reproduce
Starting from scratch (alternatively, just run the last command after cloning the repo linked above):
pnpm create next-app@canary --example reproduction-template reproduction-appcd reproduction-apppnpx @next/codemod@canary next-lint-to-eslint-cli.
Current vs. Expected behavior
The diff on package.json includes in part:
- "lint": "next lint",- "lint:fix": "next lint --fix .",+ "lint": "eslint .",+ "lint:fix": "eslint --fix . .",
That last line seems to have an extra .
at the end.
Provide environment information
Operating System: Platform: linux Arch: x64 Version:#1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 Available memory (MB): 31770 Available CPU cores: 12Binaries: Node: 24.2.0 npm: 11.3.0 Yarn: N/A pnpm: 10.15.0Relevant Packages: next: 15.6.0-canary.51 // Latest available version is detected (15.6.0-canary.51). eslint-config-next: N/A react: 19.2.0 react-dom: 19.2.0 typescript: N/ANext.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Linting
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I am pretty sure the issue came fromthis commit and is on or nearthis line, which should have another conditional around it based on checking for what paths might already exist in the command.