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:
How to allow and/or configure rules for self-closing tags?
I am using ESLint in my Angular application. When I run ng lint
which is running the following script:
esLint – How to allow and/or configure rules for self-closing-tags?
I am suing eslint in my Angular application. When I run ng lint
which is running the following script: "lint": "eslint --color --fix --ext .ts ./src/app",
, it fails with error: