Unexpected embedded formatting for Angular template #15969
Labels
good first issue
Good fist issue!
lang:angular
Issues affecting Angular template (not general JS/TS issues used for Angular)
lang:typescript
Issues affecting TypeScript-specific constructs (not general JS issues)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 3.2.4
Playground link
Input:
Output:
Expected output:
Why?
Prettier formats the content of the
template
field in Angular's@Component
decorator as HTML. However, it now also formats the content of a different field namedtemplate
as HTML. This isn't expected.I think adding
!node.computed
toprettier/src/language-js/embed/utils.js
Lines 47 to 51 in 4b1965a
The text was updated successfully, but these errors were encountered: