React: [email protected] Release

Release date:
October 11, 2024
Previous version:
Could not determine previous release version
Magnitude:
0 Diff Delta
Contributors:
0 total committers
Data confidence:
Commits:

Top Contributors in [email protected]

Could not determine top contributors for this release.

Directory Browser for [email protected]

We couldn't find a release before this one

Release Notes Published

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, in tsx function _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 to Component.

  • 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 as use(). (@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 to useEffectEvent. (@sebmarkbage in #25881)

  • Lint for presence of useEvent functions in dependency lists. (@poteto in #25512)

  • Check useEvent references instead. (@poteto in #25319)

  • Update RulesOfHooks with useEvent rules. (@poteto in #25285)