]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: eslint ignore unused args that start with _
authorEvan You <yyx990803@gmail.com>
Tue, 16 Jun 2020 16:00:08 +0000 (12:00 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 16 Jun 2020 16:00:18 +0000 (12:00 -0400)
.eslintrc.js

index f54843bc3ebaf6785e58e5475ee9c65f712e4320..00c0019987eb6500f5550770acbf87d8a719da7a 100644 (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],