Skip to content

Migrate from next lint to ESLint CLI (Next.js 16 deprecation) #419

@Shramkoweb

Description

@Shramkoweb

Description

next lint is deprecated and will be removed in Next.js 16.
To ensure compatibility and prevent breakage, we need to migrate to the official ESLint CLI.

Current Behavior

Running next lint works but shows deprecation warning:

next lint is deprecated and will be removed in Next.js 16.
For new projects, use create-next-app to choose your preferred linter.
For existing projects, migrate to the ESLint CLI:
npx @next/codemod@canary next-lint-to-eslint-cli .

https://nextjs.org/blog/next-15-5#next-lint-deprecation

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdependenciesPull requests that update a dependency file

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions