Skip to content

Commit 8c7ca16

Browse files
committed
feat(html): Add @html-eslint/no-trailing-spaces rule
Non-breaking because of base `no-trailing-spaces` rule + editorconfig
1 parent dcf5bd3 commit 8c7ca16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configurations/html/rules/style.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ module.exports = {
2525
// Disallows the use of multiple empty lines (autofixable)
2626
// https://yeonjuan.github.io/html-eslint/docs/rules/no-multiple-empty-lines
2727
'+@html-eslint/no-multiple-empty-lines': ['warn', { max: 2 }],
28+
29+
// Disallow trailing whitespaces at the end of lines (autofixable)
30+
// https://yeonjuan.github.io/html-eslint/docs/rules/no-trailing-spaces
31+
'+@html-eslint/no-trailing-spaces': ['error'],
2832
},
2933
};

0 commit comments

Comments
 (0)