ESLint does not run automatically in create-next-app
Answered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
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:
Using VSCode
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
2 Replies
@Schneider’s Smooth-fronted Caiman 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
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
Answer