diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 12:36:04 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 12:36:04 +0300 |
commit | 9527acd2afa5a32ba96fd8ae02ebd88277af89e9 (patch) | |
tree | c270637717061fad5d31265c8c6dd96ebad78765 | |
parent | 1776bfbec4017f328937b16a7ea752adbec45bea (diff) | |
download | eslint-config-9527acd2afa5a32ba96fd8ae02ebd88277af89e9.tar.xz eslint-config-9527acd2afa5a32ba96fd8ae02ebd88277af89e9.zip |
feat(vue): Rule "html-self-closing"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/vue/default.json | 12 |
2 files changed, 13 insertions, 1 deletions
@@ -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", |