Skip to content

Commit 332b6c2

Browse files
authored
refactor: always expect self closing tags for void elements in ERB (#510)
This aligns with what Prettier enforces for normal HTML files and what JSX requires; while there is a very small cost in bytes it doesn't outweigh the benefit in being consistent across our stacks and code. Resolves #509
1 parent 1fb9931 commit 332b6c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

variants/backend-base/.erb-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ linters:
1616
enabled: false
1717
NoJavascriptTagHelper:
1818
enabled: false
19+
SelfClosingTag:
20+
enabled: true
21+
enforced_style: 'always'
1922
Rubocop:
2023
enabled: true
2124
rubocop_config:

0 commit comments

Comments
 (0)