What's Changed
🐞 Fixes
react-dom/no-flush-sync:flushSynccalls are now detected by trackingreact-domimports directly instead of matching by name, so aliased named imports (e.g.import { flushSync as fs } from "react-dom") and default/namespace member calls (e.g.ReactDOM.flushSync()) are reported, while local functions, object methods, and same-named APIs from other packages (e.g. pino'sdestination().flushSync()) are no longer misreported. (#1954, closes #1943)
🏗️ Internal
react-dom/no-flush-syncandreact-dom/no-find-dom-node: API call checks now usecore.isAPICall;core.isJsxLikenow usesisCreateElementCall.- Added Node types reference to all package tsl/tsdown configs.
- Bumped
eslintto10.11.0,eslint-plugin-jsdocto64.5.4,eslint-plugin-package-jsonto1.9.0,typedoc-plugin-markdownto4.13.1,@types/nodeto26.6.2,pnpmto12.5.1, and the dprint JSON plugin to0.24.0.
New Contributors
- changbaebang (@changbaebang) made their first contribution in #1954.
Full Changelog: v5.20.0...v5.20.1
Attestation
https://github.com/Rel1cx/eslint-react/attestations/48726677