-
Notifications
You must be signed in to change notification settings - Fork 49.6k
Closed
Closed
Copy link
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: 19.2.0
Steps To Reproduce
- Install eslint-plugin-react-hooks@6.1.1
- Import
reactHooks.configs['recommended-latest']in eslint.config.js with ts-check enabled - 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
- https://github.com/eai04191/eslint-plugin-react-hooks-config-exports-repro/actions/runs/18266988284/job/52002848851
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
mkosir, NikolayFrantsev, JstnMcBrd, ulrichstark and achou11mkosir
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug