Skip to content

Bug: eslint-plugin-react-hooks@6.1.0 does not export config types #34705

@eai04191

Description

@eai04191

React version: 19.2.0

Steps To Reproduce

  1. Install eslint-plugin-react-hooks@6.1.0
  2. Import reactHooks.configs['recommended-latest'] in eslint.config.js with ts-check enabled
  3. TypeScript outputs an error stating that there is no type named config in reactHooks.

Link to code example:

https://github.com/eai04191/eslint-plugin-react-hooks-config-exports-repro

Image

In 5.2.0 the config type is correctly defined (ecaad30)

Image

In 6.1.0 the type of config is defined as {} (91b8f13)

Image

So I get the error in eslint.config.js

The current behavior

the type of config is defined as {}

The expected behavior

the config type is correctly defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions