Skip to content

Conversation

@marcoroth
Copy link
Owner

@marcoroth marcoroth commented Oct 14, 2025

This pull request updates the isERBOutputNode helper in @herb-tools/core in order to detect a <%= yield %> node as an ERBOutputNode.

This change fixes the erb-right-trim rule to not report the following snippet as an offense:

<%= yield -%>

Resolves #643

@marcoroth marcoroth added bug Something isn't working linter linter-rule labels Oct 14, 2025
@marcoroth marcoroth merged commit 58cf5d2 into main Oct 14, 2025
7 checks passed
@marcoroth marcoroth deleted the erb-right-trim-with-yield branch October 14, 2025 22:14
asilano pushed a commit to fac/herb that referenced this pull request Oct 21, 2025
…arcoroth#644)

This pull request updates the `isERBOutputNode` helper in
`@herb-tools/core` in order to detect a `<%= yield %>` node as an
`ERBOutputNode`.

This change fixes the `erb-right-trim` rule to not report the following
snippet as an offense:

```erb
<%= yield -%>
```

Resolves marcoroth#643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working linter linter-rule

2 participants