Rule proposal: Disallow unions with unknown
or any
#3926
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: new plugin rule
New rule request for eslint-plugin
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Description
From what I understand,
T | unknown
andT | any
resolve to justunknown
andany
respectively, so I don't think they're particularly useful.However maybe it's still useful as suggested type documentation, because such types would still appear as
X | unknown
in some cases.Thoughts?
Fail
Pass
The text was updated successfully, but these errors were encountered: