Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: [eslint-plugin-react-hooks] Compatibility issue with ESLint 9.x.x #31158

Closed
HammadunNoor opened this issue Oct 9, 2024 · 2 comments
Closed

Comments

@HammadunNoor
Copy link

It appears that eslint-plugin-react-hooks is not compatible with ESLint version 9.x.x.
When attempting to use ESLint 9.x.x with eslint-plugin-react-hooks, I encounter dependency resolution issues, specifically that the plugin does not support ESLint 9.

Steps to reproduce:

  1. Install ESLint 9.x.x along with eslint-plugin-react-hooks.
  2. Run ESLint or install dependencies.
  3. Encounter peer dependency conflict or related errors.

Expected behavior:

  • eslint-plugin-react-hooks should support ESLint 9.x.x without errors.

Actual behavior:

  • Peer dependency conflicts or errors occur during installation or usage of ESLint 9 with this plugin.

React version: "react": "18.3.1",

Link to code example:

The current behavior

npm install with --legacy-peer-dependencies

these are my packages
"eslint": "^9.8.0",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.0",

The expected behavior

npm i without the legacy peer flag

@HammadunNoor HammadunNoor added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Oct 9, 2024
@djibarian
Copy link

Have the same problem.

@eps1lon
Copy link
Collaborator

eps1lon commented Oct 9, 2024

Fixed in #28773 and available in eslint-plugin-react-hooks@canary.

@eps1lon eps1lon closed this as completed Oct 9, 2024
@eps1lon eps1lon added Component: ESLint Rules and removed Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants