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

Report unused imported modules #5486

Closed
manekinekko opened this issue Nov 1, 2015 · 3 comments
Closed

Report unused imported modules #5486

manekinekko opened this issue Nov 1, 2015 · 3 comments
Labels
Revisit An issue worth coming back to Suggestion An idea for TypeScript

Comments

@manekinekko
Copy link
Member

Just a feature request. Is it possible to add support for unused imported modules and the ability to automatically remove any unused module?

image

Thanks.

@mhegazy mhegazy added the Suggestion An idea for TypeScript label Nov 2, 2015
@kitsonk
Copy link
Contributor

kitsonk commented Nov 2, 2015

This is typically a job of the linter and currently tslint supports the no-unused-variable flag.

@mhegazy mhegazy added the Revisit An issue worth coming back to label Nov 2, 2015
@mhegazy mhegazy closed this as completed Nov 2, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Nov 2, 2015

as @kitsonk a lint rule should address this. We should revisit this when we have definite assignment analysis infrastructure in place.

@ryanmcnamara
Copy link

For posterity it seems that the --no-unused-locals flag addresses this

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Revisit An issue worth coming back to Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants