Update dependency eslint-plugin-react-hooks to v7 #39

Open
renovate-bot wants to merge 1 commit from renovate/eslint-plugin-react-hooks-7.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
eslint-plugin-react-hooks (source) devDependencies major ^5.2.0^7.0.0

Release Notes

facebook/react (eslint-plugin-react-hooks)

v7.1.1

Compare Source

Note: 7.1.0 accidentally removed the component-hook-factories rule, causing errors for users who referenced it in their ESLint config. This is now fixed.

  • Add deprecated no-op component-hook-factories rule for backwards compatibility. (@​mofeiZ in #​36307)

v7.1.0

Compare Source

This release adds ESLint v10 support, improves performance by skipping compilation for non-React files, and includes compiler lint improvements including better set-state-in-effect detection, improved ref validation, and more helpful error reporting.

v7.0.1

Compare Source

v7.0.0

Compare Source

This release slims down presets to just 2 configurations (recommended and recommended-latest), and all compiler rules are enabled by default.

  • Breaking: Removed recommended-latest-legacy and flat/recommended configs. The plugin now provides recommended (legacy and flat configs with all recommended rules), and recommended-latest (legacy and flat configs with all recommended rules plus new bleeding edge experimental compiler rules). (@​poteto in #​34757)

v6.1.1

Compare Source

Note: 6.1.0 accidentally allowed use of recommended without flat config, causing errors when used with ESLint v9's defineConfig() helper. This has been fixed in 6.1.1.

v6.1.0

Compare Source

Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.

  • Breaking: Require Node.js 18 or newer. (@​michaelfaith in #​32458)
  • Breaking: Flat config is now the default recommended preset. Legacy config moved to recommended-legacy. (@​michaelfaith in #​32457)
  • New Violations: Disallow calling use within try/catch blocks. (@​poteto in #​34040)
  • New Violations: Disallow calling useEffectEvent functions in arbitrary closures. (@​jbrown215 in #​33544)
  • Handle React.useEffect in addition to useEffect in rules-of-hooks. (@​Ayc0 in #​34076)
  • Added react-hooks settings config option that to accept additionalEffectHooks that are used across exhaustive-deps and rules-of-hooks rules. (@​jbrown215) in #​34497

v6.0.0

Compare Source

Accidentally released. See 6.1.0 for the actual changes.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint-plugin-react-hooks](https://react.dev/) ([source](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks)) | devDependencies | major | [`^5.2.0` → `^7.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/5.2.0/7.1.1) | --- ### Release Notes <details> <summary>facebook/react (eslint-plugin-react-hooks)</summary> ### [`v7.1.1`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#711) [Compare Source](https://github.com/facebook/react/compare/eslint-plugin-react-hooks@7.1.0...eslint-plugin-react-hooks@7.1.1) **Note:** 7.1.0 accidentally removed the `component-hook-factories` rule, causing errors for users who referenced it in their ESLint config. This is now fixed. - Add deprecated no-op `component-hook-factories` rule for backwards compatibility. ([@&#8203;mofeiZ](https://github.com/mofeiZ) in [#&#8203;36307](https://github.com/facebook/react/pull/36307)) ### [`v7.1.0`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#710) [Compare Source](https://github.com/facebook/react/compare/408b38ef7304faf022d2a37110c57efce12c6bad...eslint-plugin-react-hooks@7.1.0) This release adds ESLint v10 support, improves performance by skipping compilation for non-React files, and includes compiler lint improvements including better `set-state-in-effect` detection, improved ref validation, and more helpful error reporting. - Add ESLint v10 support. ([@&#8203;azat-io](https://github.com/azat-io) in [#&#8203;35720](https://github.com/facebook/react/pull/35720)) - Skip compilation for non-React files to improve performance. ([@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;35589](https://github.com/facebook/react/pull/35589)) - Fix exhaustive deps bug with Flow type casting. ([@&#8203;jorge-cab](https://github.com/jorge-cab) in [#&#8203;35691](https://github.com/facebook/react/pull/35691)) - Fix `useEffectEvent` checks in component syntax. ([@&#8203;jbrown215](https://github.com/jbrown215) in [#&#8203;35041](https://github.com/facebook/react/pull/35041)) - Improved `set-state-in-effect` validation with fewer false negatives. ([@&#8203;jorge-cab](https://github.com/jorge-cab) in [#&#8203;35134](https://github.com/facebook/react/pull/35134), [@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;35147](https://github.com/facebook/react/pull/35147), [@&#8203;jackpope](https://github.com/jackpope) in [#&#8203;35214](https://github.com/facebook/react/pull/35214), [@&#8203;chesnokov-tony](https://github.com/chesnokov-tony) in [#&#8203;35419](https://github.com/facebook/react/pull/35419), [@&#8203;jsleitor](https://github.com/jsleitor) in [#&#8203;36107](https://github.com/facebook/react/pull/36107)) - Improved ref validation for non-mutating functions and event handler props. ([@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;35893](https://github.com/facebook/react/pull/35893), [@&#8203;kolvian](https://github.com/kolvian) in [#&#8203;35062](https://github.com/facebook/react/pull/35062)) - Compiler now reports all errors instead of stopping at the first. ([@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;35873](https://github.com/facebook/react/pull/35873)–[#&#8203;35884](https://github.com/facebook/react/pull/35884)) - Improved source locations and error display in compiler diagnostics. ([@&#8203;nathanmarks](https://github.com/nathanmarks) in [#&#8203;35348](https://github.com/facebook/react/pull/35348), [@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;34963](https://github.com/facebook/react/pull/34963)) ### [`v7.0.1`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#701) [Compare Source](https://github.com/facebook/react/compare/4b3e662e4ce54eb54a8701c48a967cc84a389501...408b38ef7304faf022d2a37110c57efce12c6bad) - Disallowed passing inline `useEffectEvent` values as JSX props to guard against accidental propagation. ([#&#8203;34820](https://github.com/facebook/react/pull/34820) by [@&#8203;jf-eirinha](https://github.com/jf-eirinha)) - Switch to `export =` so eslint-plugin-react-hooks emits correct types for consumers in Node16 ESM projects. ([#&#8203;34949](https://github.com/facebook/react/pull/34949) by [@&#8203;karlhorky](https://github.com/karlhorky)) - Tightened the typing of `configs.flat` so the `configs` export is always defined. ([#&#8203;34950](https://github.com/facebook/react/pull/34950) by [@&#8203;poteto](https://github.com/poteto)) - Fix named import runtime errors. ([#&#8203;34951](https://github.com/facebook/react/pull/34951), [#&#8203;34953](https://github.com/facebook/react/pull/34953) by [@&#8203;karlhorky](https://github.com/karlhorky)) ### [`v7.0.0`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#700) [Compare Source](https://github.com/facebook/react/compare/a2329c10ffc153303ad5a65b99d91d8500ceabdd...4b3e662e4ce54eb54a8701c48a967cc84a389501) This release slims down presets to just 2 configurations (`recommended` and `recommended-latest`), and all compiler rules are enabled by default. - **Breaking:** Removed `recommended-latest-legacy` and `flat/recommended` configs. The plugin now provides `recommended` (legacy and flat configs with all recommended rules), and `recommended-latest` (legacy and flat configs with all recommended rules plus new bleeding edge experimental compiler rules). ([@&#8203;poteto](https://github.com/poteto) in [#&#8203;34757](https://github.com/facebook/react/pull/34757)) ### [`v6.1.1`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#611) [Compare Source](https://github.com/facebook/react/compare/861811347b8fa936b4a114fc022db9b8253b3d86...a2329c10ffc153303ad5a65b99d91d8500ceabdd) **Note:** 6.1.0 accidentally allowed use of `recommended` without flat config, causing errors when used with ESLint v9's `defineConfig()` helper. This has been fixed in 6.1.1. - Fix `recommended` config for flat config compatibility. The `recommended` config has been converted to flat config format. Non-flat config users should use `recommended-legacy` instead. ([@&#8203;poteto](https://github.com/poteto) in [#&#8203;34700](https://github.com/facebook/react/pull/34700)) - Add `recommended-latest` and `recommended-latest-legacy` configs that include React Compiler rules. ([@&#8203;poteto](https://github.com/poteto) in [#&#8203;34675](https://github.com/facebook/react/pull/34675)) - Remove unused `NoUnusedOptOutDirectives` rule. ([@&#8203;poteto](https://github.com/poteto) in [#&#8203;34703](https://github.com/facebook/react/pull/34703)) - Remove `hermes-parser` and dependency. ([@&#8203;poteto](https://github.com/poteto) in [#&#8203;34719](https://github.com/facebook/react/pull/34719)) - Remove `@babel/plugin-proposal-private-methods` dependency. ([@&#8203;ArnaudBarre](https://github.com/ArnaudBarre) and [@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;34715](https://github.com/facebook/react/pull/34715)) - Update for Zod v3/v4 compatibility. ([@&#8203;kolian](https://github.com/kolvian) and [@&#8203;josephsavona](https://github.com/josephsavona) in [#&#8203;34717](https://github.com/facebook/react/pull/34717)) ### [`v6.1.0`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#610) [Compare Source](https://github.com/facebook/react/compare/fea92d846284bb7f4427ccbe8c16aaf85f0e2943...861811347b8fa936b4a114fc022db9b8253b3d86) **Note:** Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes. - **Breaking:** Require Node.js 18 or newer. ([@&#8203;michaelfaith](https://github.com/michaelfaith) in [#&#8203;32458](https://github.com/facebook/react/pull/32458)) - **Breaking:** Flat config is now the default `recommended` preset. Legacy config moved to `recommended-legacy`. ([@&#8203;michaelfaith](https://github.com/michaelfaith) in [#&#8203;32457](https://github.com/facebook/react/pull/32457)) - **New Violations:** Disallow calling `use` within try/catch blocks. ([@&#8203;poteto](https://github.com/poteto) in [#&#8203;34040](https://github.com/facebook/react/pull/34040)) - **New Violations:** Disallow calling `useEffectEvent` functions in arbitrary closures. ([@&#8203;jbrown215](https://github.com/jbrown215) in [#&#8203;33544](https://github.com/facebook/react/pull/33544)) - Handle `React.useEffect` in addition to `useEffect` in rules-of-hooks. ([@&#8203;Ayc0](https://github.com/Ayc0) in [#&#8203;34076](https://github.com/facebook/react/pull/34076)) - Added `react-hooks` settings config option that to accept `additionalEffectHooks` that are used across exhaustive-deps and rules-of-hooks rules. ([@&#8203;jbrown215](https://github.com/jbrown215)) in [#&#8203;34497](https://github.com/facebook/react/pull/34497) ### [`v6.0.0`](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#600) [Compare Source](https://github.com/facebook/react/compare/3607f4838a8f4a87160da36aa26bb1432d7a5f11...fea92d846284bb7f4427ccbe8c16aaf85f0e2943) Accidentally released. See 6.1.0 for the actual changes. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45MS40IiwidXBkYXRlZEluVmVyIjoiNDMuMTYwLjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Update dependency eslint-plugin-react-hooks to v7
Some checks failed
renovate/artifacts Artifact file update failure
PR Validation / pr-validation (pull_request) Failing after 0s
Web Deployment Container / determine-workflow (pull_request) Has been cancelled
Web Deployment Container / nonprod-deploy (pull_request) Has been cancelled
Web Deployment Container / prod-deploy (pull_request) Has been cancelled
api-deploy-nonprod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
api-deploy-prod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
web-deploy-nonprod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
web-deploy-prod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
0e714e477f
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: web/package-lock.json
undefined
### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: web/package-lock.json ``` undefined ```
Some checks failed
renovate/artifacts Artifact file update failure
PR Validation / pr-validation (pull_request) Failing after 0s
Web Deployment Container / determine-workflow (pull_request) Has been cancelled
Web Deployment Container / nonprod-deploy (pull_request) Has been cancelled
Web Deployment Container / prod-deploy (pull_request) Has been cancelled
api-deploy-nonprod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
api-deploy-prod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
web-deploy-nonprod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
web-deploy-prod.yml / Update dependency eslint-plugin-react-hooks to v7 (pull_request) Failing after 0s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/eslint-plugin-react-hooks-7.x:renovate/eslint-plugin-react-hooks-7.x
git switch renovate/eslint-plugin-react-hooks-7.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/eslint-plugin-react-hooks-7.x
git switch renovate/eslint-plugin-react-hooks-7.x
git rebase main
git switch main
git merge --ff-only renovate/eslint-plugin-react-hooks-7.x
git switch renovate/eslint-plugin-react-hooks-7.x
git rebase main
git switch main
git merge --no-ff renovate/eslint-plugin-react-hooks-7.x
git switch main
git merge --squash renovate/eslint-plugin-react-hooks-7.x
git switch main
git merge --ff-only renovate/eslint-plugin-react-hooks-7.x
git switch main
git merge renovate/eslint-plugin-react-hooks-7.x
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Doble/ShiftSync!39
No description provided.