Commands.app

next lint

Development

Run ESLint for Next.js

Options & Flags
Available options for this command
--fix

Automatically fix issues

--dir

Specify directory to lint

Examples
Common usage examples

Run ESLint

next lint

Fix auto-fixable issues

next lint --fix

Lint using package.json script

npm run lint
Related Commands
You might also find these useful