Skip to content

docs: fix tsconfig "target" default value#3570

Open
zac1st1k wants to merge 1 commit into
microsoft:v2from
zac1st1k:fix-target-default-value
Open

docs: fix tsconfig "target" default value#3570
zac1st1k wants to merge 1 commit into
microsoft:v2from
zac1st1k:fix-target-default-value

Conversation

@zac1st1k
Copy link
Copy Markdown

This pull request updates the documentation and configuration logic for the default value of the TypeScript target option. The main change is to clarify that the default target is esnext when the module option is set to either nodenext or preserve, rather than just nodenext.

Documentation and configuration updates:

  • Updated the documentation in Compiler Options.md to state that the default target is esnext if module is nodenext or preserve, instead of only nodenext.
  • Updated the defaultsForOptions logic in tsconfigRules.ts to match the new documentation, reflecting that target defaults to esnext for both nodenext and preserve module options.

@zac1st1k
Copy link
Copy Markdown
Author

@zac1st1k
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@zac1st1k zac1st1k changed the title Fix tsconfig "target" default value docs: fix tsconfig "target" default value May 21, 2026
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.

1 participant