Skip to content

[eslint-plugin-react-hooks] Add ESLint v10 support#35720

Open
azat-io wants to merge 1 commit intofacebook:mainfrom
azat-io:feat/eslint-10
Open

[eslint-plugin-react-hooks] Add ESLint v10 support#35720
azat-io wants to merge 1 commit intofacebook:mainfrom
azat-io:feat/eslint-10

Conversation

@azat-io
Copy link

@azat-io azat-io commented Feb 8, 2026

Summary

ESLint v10.0.0 was released on February 7, 2026. The current peerDependencies for eslint-plugin-react-hooks only allows up to ^9.0.0, which causes peer dependency warnings when installing with ESLint v10.

This PR:

  • Adds ^10.0.0 to the eslint peer dependency range
  • Adds eslint-v10 to devDependencies for testing
  • Adds an eslint-v10 e2e fixture (based on the existing eslint-v9 fixture)

ESLint v10's main breaking changes (removal of legacy eslintrc config, deprecated context methods) don't affect this plugin - flat config is already supported since v7.0.0, and the deprecated APIs already have fallbacks in place.

How did you test this change?

Ran the existing unit test suite:

cd packages/eslint-plugin-react-hooks && yarn test

All 5082 tests passed.

@meta-cla
Copy link

meta-cla bot commented Feb 8, 2026

Hi @azat-io!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant