From 37337f9e0262334299c1b8f64c6c325e8a07e759 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 13:17:35 +0400 Subject: feat(vue): Rule "html-indent" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/vue/default.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 170ad4f..d9ba56b 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -539,7 +539,7 @@ - [ ] "html-closing-bracket-newline" - [ ] "html-closing-bracket-spacing" - [ ] "html-end-tags" -- [ ] "html-indent" +- [X] "html-indent" - [ ] "html-quotes" - [ ] "html-self-closing" - [ ] "jsx-uses-vars" diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json index 7d8c19a..e7e45eb 100644 --- a/src/rules/vue/default.json +++ b/src/rules/vue/default.json @@ -1,4 +1,14 @@ { + "vue/html-indent": [ + "error", + "tab", + { + "alignAttributesVertically": true, + "attribute": 1, + "baseIndent": 1, + "closeBracket": 0 + } + ], "vue/script-indent": [ "error", "tab", -- cgit v1.2.3