Repository navigation
v5.26.4 (2026-10-13)
·
35 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What's Changed
🐞 Fixes
- The name lookup now stops at function boundaries, so expression-bodied factory functions and custom hooks (ex:
export const useAnchor = () => useRef(null)) are no longer misreported; calls inside JSX expressions, computed keys, or class static blocks no longer fall back to the outer variable. (#2029) Closes #2026. Affected rules:react-naming-convention/context-namereact-naming-convention/id-namereact-naming-convention/ref-name
- The name lookup no longer crosses containers or derived values (ex:
const refs = [useRef(null)],const n = useRef(0) + 1), so such calls are no longer reported on the enclosing variable; sequence expressions check only the last value, and unresolvable computed keys (ex:{ [key]: useRef(null) }) no longer fall back to the outer variable. (#2030) Affected rules:react-naming-convention/context-namereact-naming-convention/id-namereact-naming-convention/ref-name
Full Changelog: v5.26.3...v5.26.4
Attestation
https://github.com/Rel1cx/eslint-react/attestations/55254451