From c80d93f15c6cbcfffd4f082066f41954d3df64f3 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 16 Jun 2020 12:00:08 -0400 Subject: [PATCH] workflow: eslint ignore unused args that start with _ --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index f54843bc..00c00199 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,7 @@ module.exports = { 'error', // we are only using this rule to check for unused arguments since TS // catches unused variables but not args. - { varsIgnorePattern: '.*', args: 'after-used' } + { varsIgnorePattern: '.*', args: 'after-used', argsIgnorePattern: '^_' } ], // most of the codebase are expected to be env agnostic 'no-restricted-globals': ['error', ...DOMGlobals, ...NodeGlobals],