From 8cb772218ebd16099f032a2657748768414d4f45 Mon Sep 17 00:00:00 2001 From: Mehdy Dara Date: Fri, 8 Mar 2024 16:46:10 +0100 Subject: [PATCH] Disable `default-case` rule to avoid conflict with stricter `@typescript-eslint/switch-exhaustiveness-check` rule (#85) Co-authored-by: Sindre Sorhus --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 9ea7caa..889b9a9 100644 --- a/index.js +++ b/index.js @@ -677,7 +677,8 @@ module.exports = { // allowSafe: true // } // ], - + + 'default-case': 'off', // It conflicts with `@typescript-eslint/switch-exhaustiveness-check`. It would still be nice to have this rule for non-exhaustive switches though. '@typescript-eslint/switch-exhaustiveness-check': [ 'error', {