Skip to content

Commit b31ab8a

Browse files
committed
no-unused-vars: Allow ignoring variables by prefixing with underscore
1 parent 9809e67 commit b31ab8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ module.exports = {
239239
'error',
240240
{
241241
vars: 'all',
242+
varsIgnorePattern: /^_/.source,
242243
args: 'after-used',
243244
ignoreRestSiblings: true,
244245
argsIgnorePattern: /^_/.source,

0 commit comments

Comments
 (0)