aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5e14e19..92654a7 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -546,7 +546,7 @@
- [ ] "key-spacing"
- [ ] "keyword-spacing"
- [ ] "match-component-file-name"
-- [ ] "max-attributes-per-line"
+- [X] "max-attributes-per-line"
- [ ] "max-len"
- [ ] "multiline-html-element-content-newline"
- [ ] "mustache-interpolation-spacing"
diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json
index e2e92ef..e0f09f3 100644
--- a/src/rules/vue/default.json
+++ b/src/rules/vue/default.json
@@ -58,6 +58,16 @@
"svg": "always"
}
],
+ "vue/max-attributes-per-line": [
+ "error",
+ {
+ "multiline": {
+ "allowFirstLine": false,
+ "max": 1
+ },
+ "singleline": 8
+ }
+ ],
"vue/script-indent": [
"error",
"tab",