Next.js Discord

Discord Forum

ESLint does not run automatically in create-next-app

Answered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
Schneider’s Smooth-fronted CaimanOP
I created an app with create-next-app@latest and noticed it does not run ESLint automatically when I save a file say. I noticed this because when I deployed to Vercel that is when it started showing errors. PS if I run:
npm run lint
then it shows errors. Should not it also do it automatically?
Using VSCode
Answered by Yi Lon Ma
I think you are confusing running the lint command with the linter you get inside your editor while editing files. For that you need eslint extension from vsc's marketplace
View full answer

2 Replies