From 3d0308bbd1b4977a24708e782b4297a6950c34e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Pintos=20L=C3=B3pez?= Date: Wed, 30 Oct 2024 22:13:32 +0100 Subject: [PATCH] chore: update eslint rule update switch-exhaustiveness-check with considerDefaultExhaustiveForUnions --- packages/foundation/tools/eslint-config/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/foundation/tools/eslint-config/index.js b/packages/foundation/tools/eslint-config/index.js index 4b0823a9..e44e5bd7 100644 --- a/packages/foundation/tools/eslint-config/index.js +++ b/packages/foundation/tools/eslint-config/index.js @@ -115,7 +115,12 @@ function buildBaseConfig() { ], '@typescript-eslint/unified-signatures': 'error', '@typescript-eslint/strict-boolean-expressions': 'error', - '@typescript-eslint/switch-exhaustiveness-check': 'error', + '@typescript-eslint/switch-exhaustiveness-check': [ + 'error', + { + considerDefaultExhaustiveForUnions: true, + }, + ], '@typescript-eslint/no-unused-vars': [ 'warn', {