Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 784 Bytes

no-html-comments.md

File metadata and controls

24 lines (15 loc) · 784 Bytes

no-html-comments

✅ The extends: 'recommended' property in a configuration file enables this rule.

HTML comments in your templates will get compiled and rendered into the DOM at runtime. This is undesirable in a production environment. Instead, you can annotate your templates using Handlebars comments, which will be stripped out when the template is compiled and have no effect at runtime.

Examples

This rule forbids the following:

<!-- comment goes here -->

This rule allows the following:

{{!-- comment goes here --}}

References