Skip to content

Commit

Permalink
fix(typescript): fix typescript/switch-exhaustiveness-check options
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 committed Oct 30, 2024
1 parent 6fedb76 commit 605b74d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion conf/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,14 @@ export default tseslint.config({
"typescript/return-await": ["error", "in-try-catch"],
"typescript/sort-type-constituents": "error",
"typescript/strict-boolean-expressions": "error",
"typescript/switch-exhaustiveness-check": "error",
"typescript/switch-exhaustiveness-check": [
"error",
{
allowDefaultCaseForExhaustiveSwitch: true,
considerDefaultExhaustiveForUnions: true,
requireDefaultForNonUnion: true
}
],
"typescript/triple-slash-reference": [
"error",
{
Expand Down

0 comments on commit 605b74d

Please sign in to comment.