What's Changed
🐞 Fixes
react-x/use-state: directly returning theuseStateresult (ex:return React.useState()) is now allowed regardless of the rule's options, matching the exemption in the originalreact/hook-use-staterule. Covers explicit, implicit (arrow function), and type-asserted returns; lazy initialization checks still apply. (#1974, closes #1963)
📝 Documentation
- Added a note about
eslintbeing an optional peer dependency to the READMEs and the website's getting-started guides. - Simplified the
@eslint-react/kitREADME to point to the full documentation.
Full Changelog: v5.22.0...v5.22.1
Attestation
https://github.com/Rel1cx/eslint-react/attestations/50989125