no-unused-vars breaks when destructuring an argument after applying a decorator #297
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for team members to take a look
What code were you trying to parse?
I try to lint the following code:
The linting crashes with the stack trace listed under "What actually happened?".
Changing the code to:
makes the rule run fine.
I created a repo for easier reproduction: https://github.com/rfermann/args-decorator-parser-error.
What did you expect to happen?
I expect to not get a
TypeError
during lintingWhat actually happened?
I got a
TypeError
during linting:@typescript-eslint/parser
1.3.0
TypeScript
3.3.1
ESLint
5.14.1
node
10.11.0
npm
6.4.1
The text was updated successfully, but these errors were encountered: