Skip to content

Commit

Permalink
tsconfig: allow fallthrough in cases in switch, remove related ts-ign…
Browse files Browse the repository at this point in the history
…ore. the ts-ignore comment is worse than using fallthrough.
  • Loading branch information
filmaj committed Sep 14, 2024
1 parent edd8b9e commit 44e03c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,6 @@ export default class App<AppCustomContext extends StringIndexed = StringIndexed>
case IncomingEventType.Shortcut:
payload = (bodyArg as SlackShortcutMiddlewareArgs['body']);
break;
// @ts-ignore: Fallthrough case in switch
case IncomingEventType.Action:
if (isBlockActionOrInteractiveMessageBody(bodyArg as SlackActionMiddlewareArgs['body'])) {
const { actions } = (bodyArg as SlackActionMiddlewareArgs<BlockAction | InteractiveMessage>['body']);
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"outDir": "dist",
"sourceMap": true
},
Expand Down

0 comments on commit 44e03c9

Please sign in to comment.