Enhancement: [prefer-nullish-coalescing] Allow ignorePrimitives option to be true #7180
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
good first issue
Good for newcomers
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 #6487, @omril1 added a new
ignorePrimitives
option. Which is great! It lets us configure individually whetherbigint
s,boolean
s,number
s, and/orstring
s, are ignored by the rule.As a convenience, it'd be nice to allow the option to be set as just the shorthand
true
- to set all of them astrue
.Fail
Pass
Additional Info
The label here is slightly inaccurate - it's not a new rule option, it's an augmentation to an existing option.
The text was updated successfully, but these errors were encountered: