Skip to content

Commit a39c990

Browse files
authored
fix(typescript): allow boolean primitives for prefer-nullish-coalescing (#17)
1 parent 8514bb7 commit a39c990

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/typescript.ts

+6
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ const rules: TSESLint.FlatConfig.Rules = {
159159
{
160160
ignoreConditionalTests: true,
161161
ignoreMixedLogicalExpressions: true,
162+
ignorePrimitives: {
163+
bigint: false,
164+
boolean: true,
165+
number: false,
166+
string: false,
167+
},
162168
},
163169
],
164170
"@typescript-eslint/prefer-optional-chain": 2,

0 commit comments

Comments
 (0)