-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Autofix removes generic type parameter from components when using react/jsx-first-prop-new-line
#3546
Closed
2 tasks done
Labels
Comments
Stekmo
changed the title
[Bug]:
[Bug]: Autofix removes generic type parameter from components when using Mar 8, 2023
react/jsx-first-prop-new-line
I'm not seeing it autofix at all - the code you provided passes. The code in the image is different, though, I'll try that. |
ok yeah thanks, i was able to repro it. |
1 task
This was referenced May 24, 2024
This was referenced Aug 22, 2024
This was referenced Sep 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: