Function parameters referenced in closure not properly handled by no-unused-vars #584
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Milestone
Consider the following javascript:
Running ESLint on this sample code yields an error from the
no-unused-vars
rule:Normally, the
no-unused-vars
rule will ignore any function parameters that precede a "used" parameter. But this seems to break when the parameter is used inside a closure, as in this example - even though thesecond
parameter is properly detected as being used, thefirst
parameter is not ignored and causes a spurious error.The text was updated successfully, but these errors were encountered: