Skip to content

eslint-plugin-react-hooks@5.0.0 (Oct 11, 2024)

Compare
Choose a tag to compare
@eps1lon eps1lon released this 11 Oct 13:32
· 175 commits to main since this release
0911120

This release only contains eslint-plugin-react-hooks. Notably, new violations and support for ESLint v9 were added.

eslint-plugin-react-hooks

  • New Violations: Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means _Button or _component are no longer valid. (@kassens) in #25162
    For example, in
    function _Component() {
      useState()
      ^^^^^^^^ A React Hook "useState" is called in function "_Component" which is neither a Component nor a custom React Hook function.
    }
    _Component should be renamed to Component.