Enhancement: [prefer-nullish-coalescing] recognize "||=" #5229
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
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
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 cases where an assignment is made to a nullish variable via
||=
, it'd be nice if??=
was suggested instead.Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: