What's Changed
✨ New
react-x/immutability: mutations onfor...ofiterator variables (e.g.for (const item of items) { item.done = true; }), including destructured iterator bindings, are now reported when the iterated collection resolves through its root identifier to a component's props, a state value, or a shallow copy of either, since the iterator variable is bound to each shared element of the original collection. Member-expression collections (for (const item of props.items)) are traced to their root;for...inloops and right sides without a root identifier are not traced. (#1953, closes #1764)
🏗️ Internal
- Bumped
@types/nodeto26.6.1,tsl-dxto0.13.5,eslint-plugin-jsdocto64.5.2,lucide-reactto1.47.0, andpnpmto12.4.2.
New Contributors
- Michael@WCD (@Michael-WhiteCapData) made their first contribution in #1953.
Full Changelog: v5.19.1...v5.20.0
Attestation
https://github.com/Rel1cx/eslint-react/attestations/48608770