From 2ae9ce56304ca88f1cf32b654a9d4dfda30ebd09 Mon Sep 17 00:00:00 2001 From: Sam Mayer Date: Thu, 31 Oct 2024 15:11:10 -0500 Subject: [PATCH] Warn on max-depth violations --- .eslintrc.json | 2 +- src/lib/mutate-processor.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 038d2762a..f3831d9a6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,7 +15,7 @@ "complexity": ["warn", { "max": 10 }], "consistent-this": "warn", "eqeqeq": "error", - "max-depth": ["error", { "max": 3 }], + "max-depth": ["warn", { "max": 3 }], "max-nested-callbacks": ["warn", { "max": 4 }], "max-params": ["warn", { "max": 4 }], "max-statements": ["warn", { "max": 20 }, { "ignoreTopLevelFunctions": true }], diff --git a/src/lib/mutate-processor.ts b/src/lib/mutate-processor.ts index 4867ee2cc..822f62bff 100644 --- a/src/lib/mutate-processor.ts +++ b/src/lib/mutate-processor.ts @@ -95,7 +95,6 @@ export async function mutateProcessor( Log.error(actionMetadata, `Action failed: ${errorMessage}`); response.warnings.push(`Action failed: ${errorMessage}`); - // eslint-disable-next-line max-depth switch (config.onError) { case Errors.reject: Log.error(actionMetadata, `Action failed: ${errorMessage}`);