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
BengalOP
@joulev thanks fo reply, it does give me a warning when using img tag
Avatar
@Bengal <@484037068239142956> 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