You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
What did you expect to happen?
With eslint-plugin-typescript's typescript/no-unused-vars rule enabled, should lint without errors.
What happened?
error: 'HelloWorld' is defined but never used (no-unused-vars)
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:
Thanks for reporting, @yyx990803! This needs to be addressed in the plugin. It would be fantastic if one of the people affected by this issue could contribute to it.
What version of TypeScript are you using?
2.6.1
What version of
typescript-eslint-parser
are you using?12.0.0
What code were you trying to parse?
What did you expect to happen?
With
eslint-plugin-typescript
'stypescript/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: