This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
[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? |
Looking at the AST and comparing it to the Having a look, this will be fixed by the new |
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
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
Uh oh!
There was an error while loading. Please reload this page.
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: