summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/vue/default.json12
2 files changed, 13 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 9e60f6a..5e14e19 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -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"
diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json
index 07aaf6a..e2e92ef 100644
--- a/src/rules/vue/default.json
+++ b/src/rules/vue/default.json
@@ -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",