Files
test-repo/changelog_unreleased/javascript/pr-9278.md
T
2020-10-05 05:49:52 +08:00

62 lines
567 B
Markdown

#### Fix comments inside template (#9278 by @fisker)
<!-- prettier-ignore -->
```js
// Input
html`${
foo
/* comment */
}`;
html`
${
foo
/* comment */
}
`;
graphql`${
foo
/* comment */
}`;
css`${
foo
/* comment */
}`;
// Prettier stable
html`${foo}`;
/* comment */
html`
${foo}
/* comment */
`;
graphql`
${foo}
/* comment */
`;
css`
${foo}
/* comment */
`;
// Prettier master
html`${
foo
/* comment */
}`;
html`
${
foo
/* comment */
}
`;
graphql`${
foo
/* comment */
}`;
css`${
foo
/* comment */
}`;
```