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', {