diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 12:15:09 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 12:15:09 +0300 |
commit | 22795371c9963ef7aebdadd120a25f08fea54093 (patch) | |
tree | b7b0a39a8c9be413901a004cf0a6e1371db9152c | |
parent | 18f0fc8ed1479ba8bef8cb7cd76527cf13670f37 (diff) | |
download | eslint-config-22795371c9963ef7aebdadd120a25f08fea54093.tar.xz eslint-config-22795371c9963ef7aebdadd120a25f08fea54093.zip |
feat(vue): Rule "script-indent"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/vue/default.json | 11 |
2 files changed, 11 insertions, 2 deletions
@@ -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 + } + ] +} |