Skip to content

Update React tsconfigs to use new JSX transform #507

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

Merged
merged 5 commits into from
Apr 7, 2025

Conversation

teddybradford
Copy link
Contributor

For the eslint config boilerplate:

  • Use flat configs
  • Add jsx-runtime flat config
  • Use .ts extension for config file (the Jiti requirement is already a Vite dep)

For React tsconfigs:

  • Switch JSX transform from "preserve" to newer "react-jsx" (allows developers to omit React imports in component files)
  • Remove unnecessary React imports from boilerplates

@magne4000
Copy link
Member

@teddybradford thank you for this contribution!

@magne4000 magne4000 merged commit 9fd8f15 into vikejs:main Apr 7, 2025
13 of 14 checks passed
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