Open
Conversation
This is the command I set up to demo this as well. `tsc --noEmit --skipLibCheck --target esnext --module nodenext ./**/*.ts` I have a 'template' config that I tend to start with, then I remove flags to make it on the same level as what the project needs, then bring flags back into place one by one, incrementally allowing for stronger type checking. :) So right now this simply allows you to run `tsc` on the project, and you get a list of all current errors and issues to focus on, without having to go to each file to find them. It helps for migrations and larger cross-project updates as well.
Enabled a few more flags, seemingly no errors for those (yay!). A few strict-related flags rose some errors, so those have been omitted for this commit, so they can be resolved each on their own.
Errors present! Will resolve next commit.
Allows for compilation without needing to use ts, having incremental compilation (I think that's the name?) works when you mark types as types when exported from a module.
Some of the more strict TSConfig flags would require intent oversight, as it would change concepts of how the code functions, which I don't want to mangle with specifically. And I don't want to introduce a whole large list of sweeping changes either.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This enables project-wide TSConfig type checking, and fixes various errors and warnings which arose after enabling it.