diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 12:17:35 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 12:17:35 +0300 |
commit | 37337f9e0262334299c1b8f64c6c325e8a07e759 (patch) | |
tree | 75cad8a2eb73e89b6ab69859425a07e4c7dba945 | |
parent | 22795371c9963ef7aebdadd120a25f08fea54093 (diff) | |
download | eslint-config-37337f9e0262334299c1b8f64c6c325e8a07e759.tar.xz eslint-config-37337f9e0262334299c1b8f64c6c325e8a07e759.zip |
feat(vue): Rule "html-indent"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/vue/default.json | 10 |
2 files changed, 11 insertions, 1 deletions
@@ -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", |