From b09a986bf5bd3703c505df5ed8738ffb89df0a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Tue, 29 Oct 2024 16:48:49 +0100 Subject: [PATCH] Update the settings of the static analyzer --- etc/eslint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/eslint.js b/etc/eslint.js index 8bf4b26..a3a63d9 100644 --- a/etc/eslint.js +++ b/etc/eslint.js @@ -192,7 +192,7 @@ export default ts.config( "@typescript-eslint/restrict-template-expressions": "off", "@typescript-eslint/return-await": "error", "@typescript-eslint/strict-boolean-expressions": "off", - "@typescript-eslint/switch-exhaustiveness-check": "error", + "@typescript-eslint/switch-exhaustiveness-check": ["error", {considerDefaultExhaustiveForUnions: true}], "@typescript-eslint/typedef": "error" } },