-
Notifications
You must be signed in to change notification settings - Fork 36
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
Rule for unused imports #348
Comments
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
no-missing-imports
rule is very helpful, but it would be nice to have ano-unused-imports
rule to remove imports of components that are not used anywhere in the module's templates. This can easily happen when a previous version of a template might have used the element, but was subsequently removed and the author forgot to removed the import. Since components are most often side effect only imports, I don't know any other way to catch these errors other than manually.Perhaps oversimplifying, I'm thinking the rule could, for each side effect only import:
no-missing-imports
, except only 1 module deep@ts-ignore
those false positives or only use the rule for warnings.The text was updated successfully, but these errors were encountered: