Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Enable noImplicitReturns:true and allowUnreachableCode:false when type-checking #2583

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Mar 3, 2023

Description

Simplify our type-checking config, and improve strictness of our codebase by enabling noImplicitReturns:true and allowUnreachableCode:false in our type-checking config.

  • Add explicit return undefined statements to functions that contained an implicit return
  • Remove unreachable code.

BPScott added 2 commits March 3, 2023 13:20
Three instances of unreachable code have been removed
Add `return undefined` to places where implict returns were present
@BPScott BPScott requested a review from a team as a code owner March 3, 2023 22:38
@BPScott BPScott requested a review from mateus March 3, 2023 22:38
@BPScott BPScott merged commit 2aa32e8 into main Mar 3, 2023
@BPScott BPScott deleted the ts-strictness branch March 3, 2023 22:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant