Ensures that all rule names specified in <%# herb:disable ... %> comments are valid and exist in the linter. This catches typos, references to non-existent rules and missing comma between rule names.
Using invalid or misspelled rule names in <%# herb:disable ... %> comments can lead to confusion and unexpected behavior. The comment won't disable anything if the rule name doesn't exist, leaving developers wondering why linter warnings persist.
By validating rule names, this rule helps catch typos early, identify removed or renamed rule and provide helpful suggestions for similar rule names using fuzzy matching.
Unknown rule `html-tag-name-lowercase html-attribute-double-quotes`. Did you mean `html-attribute-double-quotes`? (herb-disable-comment-valid-rule-name)
Linter Rule: Validate rule names in
herb:disablecomments Rule:
herb-disable-comment-valid-rule-nameDescription
Ensures that all rule names specified in
<%# herb:disable ... %>comments are valid and exist in the linter. This catches typos, references to non-existent rules and missing comma between rule names.Rationale
Using invalid or misspelled rule names in
<%# herb:disable ... %>comments can lead to confusion and unexpected behavior. The comment won't disable anything if the rule name doesn't exist, leaving developers wondering why linter warnings persist.By validating rule names, this rule helps catch typos early, identify removed or renamed rule and provide helpful suggestions for similar rule names using fuzzy matching.
Examples
✅ Good
🚫 Bad
References
-