Skip to content
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

feat(linter): enhance no-unused-vars #8488

Open
camc314 opened this issue Jan 14, 2025 · 3 comments
Open

feat(linter): enhance no-unused-vars #8488

camc314 opened this issue Jan 14, 2025 · 3 comments
Labels
C-bug Category - Bug

Comments

@camc314 camc314 added the C-bug Category - Bug label Jan 14, 2025
@Dunqing
Copy link
Member

Dunqing commented Jan 14, 2025

While working on #8465, I also discovered that this rule does not yet support reporting this error.

I thought it was not hard for oxlint to support this until I found this edge case would be hard because when need to know whether it has a same name with a type alias declaration and it is exported, if it does, then we don't need to report this error. I suspect this is a bug in typescript-eslint, because only type A is exported not const A, before doing this, we need to confirm in typescript-eslint if it is a correct behavior!

It would be appreciated if you could help us to confirm this! @JoshuaKGoldberg

@JoshuaKGoldberg
Copy link

Heya! I'm not 100% following what you mean. But if you think it's a bug in typescript-eslint, could you please file an issue on us? 🙂

@Dunqing
Copy link
Member

Dunqing commented Jan 15, 2025

Heya! I'm not 100% following what you mean. But if you think it's a bug in typescript-eslint, could you please file an issue on us? 🙂

Sorry, I did not explain clearly, I will file an issue later! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

3 participants