Skip to content

Commit 98f299a

Browse files
committed
feat(html): Enforce a space before self-closing
1 parent 8c7ca16 commit 98f299a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configurations/html/rules/style.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ module.exports = {
22
rules: {
33
// Disallow extra spaces around attributes (autofixable)
44
// https://yeonjuan.github.io/html-eslint/docs/rules/no-extra-spacing-attrs
5-
'+@html-eslint/no-extra-spacing-attrs': 'warn',
5+
'+@html-eslint/no-extra-spacing-attrs': ['warn', {
6+
enforceBeforeSelfClose: true,
7+
}],
68

79
// Require newline between elements (autofixable)
810
// https://yeonjuan.github.io/html-eslint/docs/rules/element-newline

0 commit comments

Comments
 (0)