Skip to content

Commit

Permalink
Warn on max-depth violations
Browse files Browse the repository at this point in the history
  • Loading branch information
samayer12 committed Oct 31, 2024
1 parent 12956ab commit 2ae9ce5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down
1 change: 0 additions & 1 deletion src/lib/mutate-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 2ae9ce5

Please sign in to comment.