npm @eslint-react/eslint-plugin 5.22.1
v5.22.1 (2026-09-29)

4 hours ago

What's Changed

🐞 Fixes

  • react-x/use-state: directly returning the useState result (ex: return React.useState()) is now allowed regardless of the rule's options, matching the exemption in the original react/hook-use-state rule. Covers explicit, implicit (arrow function), and type-asserted returns; lazy initialization checks still apply. (#1974, closes #1963)

📝 Documentation

  • Added a note about eslint being an optional peer dependency to the READMEs and the website's getting-started guides.
  • Simplified the @eslint-react/kit README to point to the full documentation.

Full Changelog: v5.22.0...v5.22.1

Attestation

https://github.com/Rel1cx/eslint-react/attestations/50989125

Don't miss a new eslint-plugin release

NewReleases is sending notifications on new releases.