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
[no-shadow] False positive: export enum #2570
Comments
I'm unable to repro this against master. Could you please check the versions you have installed using one of the following? $ npm list @typescript-eslint/eslint-plugin @typescript-eslint/parser
$ yarn list @typescript-eslint/eslint-plugin @typescript-eslint/parser |
Thanks @bradzacher for the prompt and accurate response. npm neglected to inform me of the outdated peer dependency. Nothing to see here, carry on. 👋 |
@bradzacher Let's update the title on this issue, but.. fixed one issue and broke another. Perhaps you can replicate this one: export enum SignOutType {
global = "GLOBAL",
local = "LOCAL",
} throws:
Same version in initial description and previously it was working. |
🤦 Sorry. I'm done wasting your time. Carry on. |
Hey! I've had the same problem today and this issue saved me probably a lot of time. Thanks |
Repro
eslint config
(with and without the
args: 'none'
option)foo.vue
tsconfig.json
Expected Result
Similar to #2453, the type is being used and therefore it should not be flagged as unused.
Actual Result
Additional Info
This doesn't happen in
"@typescript-eslint/eslint-plugin": "^3.10.1",
Versions
"@typescript-eslint/eslint-plugin": "^4.1.1",
The text was updated successfully, but these errors were encountered: