workflow: eslint ignore unused args that start with _

This commit is contained in:
Evan You 2020-06-16 12:00:08 -04:00
parent 2961e149c9
commit c80d93f15c

View File

@ -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],