You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
render() {
return html`<div><h1>Hello</h1><p>I love coding.</p></div>`
}
Prettier correctly formats it to this:
render() {
return html`<div>
<h1>Hello</h1>
<p>I love coding.</p>
</div>`;
}
Now let's say I have this:
render() {
return /*html*/`<div><h1>Hello</h1><p>I love coding.</p></div>`
}
Prettier does not format it whatsoever. Notice how instead of html I am using /*html*/ because I am not using lit-html, but I still want to have syntax highlighting and formatting for html string literals.
How can I get prettier to format it correctly?
The text was updated successfully, but these errors were encountered:
I am using https://github.com/prettier/prettier with the default settings
For example, let's say I have this:
Prettier correctly formats it to this:
Now let's say I have this:
Prettier does not format it whatsoever. Notice how instead of
html
I am using/*html*/
because I am not usinglit-html
, but I still want to have syntax highlighting and formatting for html string literals.How can I get prettier to format it correctly?
The text was updated successfully, but these errors were encountered: