[Bug]: Autofix removes generic type parameter from components when using react/jsx-first-prop-new-line
#3546
Closed
2 tasks done
Labels
Is there an existing issue for this?
Description Overview
Generic components have their generic parameter removed when auto fixing.
Screen.Recording.2023-03-07.at.14.36.22.mov
It should not remove the generic argument.
I setup vscode to format on save. Alternatively
eslint . --ext .tsx,.ts
produces the same result.My eslint config.
Expected Behavior
It should keep the generic argument. E.g.
Should become
eslint-plugin-react version
v7.32.2
eslint version
v8.35.0
node version
v16.15.1
The text was updated successfully, but these errors were encountered: