-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: [no-unused-vars] 'Component' is defined but never used #5571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also confirm the issue. After updating to |
As per our contributing guide - please don't comment in the form of "+1" or "I also have this issue". Such comments just create notification spam and add little value. |
It looks like we introduced a regression with exported decorators and TS<4.8 |
Fix has been released as https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.36.1 |
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
does not work
Repro Code
ESLint Config
tsconfig
Expected Result
Recognise imported "Component" as "experimentalDecorators".
Actual Result
'Component' is defined but never used.eslint@typescript-eslint/no-unused-vars
Additional Info
No response
Versions
@typescript-eslint/eslint-plugin
^5.36.0
@typescript-eslint/parser
^5.36.0
TypeScript
<4.8.0
ESLint
^8.23.0
node
17
The text was updated successfully, but these errors were encountered: