aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 12:17:35 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 12:17:35 +0300
commit37337f9e0262334299c1b8f64c6c325e8a07e759 (patch)
tree75cad8a2eb73e89b6ab69859425a07e4c7dba945
parent22795371c9963ef7aebdadd120a25f08fea54093 (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/vue/default.json10
2 files changed, 11 insertions, 1 deletions
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",