This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
📎 Formatter should be able to handle Angular @Component decorators #4049
Labels
A-Formatter
Area: formatter
enhancement
New feature request or improvement to existing functionality
S-Planned
Status: planned by the team, but not in the short term
Description
See some example code from one of my Angular components.
Specifically, the
template
andstyles
properties in the @component decorator use HTML and CSS respectively. Rome Formatter should be aware of these specific properties (which are really the only two I know in common usage) and auto-format them accordingly.Also, I noticed that
selector
andtemplate
properties don't get auto-indented. It's like Rome ignores everything in the decorator.Prettier does this, by the way. So using Rome as a formatter will be a major problem for any Angular dev until the above case is handled
The text was updated successfully, but these errors were encountered: