Skip to content

Commit dcf5bd3

Browse files
committed
feat(html): Enforce self-closing tag on custom elements
1 parent 1f66999 commit dcf5bd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configurations/html/rules/best-practice.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ module.exports = {
2222

2323
// Require use of closing tag (autofixable for `void` elements)
2424
// https://yeonjuan.github.io/html-eslint/docs/rules/require-closing-tags
25-
'+@html-eslint/require-closing-tags': ['error', {
25+
'+@html-eslint/require-closing-tags': ['warn', {
2626
selfClosing: 'always',
27+
allowSelfClosingCustom: true,
2728
}],
2829

2930
// Enforce to use `<meta charset="...">` in the `<head></head>`

0 commit comments

Comments
 (0)