From: Evan You Date: Tue, 16 Jun 2020 16:00:08 +0000 (-0400) Subject: workflow: eslint ignore unused args that start with _ X-Git-Tag: v3.0.0-beta.16~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c80d93f15c6cbcfffd4f082066f41954d3df64f3;p=thirdparty%2Fvuejs%2Fcore.git workflow: eslint ignore unused args that start with _ --- diff --git a/.eslintrc.js b/.eslintrc.js index f54843bc3e..00c0019987 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],