From 3a9ccb56bbc308500418cf12c20f021c3869a738 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Thu, 30 Apr 2026 13:57:35 +0200 Subject: [PATCH] =?UTF-8?q?do=20not=20prefer=20=3F=3F=20over=20||=C2=A0wit?= =?UTF-8?q?h=20boolean/nullish=20union?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/ts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/ts.js b/configs/ts.js index 1b237cb..7fb6078 100644 --- a/configs/ts.js +++ b/configs/ts.js @@ -51,6 +51,12 @@ export default defineConfig([ allowNever: false, }, ], + '@typescript-eslint/prefer-nullish-coalescing': [ + 'error', + { + ignorePrimitives: { boolean: true }, + }, + ], '@typescript-eslint/member-delimiter-style': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-deprecated': 'warn',