feat(vue): Rule "html-self-closing"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 13:36:04 +04:00
parent 1776bfbec4
commit 9527acd2af
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 13 additions and 1 deletions

View File

@ -541,7 +541,7 @@
- [ ] "html-end-tags"
- [X] "html-indent"
- [X] "html-quotes"
- [ ] "html-self-closing"
- [X] "html-self-closing"
- [ ] "jsx-uses-vars"
- [ ] "key-spacing"
- [ ] "keyword-spacing"

View File

@ -46,6 +46,18 @@
"error",
"double"
],
"vue/html-self-closing": [
"error",
{
"html": {
"component": "always",
"normal": "always",
"void": "always"
},
"math": "always",
"svg": "always"
}
],
"vue/script-indent": [
"error",
"tab",