chore(deps-dev): bump eslint-plugin-react-hooks from 4.6.2 to 5.2.0
Open
Number: #9
Type: Pull Request
State: Open
Type: Pull Request
State: Open
Author:
dependabot[bot]
Association: None
Comments: 1
Association: None
Comments: 1
Created:
September 08, 2025 at 10:09 AM UTC
(about 2 months ago)
(about 2 months ago)
Updated:
September 08, 2025 at 10:10 AM UTC
(about 2 months ago)
(about 2 months ago)
Assignees:
fosscode
fosscode
Description:
Bumps eslint-plugin-react-hooks from 4.6.2 to 5.2.0.
Release notes
Sourced from eslint-plugin-react-hooks's releases.
eslint-plugin-react-hooks@5.0.0 (Oct 11, 2024)
This release only contains
eslint-plugin-react-hooks. Notably, new violations and support for ESLint v9 were added.
eslint-plugin-react-hooks
- New Violations: Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means
_Buttonor_componentare no longer valid. (@kassens) in #25162 For example, infunction _Component() { useState() ^^^^^^^^ A React Hook "useState" is called in function "_Component" which is neither a Component nor a custom React Hook function. }_Componentshould be renamed toComponent.
- Add support for ESLint v9. (
@eps1lonin #28773)- Consider dispatch from
useActionStatestable. (@eps1lonin #29665)- Accept
asexpression in callback. (@StyleShitin #28202)- Accept
asexpressions in deps array. (@StyleShitin #28189)- Treat
React.use()the same asuse(). (@kassensin #27769)- Move
use()lint to non-experimental. (@kassensin #27768)- Support Flow
asexpressions. (@cpojerin #27590)- Allow
useEffect(fn, undefined). (@kassensin #27525)- Disallow hooks in async functions. (
@acdlitein #27045)- Rename experimental
useEventtouseEffectEvent. (@sebmarkbagein #25881)- Lint for presence of
useEventfunctions in dependency lists. (@potetoin #25512)- Check
useEventreferences instead. (@potetoin #25319)- Update
RulesOfHookswithuseEventrules. (@potetoin #25285)
Changelog
Sourced from eslint-plugin-react-hooks's changelog.
5.2.0
- Support flat config (
@michaelfaithin #30774)- Convert the plugin to TypeScript and provide package type declarations (
@michaelfaithin #32279, #32283, #32240, #32400 and@potetoin #32420)- Fix false positive error in components with
do/whileloops (@tyxlain #31720)- Detect issues in class properties (
@mjesun&@ecraig12345in #31823)5.1.0
- Add support for
do/whileloops (@tyxlain #28714)- Fix error when callback argument is an identifier with an
asexpression (@mskeltonin #31119)5.0.0
- New Violations: Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means
_Buttonor_componentare no longer valid. (@kassens) in #25162
- Consider dispatch from
useActionStatestable. (@eps1lonin #29665)- Add support for ESLint v9. (
@eps1lonin #28773)- Accept
asexpression in callback. (@StyleShitin #28202)- Accept
asexpressions in deps array. (@StyleShitin #28189)- Treat
React.use()the same asuse(). (@kassensin #27769)- Move
use()lint to non-experimental. (@kassensin #27768)- Support Flow
asexpressions. (@cpojerin #27590)- Allow
useEffect(fn, undefined). (@kassensin #27525)- Disallow hooks in async functions. (
@acdlitein #27045)- Rename experimental
useEventtouseEffectEvent. (@sebmarkbagein #25881)- Lint for presence of
useEventfunctions in dependency lists. (@potetoin #25512)- Check
useEventreferences instead. (@potetoin #25319)- Update
RulesOfHookswithuseEventrules. (@potetoin #25285)4.6.0
4.5.0
4.4.0
- No changes, this was an automated release together with React 18.
4.3.0
- Support ESLint 8. (
@MichaelDeBoeyin #22248)- Fix a crash with an empty effect. (
@ChrisRuin #20385)- Improve the error message. (
@callmetwanin #20692)- Handle optional chained methods as dependency. (
@AriPerkkioin #20247)- Assume the new
useTransitionsignature in the rule. (@rickhanloniiin #20976)4.2.0
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
Commits:
1
1
Files Changed:
2
2
Additions:
+145
+145
Deletions:
-6
-6
Package Dependencies
Technical Details
| ID: | 7216938 |
| UUID: | 2807654571 |
| Node ID: | PR_kwDOPldyJ86nWWir |
| Host: | GitHub |
| Repository: | fosscode/fosscode |
| Merge State: | Unknown |