[no-unused-vars] False positive with parameter decorators with default values #1649
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
scope analyser
Issues that are caused by bugs/incomplete cases in the scope analyser
Milestone
Repro
Expected Result
No violation of
unused-vars
is reported.Actual Result
It complains that
log
is assigned a value but never used.Additional Info
Note: the rule works fine if there is no default value.
Versions
Tried on two sets of versions:
@typescript-eslint/eslint-plugin
2.21.0
@typescript-eslint/parser
2.21.0
TypeScript
3.3.3333
ESLint
6.8.0
node
12.14.1
npm
6.13.4
and
@typescript-eslint/eslint-plugin
1.4.2
@typescript-eslint/parser
1.4.2
TypeScript
3.3.3333
ESLint
5.15.1
node
12.14.1
npm
6.13.4
The text was updated successfully, but these errors were encountered: