-
-
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
Further whitespace problems with jsx-curly-brace-presence #2454
Comments
Also #2434 (comment). |
Are there any updates on this? seems to be an issue for some time now already. |
Here's another reproduction:
Gets autofixed to:
which drops the spaces around the ampersand. Also the ampersand ought to be escaped. |
To expand @benjie's comment, if the ampersand remains within braces due to leading/trailing whitespace, then it shouldn't need to be escaped. However, if braces are removed because there is only the ampersand and no whitespace, then the autofix should escape it. |
This should be fixed by #2448. |
From #2427 (comment), #2427 (comment).
The following autofixes are incorrect:
The text was updated successfully, but these errors were encountered: