Skip to content

v5.26.4 (2026-10-13)

Choose a tag to compare

@github-actions github-actions released this 13 Oct 02:16
· 35 commits to main since this release
Immutable release. Only release title and notes can be modified.
b17678d

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-name
    • react-naming-convention/id-name
    • react-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-name
    • react-naming-convention/id-name
    • react-naming-convention/ref-name

Full Changelog: v5.26.3...v5.26.4

Attestation

https://github.com/Rel1cx/eslint-react/attestations/55254451