From 358cd14e0e80be1ea3d693f7bc93f6443f3ba377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 1 Apr 2025 16:30:54 +0200 Subject: [PATCH] lint: Enforce "no-unused-vars" for catch statements Now that we treat unused catch bindings as unused variables, update the eslint rule to enforce it. Part-of: --- lint/eslintrc-shell.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lint/eslintrc-shell.yml b/lint/eslintrc-shell.yml index 155474b74..150741dc4 100644 --- a/lint/eslintrc-shell.yml +++ b/lint/eslintrc-shell.yml @@ -12,6 +12,12 @@ rules: - mode: minimum beforeColon: false afterColon: true + no-unused-vars: + - error + # Vars use a suffix _ instead of a prefix because of file-scope private vars + - varsIgnorePattern: (^unused|_$) + argsIgnorePattern: ^(unused|_) + caughtErrors: all prefer-arrow-callback: error jsdoc/require-param-description: off jsdoc/require-jsdoc: