From 945a539178e05d27ce57ed04dd406ffb25980806 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 7 Aug 2023 18:12:46 +0200 Subject: [PATCH] Disabled `array-element-newline` --- .eslintrc.js | 3 ++- configs/generic.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 516d22d..b8481b0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,10 +9,11 @@ const svelteConfig = require('./configs/svelte.js'); * @type {import('eslint').Linter.Config} */ module.exports = { + root: true, extends: './configs/node.js', ignorePatterns: [ '/example/wrong.*' ], overrides: [ { - files: [ './example/correct.svelte' ], + files: [ './example/*.svelte' ], overrides: svelteConfig.overrides, parserOptions: svelteConfig.parserOptions, env: svelteConfig.env, diff --git a/configs/generic.js b/configs/generic.js index 8900888..063cc8a 100644 --- a/configs/generic.js +++ b/configs/generic.js @@ -53,6 +53,7 @@ const generic = { 'error', 'always', ], + 'array-element-newline': 'off', 'arrow-body-style': [ 'error', 'as-needed',