From 38c1f1ce1ae5681b786a7f420084e2f6a3c6cfbc Mon Sep 17 00:00:00 2001 From: Zach Rutman Date: Tue, 3 Sep 2024 19:16:07 -0700 Subject: [PATCH] feat: add no-unused-vars exceptions Co-authored-by: Azalea Colburn <62953415+azaleacolburn@users.noreply.github.com> --- eslint.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 13f0eed..dd0e989 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -15,7 +15,14 @@ export default tseslint.config( { rules: { '@typescript-eslint/no-explicit-any': 'warn', - '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, + ], 'prefer-const': 'warn', '@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': 'allow-with-description' }] }