-
Notifications
You must be signed in to change notification settings - Fork 32
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
Prettier adds unwanted line breaks inserted between TextNodes and MustacheStatements #54
Comments
I agree with your expected output. This issue is for tracking the prettier fix, right? |
Yes, I'm working on a fix there. I opened an issue here mostly for discoverability |
In a similar vein, prettier also does some breaking things to nested if/else scenarios. prettier/prettier#5340 (comment) Would be nice to be able to skip prettier in the codemod and leave to the user to reformat as necessary / desired |
For speed and so that I can experiment easily, I'm working on a fork of prettier here which I'm running in conjunction with this codemod over Intercom's codebase: I'm hoping that this will enable me to:
|
More cases of this bug are described in #95 (duplicate of subj). |
resolved by #97 |
see prettier/prettier#6184
Input:
Output:
Expected behavior:
I think this is the desired output:
The text was updated successfully, but these errors were encountered: