From 22795371c9963ef7aebdadd120a25f08fea54093 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 13:15:09 +0400 Subject: feat(vue): Rule "script-indent" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/vue/default.json | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index c6fb1a7..170ad4f 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -591,7 +591,7 @@ - [ ] "require-v-for-key" - [ ] "require-valid-default-prop" - [ ] "return-in-computed-property" -- [ ] "script-indent" +- [X] "script-indent" - [ ] "singleline-html-element-content-newline" - [ ] "space-infix-ops" - [ ] "space-unary-ops" diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json index 0967ef4..7d8c19a 100644 --- a/src/rules/vue/default.json +++ b/src/rules/vue/default.json @@ -1 +1,10 @@ -{} +{ + "vue/script-indent": [ + "error", + "tab", + { + "baseIndent": 0, + "switchCase": 1 + } + ] +} -- cgit v1.2.3