From 89fb2fe3b89edf8f5153b273a3724802acc2d9a1 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sun, 25 Dec 2022 09:41:27 +0100 Subject: [PATCH] Added array-element-newline rule from eslint (#2066) Co-authored-by: Antoine SAVAJOLS --- docs/rules/array-element-newline.md | 31 +++ docs/rules/index.md | 1 + lib/configs/no-layout-rules.js | 1 + lib/index.js | 1 + lib/rules/array-element-newline.js | 11 + tests/lib/rules/array-element-newline.js | 270 +++++++++++++++++++++++ 6 files changed, 315 insertions(+) create mode 100644 docs/rules/array-element-newline.md create mode 100644 lib/rules/array-element-newline.js create mode 100644 tests/lib/rules/array-element-newline.js diff --git a/docs/rules/array-element-newline.md b/docs/rules/array-element-newline.md new file mode 100644 index 000000000..024dcafe6 --- /dev/null +++ b/docs/rules/array-element-newline.md @@ -0,0 +1,31 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/array-element-newline +description: Enforce line breaks after each array element in `