-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add --listExplicitAny
or --warnExplicitAny
#13316
Comments
Would find-all-references on built-in types be sufficient? |
Do you mean it is available (or to be made available) in the compiler API or as a flag? Will find-all-references differentiate between implicit any and explicit any? It is probably a better route as it is more generic. 🌷 |
It doesn't exist now, but I'd like it to. Find all references would find explicit annotations and uses of |
Feel free to change the title to reflect |
@unional thanks taking up the cause ❤️! Being able to find all references on |
You can use TSLint https://palantir.github.io/tslint/rules/no-any/ |
@NN--- In regular development, you would like to have this turned off so it won't distract the developers. |
What about I do not think we would add a flag like such, this seems to fall in the realm of style/lint tools. I do support enabling find all references for |
Filed #13473 to track find all refs. |
Close this as #13566 landed? How to use it? |
Agree with @aluanhaddad in his comment about the backfire effect of
--noImplicitAny
#11839 (comment)
It would be nice to add
--listExplicitAny
or--warnExplicitAny
flag to catch those unfortunate circumstances.Doing a text search for
: any
may work, but I worry that there may be some case this simple text search is not sufficient.Since the compiler has all the information needed, it may be better to let the compiler helping out here.
The text was updated successfully, but these errors were encountered: