From e4f1d7cae18791744e4bf4e2b2aa741222406a21 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 15 Jun 2022 14:48:12 -0500 Subject: [PATCH] Change eslint unused var to 'warn' instead of 'error' --- common/.eslintrc.js | 8 ++++++++ functions/.eslintrc.js | 2 +- web/.eslintrc.js | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/common/.eslintrc.js b/common/.eslintrc.js index 7904e7ad..3d6cfa82 100644 --- a/common/.eslintrc.js +++ b/common/.eslintrc.js @@ -17,6 +17,14 @@ module.exports = { }, rules: { '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, + ], }, }, ], diff --git a/functions/.eslintrc.js b/functions/.eslintrc.js index 91ca1cea..7f571610 100644 --- a/functions/.eslintrc.js +++ b/functions/.eslintrc.js @@ -19,7 +19,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-extra-semi': 'off', '@typescript-eslint/no-unused-vars': [ - 'error', + 'warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', diff --git a/web/.eslintrc.js b/web/.eslintrc.js index 2f3ac31a..b55b3277 100644 --- a/web/.eslintrc.js +++ b/web/.eslintrc.js @@ -10,7 +10,7 @@ module.exports = { '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': [ - 'error', + 'warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_',