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
A wrong behavior after upgrade to 4.14.0 #2947
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Comments
mlc-mlapis
added
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for maintainers to take a look
labels
Jan 19, 2021
I see same warning after updating from 4.13.0 to 4.14.0. For example with this code, it throws "3:22 warning 'HealthResponse' is defined but never used @typescript-eslint/no-unused-vars",
|
Same here. Btw, the warning doesn't get triggered in the case of inline type import use:
|
bradzacher
added
duplicate
This issue or pull request already exists
and removed
triage
Waiting for maintainers to take a look
labels
Jan 19, 2021
@bradzacher Thanks for your PR, I was too fast. You are right. 🥇 |
This was referenced Jan 19, 2021
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
If
AppState
is imported:and later used only in a constructor, like:
then the warning appears in many places (in relation to the
import {AppState} from '@m-kbase/shared/general/states';
line):warning 'AppState' is defined but never used @typescript-eslint/no-unused-vars
Expected Result
The same result as with the previous version 4.13.0 or earlier, with no warnings.
Additional Info
Probably similar to #2946
Versions
@typescript-eslint/eslint-plugin
4.14.0
@typescript-eslint/parser
4.14.0
TypeScript
4.0.5
ESLint
7.18.0
node
12.13.1
The text was updated successfully, but these errors were encountered: