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

Fails to detect import type usage #742

Open
garyking opened this issue Aug 2, 2022 · 2 comments
Open

Fails to detect import type usage #742

garyking opened this issue Aug 2, 2022 · 2 comments

Comments

@garyking
Copy link

garyking commented Aug 2, 2022

I know that import type support was apparently added here, but it doesn't seem to be working.

If I have "eslint": "7", in dependencies in package.json, and I have import type eslint from 'eslint'; at the top of a .ts file, then depcheck still marks eslint as unused.

@garyking garyking added the bug label Aug 2, 2022
@ianwremmel
Copy link

I suspect part of the problem is that detectTypescriptImportType never got added to defaultOptions, but even when passed explicitly, it doesn't seem to work as expected.

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants