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
![dependabot[bot]](https://github.com/dependabot.png)
Association: None
Comments: 1
Created:
September 08, 2025 at 10:09 AM UTC
(1 day ago)
(1 day ago)
Updated:
September 08, 2025 at 10:10 AM UTC
(1 day ago)
(1 day 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
_Button
or_component
are 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. }
_Component
should be renamed toComponent
.
- Add support for ESLint v9. (
@eps1lon
in #28773)- Consider dispatch from
useActionState
stable. (@eps1lon
in #29665)- Accept
as
expression in callback. (@StyleShit
in #28202)- Accept
as
expressions in deps array. (@StyleShit
in #28189)- Treat
React.use()
the same asuse()
. (@kassens
in #27769)- Move
use()
lint to non-experimental. (@kassens
in #27768)- Support Flow
as
expressions. (@cpojer
in #27590)- Allow
useEffect(fn, undefined)
. (@kassens
in #27525)- Disallow hooks in async functions. (
@acdlite
in #27045)- Rename experimental
useEvent
touseEffectEvent
. (@sebmarkbage
in #25881)- Lint for presence of
useEvent
functions in dependency lists. (@poteto
in #25512)- Check
useEvent
references instead. (@poteto
in #25319)- Update
RulesOfHooks
withuseEvent
rules. (@poteto
in #25285)
Changelog
Sourced from eslint-plugin-react-hooks's changelog.
5.2.0
- Support flat config (
@michaelfaith
in #30774)- Convert the plugin to TypeScript and provide package type declarations (
@michaelfaith
in #32279, #32283, #32240, #32400 and@poteto
in #32420)- Fix false positive error in components with
do
/while
loops (@tyxla
in #31720)- Detect issues in class properties (
@mjesun
&@ecraig12345
in #31823)5.1.0
- Add support for
do
/while
loops (@tyxla
in #28714)- Fix error when callback argument is an identifier with an
as
expression (@mskelton
in #31119)5.0.0
- New Violations: Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means
_Button
or_component
are no longer valid. (@kassens
) in #25162
- Consider dispatch from
useActionState
stable. (@eps1lon
in #29665)- Add support for ESLint v9. (
@eps1lon
in #28773)- Accept
as
expression in callback. (@StyleShit
in #28202)- Accept
as
expressions in deps array. (@StyleShit
in #28189)- Treat
React.use()
the same asuse()
. (@kassens
in #27769)- Move
use()
lint to non-experimental. (@kassens
in #27768)- Support Flow
as
expressions. (@cpojer
in #27590)- Allow
useEffect(fn, undefined)
. (@kassens
in #27525)- Disallow hooks in async functions. (
@acdlite
in #27045)- Rename experimental
useEvent
touseEffectEvent
. (@sebmarkbage
in #25881)- Lint for presence of
useEvent
functions in dependency lists. (@poteto
in #25512)- Check
useEvent
references instead. (@poteto
in #25319)- Update
RulesOfHooks
withuseEvent
rules. (@poteto
in #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. (
@MichaelDeBoey
in #22248)- Fix a crash with an empty effect. (
@ChrisRu
in #20385)- Improve the error message. (
@callmetwan
in #20692)- Handle optional chained methods as dependency. (
@AriPerkkio
in #20247)- Assume the new
useTransition
signature in the rule. (@rickhanlonii
in #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 rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will 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 version
will 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 dependency
will 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 |