From ad3e25310a2b51b0f4e939fa2cc941e9ef52fdff Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 12 Apr 2020 14:00:02 +0200 Subject: [PATCH] added rule to eslintrc unused arguments are okay if they only contain '_'s Reference: https://eslint.org/docs/rules/no-unused-vars#argsignorepattern Signed-off-by: Philip Molares Signed-off-by: David Mehren --- .eslintrc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 33bb53507..6b749cad9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -33,6 +33,7 @@ module.exports = { 'one-var': ['warn'], 'quotes': ['warn'], 'space-infix-ops': ['warn'], - 'import/no-default-export': ['error'] + 'import/no-default-export': ['error'], + '@typescript-eslint/no-unused-vars': ['warn', { "argsIgnorePattern": "^_+$" }], } }