Skip to content

Linter: Fix html-no-empty-attributes with top-level control flow#796

Merged
marcoroth merged 2 commits into
mainfrom
linter-fix-html-no-empty-attribtue
Nov 7, 2025
Merged

Linter: Fix html-no-empty-attributes with top-level control flow#796
marcoroth merged 2 commits into
mainfrom
linter-fix-html-no-empty-attribtue

Conversation

@marcoroth

Copy link
Copy Markdown
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 Linter: Fix html-no-empty-attributes with top-level control flow 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant