Skip to content
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: 4 comments 4 replies

Comment options

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

@beatrixbee
Comment options

@teetangh
Comment options

Answer selected by stackerito
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@leandroluk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants