From 7b819ad5a1e8ce01b4e784c7cdc1cbe70980a7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 6 Dec 2022 16:07:26 +0100 Subject: [PATCH] refactor: Disable ESLint `indent` rule (no-changelog) (#4828) * :shirt: Disable ESLint `indent` rule * :fire: Remove redundant rule --- packages/@n8n_io/eslint-config/base.js | 7 +++++++ packages/@n8n_io/eslint-config/frontend.js | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/@n8n_io/eslint-config/base.js b/packages/@n8n_io/eslint-config/base.js index 30fe989f3..1899eb1ab 100644 --- a/packages/@n8n_io/eslint-config/base.js +++ b/packages/@n8n_io/eslint-config/base.js @@ -129,6 +129,13 @@ const config = (module.exports = { */ 'no-void': ['error', { allowAsStatement: true }], + /** + * https://eslint.org/docs/latest/rules/indent + * + * Delegated to Prettier. + */ + indent: 'off', + /** * https://eslint.org/docs/latest/rules/sort-imports */ diff --git a/packages/@n8n_io/eslint-config/frontend.js b/packages/@n8n_io/eslint-config/frontend.js index 9abd67aed..51793039f 100644 --- a/packages/@n8n_io/eslint-config/frontend.js +++ b/packages/@n8n_io/eslint-config/frontend.js @@ -28,7 +28,6 @@ module.exports = { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', semi: [2, 'always'], - indent: ['error', 'tab'], 'comma-dangle': ['error', 'always-multiline'], 'no-tabs': 0, 'no-labels': 0,