Skip to content

Conversation

dynst
Copy link

@dynst dynst commented Sep 11, 2025

Per #15 (comment) base recommended on the new output of tsc --init in TS 5.9 (microsoft/TypeScript#61813)

Exception: downgrade the moving target nodenext to node20, and set the target field to the default target implied by node20 (es2023).

@jakebailey
Copy link
Collaborator

jakebailey commented Sep 13, 2025

One thing I'll note is that the --init options are targeted more or less toward new projects where it's not too hard to write code from scratch that passes these rules. But, these might be prety impactful changes for existing projects that already use this tsconfig.

I would probably consider limiting the number of changes. Unfortunately, I think basically everything here is a breakingish change. The module mode changing will cause imports to change (old commonjs is terrible), the target 2023 was chosen to effectively turn useDefineForClassFields on, and then the other options will cause more errors.

So, I don't know what should actually change 😅

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.

2 participants