Relative Content

Tag Archive for angulareslint

Trying to invoke @angular-eslint/template/prefer-self-closing-tags for inline templates

I’ve got an .eslintrc.json file that enforces Angular template files (*.html) to use self-closing tags (Angular 18.1 project). But for the life of me, I cannot figure out how to get that same rule to apply to inline templates. I’ve included the full file below (it’s pretty verbose). But I figured what I would just need to do is add this: