Skip to content

Commit

Permalink
Disable default-case rule to avoid conflict with stricter `@typescr…
Browse files Browse the repository at this point in the history
…ipt-eslint/switch-exhaustiveness-check` rule (#85)

Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
zckrs and sindresorhus authored Mar 8, 2024
1 parent 5855d73 commit 8cb7722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down

0 comments on commit 8cb7722

Please sign in to comment.