Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix#8529: Make default JSX mode "react" #58643

Closed
wants to merge 1 commit into from
Closed

fix#8529: Make default JSX mode "react" #58643

wants to merge 1 commit into from

Conversation

ItsAJ1005
Copy link

Explanation of Changes

  1. Adding jsx Option:

"jsx": "react"
This line sets the jsx option to "react", enabling JSX syntax for TypeScript files.

  1. Including .ts and .tsx Files:

"include": [
"/*.mjs",
"
/.cjs",
"**/
.ts",
"**/*.tsx"
]

These lines ensure that the compiler processes .ts and .tsx files, allowing you to use JSX syntax in .ts files and ensuring .tsx files are included in the compilation.

Fixes #

Explanation of Changes
1) Adding jsx Option:

"jsx": "react"
This line sets the jsx option to "react", enabling JSX syntax for TypeScript files.

2) Including .ts and .tsx Files:

"include": [
    "**/*.mjs",
    "**/*.cjs",
    "**/*.ts",
    "**/*.tsx"
]

These lines ensure that the compiler processes .ts and .tsx files, allowing you to use JSX syntax in .ts files and ensuring .tsx files are included in the compilation.
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label May 24, 2024
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@ItsAJ1005
Copy link
Author

Can someone please review my code?

@MartinJohns
Copy link
Contributor

I heavily doubt this is something the team wants. Why would you make this change?

@ItsAJ1005 ItsAJ1005 closed this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants