What's Changed
✨ New
react-x/unstable-exhaustive-deps: new experimental rule forked fromexhaustive-deps; itshooksoption (modeled on Biome'suseExhaustiveDependencies) checks custom Hooks with the callback/deps array at any position viaclosureIndex/dependenciesIndex, and marks a Hook's result (true) or returned-array positions as stable viastableResult(boolean | number | number[]only; Biome'sstring[]form unsupported yet). Withouthooksit reports the same problems asexhaustive-deps, so enable only one; it is disabled indisable-experimental. (#1698, #2078) Thanks to @dgesteves!
📝 Documentation
- Added documentation and a README for
react-x/unstable-exhaustive-deps, covering thehooksoption, examples, and the fork's local adaptations. (#2078, #2081)
🏗️ Internal
@local/testkit: added averifyAndFixhelper for testing rules with autofixes. (#2078)
New Contributors
- Diogo Esteves (@dgesteves) made their first contribution in #2078.
Full Changelog: v5.30.0-beta.2...v5.30.0-beta.3
Attestation
https://github.com/Rel1cx/eslint-react/attestations/59653158