Starting with Angular 20, the updated style guide removed the requirement/recommendation for suffixes like .component, .service, .directive, etc.
However, markup_fmt relies on .component suffix to recognize .html file as Angular template, what can lead to invalid formatting/
Angular template files detection should be improved to handle cases when it does not include .component suffix.
Possible solutions:
- add option to handle all
.html files in project as Angular Templates
- add option with regex that can be set by default to
*.component.html but can be changed to *.html
- verify if there is a corresponding
*.ts file with the same name
- ???
RFC about style guide update:
angular/angular#58412
Angular's v20 announcement blog post:
https://blog.angular.dev/announcing-angular-v20-b5c9c06cf301