Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 24, 2025

The plugin:react-hooks/recommended-legacy preset was removed in eslint-plugin-react-hooks 7.0.1, breaking the lint command.

Changes

  • Removed deprecated plugin:react-hooks/recommended-legacy from extends
  • Added react-hooks to plugins array
  • Manually configured core hooks rules to maintain v6 behavior:
    rules: {
      "react-hooks/rules-of-hooks": "error",
      "react-hooks/exhaustive-deps": "warn",
    }

The v7 recommended preset now includes 17 React Compiler rules that would flag 30+ violations across the codebase. This approach preserves existing behavior while fixing the immediate breakage.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Copilot AI changed the title [WIP] Update eslint-plugin-react-hooks to version 7.0.1 Fix ESLint config for eslint-plugin-react-hooks 7.0.1 Dec 24, 2025
Copilot AI requested a review from pylipp December 24, 2025 11:22
@sentry
Copy link

sentry bot commented Dec 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.81%. Comparing base (ebd3b66) to head (0e10953).

Additional details and impacted files
@@                                   Coverage Diff                                    @@
##           dependabot/npm_and_yarn/eslint-plugin-react-hooks-7.0.1    #2517   +/-   ##
========================================================================================
  Coverage                                                    77.81%   77.81%           
========================================================================================
  Files                                                          279      279           
  Lines                                                        19700    19700           
  Branches                                                      1977     1977           
========================================================================================
  Hits                                                         15329    15329           
  Misses                                                        4325     4325           
  Partials                                                        46       46           
Flag Coverage Δ
backend 99.55% <ø> (ø)
frontend 69.95% <ø> (ø)
sharedComponents 61.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pylipp pylipp marked this pull request as ready for review December 24, 2025 12:24
@pylipp pylipp merged commit 1701c83 into dependabot/npm_and_yarn/eslint-plugin-react-hooks-7.0.1 Dec 24, 2025
10 checks passed
@pylipp pylipp deleted the copilot/sub-pr-2436 branch December 24, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants