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

weswigham picture weswigham  ·  3Comments

uber5001 picture uber5001  ·  3Comments

siddjain picture siddjain  ·  3Comments

blendsdk picture blendsdk  ·  3Comments

fwanicka picture fwanicka  ·  3Comments