Skip to content

Commit

Permalink
Make jsx: react-jsx the default for new Convex projects (#27215)
Browse files Browse the repository at this point in the history
Start new Convex projects out with `"jsx": "react-jsx"` in the tsconfig.json file.

GitOrigin-RevId: 2430f02d35e8bce3700a333467583074cf3551ac
  • Loading branch information
thomasballinger authored and Convex, Inc. committed Jun 20, 2024
1 parent 5b27d97 commit 6208338
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli/codegen_templates/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ export function tsconfigCodegen() {
"allowJs": true,
"strict": true,
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
/* These compiler options are required by Convex */
"target": "ESNext",
"lib": ["ES2021", "dom"],
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"module": "ESNext",
"isolatedModules": true,
"skipLibCheck": true,
"noEmit": true,
},
"include": ["./**/*"],
Expand Down

0 comments on commit 6208338

Please sign in to comment.