Next.js Discord

Discord Forum

ESLint not working

Unanswered
Bengal posted this in #help-forum
Open in Discord
Avatar
BengalOP
It seems that eslint is not finding any errors/warnings even if I on purpose make a error it always returns 'No ESlint warnings or errors'
.eslintrc.json config
{
  "extends": "next/core-web-vitals"
}

and for example when i put
      <a href="/">Go to Home</a>

in the code it does not find it

7 Replies

Avatar
does it give a warning when you use <img>?
Avatar
BengalOP
@joulev thanks fo reply, it does give me a warning when using img tag
Avatar
yeah so it is working. iirc there is nothing wrong with using <a>, for example for external links
Avatar
BengalOP
yeah it seems that it is working but something is wrong about that specific rule
I was trying to point to internal page, also i am using the app directory
instead of pages
Avatar
you can send a PR to https://github.com/vercel/next.js/tree/canary/packages/eslint-plugin-next/src/rules to add a rule if you think it is a good addition