Skip to content

Conversation

@marcoroth
Copy link
Owner

This pull request updates the html-no-empty-attributes linter rule to not flag an attribute if there is only one control flow element on the top-level.

Previously, this was flagged as an offense:

<h1 class="<% if valid? %> valid <% else %> error <% end %>">
  Content
</h1>
@marcoroth marcoroth changed the title Linter: Fix html-no-empty-attributes when there's only an if Nov 7, 2025
@marcoroth marcoroth merged commit dc40828 into main Nov 7, 2025
12 checks passed
@marcoroth marcoroth deleted the linter-fix-html-no-empty-attribtue branch November 7, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment