---
title: "Next.js 16 — next lint Command Removed"
source: daily/2026-05-10.md
updated: 2026-05-10
tags: [nextjs, eslint, tooling]
---

# 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`:

```json
{
  "scripts": {
    "lint": "eslint src/"
  }
}
```

Or if using a flat config with a specific pattern:

```json
"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+.
