Skip to content

Commit 8cb7722

Browse files
zckrssindresorhus
andauthored
Disable default-case rule to avoid conflict with stricter @typescript-eslint/switch-exhaustiveness-check rule (#85)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent 5855d73 commit 8cb7722

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,8 @@ module.exports = {
677677
// allowSafe: true
678678
// }
679679
// ],
680-
680+
681+
'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.
681682
'@typescript-eslint/switch-exhaustiveness-check': [
682683
'error',
683684
{

0 commit comments

Comments
 (0)