Skip to content

Incompatible with the latest "eslint-config-next" #19

@pangolingo

Description

@pangolingo

I upgraded Next.js from v14 to v15, which included upgrading eslint-config-next to 15.3.3.

I also have @thoughtbot/eslint-config installed.

When I run eslint with the new version I get an error:

> npm run lint:fix

> lint:fix
> eslint . --fix


Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't determine the plugin "react-hooks" uniquely.

- /Users/daveiverson/code/workmoney/eng-wm-vercel/node_modules/eslint-config-next/node_modules/eslint-plugin-react-hooks/index.js (loaded in ".eslintrc » eslint-config-next » plugin:react-hooks/recommended")
- /Users/daveiverson/code/workmoney/eng-wm-vercel/node_modules/eslint-plugin-react-hooks/index.js (loaded in ".eslintrc » @thoughtbot/eslint-config » ./react-base")

Please remove the "plugins" setting from either config or remove either plugin installation.

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

It looks like the version of react-hooks used by the Next.js eslint is different than the version used in this library.

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