When you use all in a <%# herb:disable ... %> comment, it disables every linter rule for that line. Adding specific rule names alongside all is redundant because all already covers them.
This rule helps maintain clean, concise disable comments by ensuring you either use herb:disable all by itself to disable all rules or lists only the specific rules you want to disable.
Linter Rule: Disallow redundant use of
allinherb:disablecomments Rule:
herb-disable-comment-no-redundant-allDescription
Prevents using
alltogether with specific rule names in<%# herb:disable ... %>comments, as this is redundant.Rationale
When you use
allin a<%# herb:disable ... %>comment, it disables every linter rule for that line. Adding specific rule names alongsideallis redundant becauseallalready covers them.This rule helps maintain clean, concise disable comments by ensuring you either use
herb:disable allby itself to disable all rules or lists only the specific rules you want to disable.Examples
✅ Good
🚫 Bad
Fix
Remove either the
allkeyword or the specific rule names:Option 1: Keep only
allOption 2: Keep only specific rules
References
-