Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
We sometimes get requests forno-explicit-any
like:
- [no-explicit-any] Option to disable rule for generic constraints #642
- Enhancement: [no-explicit-any] Option to disable rule for generic constraints (revisited) #7751
- https://x.com/JoshuaKGoldberg/status/1910814958515871943
...where folks have situations they believeany
to be a correct and safe choice to use. Almost all -or maybe all?- of those situations end up having safety holes and/or being times whennever
orunknown
would be more appropriate.
But,https://typescript-eslint.io/rules/no-explicit-any doesn't have a mention ofnever
, and only light documentation on strategies for the points in those requests.
Suggestion: how about we bolster theno-explicit-any
docs with some FAQs?
Affected URL(s)
https://typescript-eslint.io/rules/no-explicit-any
Additional Info
#10362 ->https://typescript-eslint.io/blog/avoiding-anys#banning-explicit-anys added some docs, but isn't super comprehensive. It's more of a high-level overview with select situations and strategies.
💖