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

blendsdk picture blendsdk  路  3Comments

zhuravlikjb picture zhuravlikjb  路  3Comments

kyasbal-1994 picture kyasbal-1994  路  3Comments

dlaberge picture dlaberge  路  3Comments

bgrieder picture bgrieder  路  3Comments