This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
[no-unused-vars] False positive for unused vars inside decorator arguments #126
Labels
Milestone
Comments
So could anyone fix it ? |
I'm seeing this issue as well. Is there any progress on a fix? |
bradzacher
changed the title
False positive for unused vars inside decorator arguments
[no-unused-vars] False positive for unused vars inside decorator arguments
Nov 16, 2018
bradzacher
added
bug/incomplete rule
requires investigation
bug that require more investigation
labels
Nov 16, 2018
Looking at the AST and comparing it to the Having a look, this will be fixed by the new |
bradzacher
removed
the
requires investigation
bug that require more investigation
label
Nov 19, 2018
7 tasks
armano2
added a commit
to armano2/eslint-plugin-typescript
that referenced
this issue
Nov 19, 2018
armano2
added a commit
to armano2/eslint-plugin-typescript
that referenced
this issue
Nov 20, 2018
bradzacher
added
the
parser bug
bugs with typescript-eslint-parser / typescript-estree
label
Nov 26, 2018
bradzacher
pushed a commit
that referenced
this issue
Dec 4, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
From eslint/typescript-eslint-parser#445
What code were you trying to parse?
What did you expect to happen?
With eslint-plugin-typescript's typescript/no-unused-vars rule enabled, should lint without errors.
What happened?
It looks like the expression in a decorator's argument position is not taken into context when determining unused vars. Also, when using eslint --fix, code inside decorator arguments are sometimes not formatted correctly.
The text was updated successfully, but these errors were encountered: