From f0abfabb1b100cb5f1230e31935d017395a62495 Mon Sep 17 00:00:00 2001 From: coronoro Date: Tue, 30 Aug 2022 10:10:39 +0200 Subject: [PATCH] feat: add object and array newline rules (#29) Co-authored-by: Tim Streicher --- configs/basic/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/basic/index.js b/configs/basic/index.js index 3f02d5a..8da4047 100644 --- a/configs/basic/index.js +++ b/configs/basic/index.js @@ -256,6 +256,10 @@ module.exports = { balanced: true, }, }], + //consistency + 'array-element-newline':["error", "consistent"], + 'object-property-newline': ['error','allowMultiplePropertiesPerLine'], + // best-practice 'array-callback-return': 'error', 'block-scoped-var': 'error',