From a6c7ca4626d495580c7a60dee7d0f5ccb090a629 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 12 Sep 2024 16:28:47 +0800 Subject: chore: Fix warning from eslint --- eslint.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js index ac88ddf..228a920 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -21,7 +21,11 @@ export default [ node: nodePlugin, }, rules: { - 'no-unused-vars': ['warn', { 'varsIgnorePattern': '^_' }], + 'no-unused-vars': ['warn', { + 'varsIgnorePattern': '^_', + "argsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^ignore|_", + }], 'import/no-unresolved': 'error', 'no-console': ["error", { allow: ["info", "warn", "error"] }], 'eqeqeq': ['error', 'always'], -- cgit v1.2.3-70-g09d2