Skip to content

The Next.js plugin was not detected in your ESLint configuration #28485

Answered by thibautsabot
stackerito asked this question in Help
Discussion options

You must be logged in to vote

Hello !
I don't think you need both .eslintrc.json and .eslinrc.js.
In fact it might be the root cause of your issue.

The second file seems to override the first.

If you get rid of .eslintrc.json to only keep .eslinrc.js and add the next plugin at the end like :

"env": {
        "browser": true,
        "es2021": true
    },
    "extends": [
        "eslint:recommended",
        "plugin:react/recommended",
      	"next/core-web-vitals"
    ],
 ...

it should fix your problem.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@stackerito
Comment options

@beatrixbee
Comment options

Answer selected by stackerito
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants