Skip to content

Commit

Permalink
chore: considerDefaultExhaustiveForUnions=true
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Nov 2, 2024
1 parent 011a64d commit f6d10dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
],
'@typescript-eslint/switch-exhaustiveness-check': [
'error',
{ requireDefaultForNonUnion: true },
{
considerDefaultExhaustiveForUnions: true, // we consider default cases for unions valid
requireDefaultForNonUnion: true,
},
],
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation
Expand Down

0 comments on commit f6d10dc

Please sign in to comment.