From ed2cc0ca16259bf09492e43652cd6f3514bad3ef Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Sat, 7 Jan 2023 13:42:34 +0000 Subject: [PATCH] test (vue/max-attributes-per-line): add test for max value as object --- tests/lib/rules/max-attributes-per-line.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/lib/rules/max-attributes-per-line.js b/tests/lib/rules/max-attributes-per-line.js index d8bae0580..252bd22c1 100644 --- a/tests/lib/rules/max-attributes-per-line.js +++ b/tests/lib/rules/max-attributes-per-line.js @@ -113,6 +113,27 @@ job="Vet">`, options: [{ singleline: 3, multiline: 1 }], output: ``, + errors: [ + { + message: "'age' should be on a new line.", + type: 'VAttribute', + line: 2 + } + ] + }, + { + code: ``, + options: [{ multiline: { max: 1 } }], + output: `