From 890c1501e226e758cf3889ee5662fb41348bd2bf Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 27 May 2021 18:59:50 +0100 Subject: [PATCH] add logger to ignoreUnusedArgs --- server/.eslintrc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/server/.eslintrc b/server/.eslintrc index 3e301ca99..0d97d61fc 100644 --- a/server/.eslintrc +++ b/server/.eslintrc @@ -36,6 +36,12 @@ ], "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", + { + "argsIgnorePattern": "logger" + } + ], "require-await": "warn", "no-await-in-loop": "warn", "no-unused-labels": "error", @@ -79,12 +85,12 @@ "no-throw-literal": "error", "no-unmodified-loop-condition": "error", "no-unused-expressions": "error", - // "no-unused-vars": [ - // "warn", - // { - // "match": "logger" - // } - // ], + "no-unused-vars": [ + "warn", + { + "argsIgnorePattern": "logger" + } + ], "no-useless-call": "error", "no-useless-return": "error", "require-unicode-regexp": "error"