758 B
758 B
| title | source | updated | tags | |||
|---|---|---|---|---|---|---|
| Next.js 16 — next lint Command Removed | daily/2026-05-10.md | 2026-05-10 |
|
Next.js 16 — next lint Command Removed
Change
next lint was removed in Next.js 16. Running it produces an error:
Unknown command: lint
Fix
Replace next lint with a direct ESLint call in package.json:
{
"scripts": {
"lint": "eslint src/"
}
}
Or if using a flat config with a specific pattern:
"lint": "eslint src/ --ext .ts,.tsx"
Note for Payload CMS Projects
Payload CMS 3.x Next.js templates still ship with "lint": "next lint" in package.json. Update it immediately when upgrading to Next.js 16 or when starting a new project on Next.js 16+.