summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 12:28:07 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 12:28:07 +0300
commit7f0f6a0d5c429781ed4d70502cc033bedc33abaa (patch)
treefd0ff29de4c21c2a0f4fdfe20d61f1d6c14e04bc
parent17eb381c5b22c57e5432f5c18c0dad7cf7ea278a (diff)
downloadeslint-config-7f0f6a0d5c429781ed4d70502cc033bedc33abaa.tar.xz
eslint-config-7f0f6a0d5c429781ed4d70502cc033bedc33abaa.zip
feat(vue): Rule "html-closing-bracket-newline"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/vue/default.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index fe630c0..9985299 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -536,7 +536,7 @@
- [ ] "component-tags-order"
- [ ] "dot-location"
- [ ] "eqeqeq"
-- [ ] "html-closing-bracket-newline"
+- [X] "html-closing-bracket-newline"
- [ ] "html-closing-bracket-spacing"
- [ ] "html-end-tags"
- [X] "html-indent"
diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json
index ed9154e..e15ac29 100644
--- a/src/rules/vue/default.json
+++ b/src/rules/vue/default.json
@@ -17,6 +17,13 @@
]
}
],
+ "vue/html-closing-bracket-newline": [
+ "error",
+ {
+ "multiline": "always",
+ "singleline": "never"
+ }
+ ],
"vue/html-indent": [
"error",
"tab",