We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is likely related to #53, but occurs regardless if formatJSXExpressions is true or false
formatJSXExpressions
Using esformatter 0.9.3 and esformatter-jsx 5.0.4
.esformatter:
{ "preset": "default", "plugins": [ "esformatter-jsx" ] }
Initial input:
function render(count) { return ( <FormattedMessage id="some.id" defaultMessage={`You have {count, plural, =0 {no Items} one {one Item} other {{count} Items} }`} description="Description goes here" values={{ count }} /> ); }
First output:
function render(count) { return ( <FormattedMessage id="some.id" defaultMessage={ `You have {count, plural, =0 {no Items} one {one Item} other {{count} Items} }` } description="Description goes here" values={ { count } } /> ); }
Second output:
Third output:
Also see #70 for a PR to verify reformatting
The text was updated successfully, but these errors were encountered:
definitively an ugly bug. :(
Will try to take a look at it now
Sorry, something went wrong.
I just published a new version with this fixed. Let me know if there is any instance where it fails...
demo
@royriojas Your demo duplicates the backtick string in the inner backtick string.
Also, the indentation bug is present if you do something akin to
<Comp prop={fn` hello `}/>
@ckknight I have to update the demo to use the latest. That shouldn't be happening with the latest.
For the other one I will investigate. Would you matter to create a new issue for the tags in backtips? please.
No branches or pull requests
This is likely related to #53, but occurs regardless if
formatJSXExpressions
is true or falseUsing esformatter 0.9.3 and esformatter-jsx 5.0.4
.esformatter:
Initial input:
First output:
Second output:
Third output:
Also see #70 for a PR to verify reformatting
The text was updated successfully, but these errors were encountered: