Skip to content
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: A semicolon is inserted before the interpolation, starting with the template literal #85

Closed
yuheiy opened this issue May 26, 2020 · 3 comments · Fixed by #87
Closed
Assignees
Labels
type: bug Functionality that does not work as intended/expected

Comments

@yuheiy
Copy link
Contributor

yuheiy commented May 26, 2020

Info

Tool Version
Plugin v1.3.0
Prettier v2.0.5
Node v12.16.3
OS mac

Input

= ``

Output or Error

= ;``

Expected Output

= ``

Additional Context

A semicolon will not be inserted if there is a string or something before the template literal.

= value + ``
= '' + ``
@Shinigami92 Shinigami92 self-assigned this May 26, 2020
@Shinigami92 Shinigami92 added needs clarification The issue is missing information type: bug Functionality that does not work as intended/expected labels May 26, 2020
@Shinigami92
Copy link
Member

Can you also give me your .prettierrc.json configuration?

@yuheiy
Copy link
Contributor Author

yuheiy commented May 26, 2020

I'm using the default configuration.

@Shinigami92 Shinigami92 removed the needs clarification The issue is missing information label May 26, 2020
@Shinigami92
Copy link
Member

Ok, please be patient with me
I have to start regular work and hopefully I can fix this in the evening (~ 8-9h).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants