Enhancement: [prefer-nullish-coalescing] revisit considering any
/unknown
possibly-nullish
#10694
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Link to the rule's documentation
https://typescript-eslint.io/rules/prefer-nullish-coalescing/
Description
In #8262, a bug was fixed around prefer-nullish-coalescing's use of
isNullableType()
. However, it was mentioned during the PR (and I agree) that we probably should use the behavior inisNullableType()
and just adapt the rule implementation details to not crash on it, see #8262 (comment).Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: