Skip to content

Add useUnknownInCatchVariables -> recommended - #2251

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:v2from
jablko:patch-24
May 18, 2023
Merged

Add useUnknownInCatchVariables -> recommended#2251
Jake Bailey (jakebailey) merged 1 commit into
microsoft:v2from
jablko:patch-24

Conversation

@jablko

Copy link
Copy Markdown
Contributor

Pull the recommended options from ts.defaultInitCompilerOptions and ts.optionDeclarations[].strictFlag, to pick up future updates, like defaultsForOptions and allowedValues do.

Currently, the only difference is that useUnknownInCatchVariables is missing (this change adds it -> recommended).

--init doesn't include exactOptionalPropertyTypes yet.

@jablko

Copy link
Copy Markdown
Contributor Author

I think the CI failure is fixed by microsoft/TypeScript-Website-Localizations#135?

@orta Orta Therox (orta) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think defaulting to anything we recommend in --init and --strict is a good call 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants