Skip to content

Commit f23f470

Browse files
committed
feat(no-unused-vars): ignore _
1 parent 4388d9b commit f23f470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ module.exports = {
126126
'no-undef': 1, // disallow the use of undeclared variables unless mentioned in `/*global */` comments
127127
'no-undef-init': 0, // disallow initializing variables to `undefined`
128128
'no-undefined': 0, // disallow the use of `undefined` as an identifier
129-
'no-unused-vars': [1, {argsIgnorePattern: 'next'}], // disallow unused variables
129+
'no-unused-vars': [1, {argsIgnorePattern: '^(next|_)$'}], // disallow unused variables
130130
'no-use-before-define': [1, 'nofunc'], // disallow the use of variables before they are defined
131131

132132
// Node.js and CommonJS

0 commit comments

Comments
 (0)