diff --git a/javascript/packages/linter/docs/rules/erb-right-trim.md b/javascript/packages/linter/docs/rules/erb-right-trim.md index 54dd37c42..0754a246c 100644 --- a/javascript/packages/linter/docs/rules/erb-right-trim.md +++ b/javascript/packages/linter/docs/rules/erb-right-trim.md @@ -6,6 +6,8 @@ This rule enforces the use of `-%>` for right-trimming ERB output tags (like `<%= %>`) instead of `=%>`. +Additionally, this rule enforces the use of `%>` instead of `-%>` or `=%>` when right-trimming has no effect. + ## Rationale While `=%>` can be used for right-trimming whitespace in some ERB engines (like Erubi), it is an obscure and not well-defined syntax that lacks consistent support across most ERB implementations. @@ -26,6 +28,8 @@ The `-%>` syntax is the standard, well-documented approach for right-trimming th <% items.each do |item| %>