feat: add skipLibCheck
option in the TS template (defaults to true
)
#5688
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.
References:
tsc --init
Make skipLibCheck: true the default in --init microsoft/TypeScript#37808 noEmit and skipLibCheck should be on by default in TS compiler options jaredpalmer/tsdx#529 (comment)create-react-app
Speed up TypeScript projects facebook/create-react-app#5903skipLibCheck
to workspace tsconfig angular/angular-cli#16682 Don't enableskipLibCheck
in--strict
mode angular/angular-cli#16696Pros:
skipLibCheck
brings a better experience.Cons:
.d.ts
files, including the user-owned ones, which isn't ideal. We should turn on type checking for.d.ts
files in the project once TypeScript provides such an option.allowSyntheticDefaultImports:true
orskipLibCheck:true
in every React project? facebook/create-react-app#8964)/cc @cexbrayat
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
Other information: