Skip to content

Commit a98e99f

Browse files
authored
do not prefer ?? over || with boolean/nullish union (#30)
1 parent 9618351 commit a98e99f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

configs/ts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ export default defineConfig([
5151
allowNever: false,
5252
},
5353
],
54+
'@typescript-eslint/prefer-nullish-coalescing': [
55+
'error',
56+
{
57+
ignorePrimitives: { boolean: true },
58+
},
59+
],
5460
'@typescript-eslint/member-delimiter-style': 'off',
5561
'@typescript-eslint/explicit-function-return-type': 'off',
5662
'@typescript-eslint/no-deprecated': 'warn',

0 commit comments

Comments
 (0)