Skip to content

Commit

Permalink
chore: update eslint rule
Browse files Browse the repository at this point in the history
update switch-exhaustiveness-check with considerDefaultExhaustiveForUnions
  • Loading branch information
notaphplover committed Oct 30, 2024
1 parent 86c6bfe commit 3d0308b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/foundation/tools/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ function buildBaseConfig() {
],
'@typescript-eslint/unified-signatures': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'@typescript-eslint/switch-exhaustiveness-check': [
'error',
{
considerDefaultExhaustiveForUnions: true,
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down

0 comments on commit 3d0308b

Please sign in to comment.