Skip to content

Using Next.js default eslint rulesets (e.g. 'plugin:react-hooks/recommended') #31

@jnachtigall

Description

@jnachtigall

Running npm run lint (just after cloning this repo) results in

⚠ The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/app/api-reference/config/eslint#migrating-existing-config

Is there a reason why the Mantine Next.js template does not use eslint-plugin-next or eslint-config-next ?

If this is deliberate then maybe disable the above warning - or add some information in the Readme.

I guess that extending from Next.js default eslint rules would benefit the user. For instance, I noticed that with the default eslint setup from this template 'plugin:react-hooks/recommended' does not show errors/warnings (maybe not included in Mantine preset?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions