Typescript: Report unused imported modules

Created on 1 Nov 2015  路  3Comments  路  Source: microsoft/TypeScript

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.

Revisit Suggestion

Most helpful comment

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

All 3 comments

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

quantuminformation picture quantuminformation  路  273Comments

rwyborn picture rwyborn  路  210Comments

fdecampredon picture fdecampredon  路  358Comments

sandersn picture sandersn  路  265Comments

nitzantomer picture nitzantomer  路  135Comments