Template literal with curly brace and newline triggers a 'semi-colon expected' error
See original GitHub issueVerified that code compiles and renders in the browser with no issues.
I’m using multiple embedded strings in a template literal for the transition
property, and the plugin has no problem when everything is on the same line:
My code formatter automatically transforms the string to take up two lines, and that’s when I get errors (on lines 91 and 93):

Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Expecting newline or semicolon error on WebStorm
After having done a bad manipulation on WebStorm, I now have errors such as expecting newline or semicolon". For ...
Read more >template-curly-spacing - ESLint - Pluggable JavaScript Linter
This rule has one option which has either "never" or "always" as value. "never" (by default) - Disallows spaces inside of the curly...
Read more >Google C++ Style Guide
The compiler deduces the type from the variable's initializer, following the same rules as function template argument deduction with the same initializer (so ......
Read more >Ruby Style Guide
Should I Terminate Expressions with ; ? One Expression Per Line; Operator Method Call; Spaces and Operators; Safe navigation; Spaces and Braces; No...
Read more >Java Basics - Java Programming Tutorial
You can use the following template to write your Java programs. ... There is no need to put a semi-colon after the closing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mjbvz If you can point me to where the fix needs to be done I can make a PR.
I’m getting the same issue now. Is that related?
When I remove the newline everything starts working:
Is there any way to fix it (after 2 years since last comment on this issue)?