From 32393d68b1d02ec661159f77a82d619989e6ecff Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Thu, 25 Jul 2024 13:58:21 +0200 Subject: [PATCH] Allow unused underscore-prefixed variables --- configs/generic.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/generic.js b/configs/generic.js index 536144b..8303194 100644 --- a/configs/generic.js +++ b/configs/generic.js @@ -115,7 +115,19 @@ const generic = { ], 'no-unused-vars': [ 'warn', - { varsIgnorePattern: '\\_' }, + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, + ], + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, ], 'no-alert': 'error', 'no-caller': 'error',