Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit a147faf

Browse files
committed
Added the vue/html-self-closing rule to .eslintrc.js
- [eslint\-plugin\-vue/html\-self\-closing\.md at master · vuejs/eslint\-plugin\-vue](https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md)
1 parent 3e30537 commit a147faf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,17 @@ module.exports = {
1919
],
2020
// add your custom rules here
2121
rules: {
22+
'vue/html-self-closing': [
23+
'error',
24+
{
25+
html: {
26+
void: 'always',
27+
normal: 'always',
28+
component: 'always'
29+
},
30+
svg: 'always',
31+
math: 'always'
32+
}
33+
]
2234
}
2335
}

0 commit comments

Comments
 (0)