Closed
Description
Is there an existing issue for this?
- I have searched the existing issues and my issue is unique
- My issue appears in the command-line and not only in the text editor
Description Overview
The types as exported in #3797 and #3836 are broken and throw TS errors while used. The package only exports named namespace of configs
, which means you can't do any of the following:
import react from 'eslint-plugin-react';
import { config } from 'typescript-eslint';
export default config({
plugin: { react },
rules: {
...react.configs.recommended.rules,
...someMoreRules
}
});
Expected Behavior
No TS error.
eslint-plugin-react version
v7.37.1
eslint version
v8.57.0
node version
v20.9.0
typescript version
All, tested on v5.5.2, v.5.6.2