Skip to content

Bug: eslint-plugin-react-hooks@6.1.1 does not export config types correctly #34745

@eai04191

Description

@eai04191

React version: 19.2.0

Steps To Reproduce

  1. Install eslint-plugin-react-hooks@6.1.1
  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:

Image

In 6.1.1, the plugin object with meta, rules, and configs is exported as the default, but TypeScript does not seem to recognize this.

The current behavior

the type of config is defined as any

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