aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-19 13:18:28 +0300
committerValentin Popov <info@valentineus.link>2020-02-19 13:18:28 +0300
commit79d28d317b260bc201c17a39cc3bcd0b6ea33871 (patch)
treec2ce94082d49d0ba3a1e77b385a2a42707dbcb76
parent50fd33ae97f5614d1ee3c5c7aa87238cb0813039 (diff)
downloadeslint-config-79d28d317b260bc201c17a39cc3bcd0b6ea33871.tar.xz
eslint-config-79d28d317b260bc201c17a39cc3bcd0b6ea33871.zip
feat(vue): object-curly-spacing
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/vue/default.json8
2 files changed, 9 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index e9e4b0e..2220774 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -578,7 +578,7 @@
- [ ] "no-unused-vars"
- [ ] "no-use-v-if-with-v-for"
- [ ] "no-v-html"
-- [ ] "object-curly-spacing"
+- [X] "object-curly-spacing"
- [ ] "order-in-components"
- [ ] "prop-name-casing"
- [ ] "require-component-is"
diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json
index fa55110..f26ab8b 100644
--- a/src/rules/vue/default.json
+++ b/src/rules/vue/default.json
@@ -68,6 +68,14 @@
"singleline": 8
}
],
+ "vue/object-curly-spacing": [
+ "error",
+ "always",
+ {
+ "arraysInObjects": false,
+ "objectsInObjects": false
+ }
+ ],
"vue/script-indent": [
"error",
"tab",