chore(deps-dev): bump eslint-plugin-react-hooks from 4.6.2 to 5.0.0 in /mobile
Bumps eslint-plugin-react-hooks from 4.6.2 to 5.0.0.
Release notes
Sourced from eslint-plugin-react-hooks's releases.
[email protected] (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.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
- No changes, this was an automated release together with React 17.
4.1.2
4.1.1
- Improve support for optional chaining. (
@pfongkyein #19680)- Fix a false positive warning for TypeScript parameters. (
@NeoRaiderin #19751)4.1.0
- New Violations: Warn when dependencies change on every render. (
@captbaritonein #19590)
... (truncated)
Commits
- See full diff in compare view
Maintainer changes
This version was pushed to npm by eps1lon, a new releaser for eslint-plugin-react-hooks since your current version.
You can trigger a rebase of this PR 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)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Requires upgrade of react-native
A newer version of eslint-plugin-react-hooks exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.