You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems to be angry about the whitespace after the inline handlebars in the class attribute (column 142 of that line). I know this isn't the prettiest code, but shouldn't the rule ignore attributes?
The text was updated successfully, but these errors were encountered:
Currently, as the rule doc says, this rule checks any text nodes for excess whitespace, including text inside or outside attributes. But I think it's a fair question to ask if the rule should be checking the values of arbitrary attributes. Arguably, the class attribute could be fair-game for an excess whitespace check, as it's an attribute we know shouldn't have (or at least doesn't need) excess whitespace in it, but attribute values aren't used for the page layout, so checking this may not align with the goal of the rule.
I didn't immediately see a justification for this behavior in the original rule PR #819. Maybe @MelSumner has some context on whether this is intended behavior.
I'm getting a linting error on the following code (running ember-template-lint 5.10.0):
it seems to be angry about the whitespace after the inline handlebars in the class attribute (column 142 of that line). I know this isn't the prettiest code, but shouldn't the rule ignore attributes?
The text was updated successfully, but these errors were encountered: