Skip to content

Commit 3e64fd5

Browse files
thomasballingerConvex, Inc.
authored andcommitted
Make jsx: react-jsx the default for new Convex projects (#27215)
Start new Convex projects out with `"jsx": "react-jsx"` in the tsconfig.json file. GitOrigin-RevId: 2430f02d35e8bce3700a333467583074cf3551ac
1 parent a922b68 commit 3e64fd5

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

demo/convex/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
"allowJs": true,
99
"strict": true,
1010
"moduleResolution": "Bundler",
11+
"jsx": "react-jsx",
12+
"skipLibCheck": true,
13+
"allowSyntheticDefaultImports": true,
1114

1215
/* These compiler options are required by Convex */
1316
"target": "ESNext",
1417
"lib": ["ES2021", "dom"],
1518
"forceConsistentCasingInFileNames": true,
16-
"allowSyntheticDefaultImports": true,
1719
"module": "ESNext",
1820
"isolatedModules": true,
19-
"skipLibCheck": true,
2021
"noEmit": true
2122
},
2223
"include": ["./**/*"],

npm-packages/convex/src/cli/codegen_templates/tsconfig.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ export function tsconfigCodegen() {
99
"allowJs": true,
1010
"strict": true,
1111
"moduleResolution": "Bundler",
12+
"jsx": "react-jsx",
13+
"skipLibCheck": true,
14+
"allowSyntheticDefaultImports": true,
1215
1316
/* These compiler options are required by Convex */
1417
"target": "ESNext",
1518
"lib": ["ES2021", "dom"],
1619
"forceConsistentCasingInFileNames": true,
17-
"allowSyntheticDefaultImports": true,
1820
"module": "ESNext",
1921
"isolatedModules": true,
20-
"skipLibCheck": true,
2122
"noEmit": true,
2223
},
2324
"include": ["./**/*"],

npm-packages/system-udfs/convex/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
"allowJs": true,
99
"strict": true,
1010
"moduleResolution": "Bundler",
11+
"jsx": "react-jsx",
12+
"skipLibCheck": true,
13+
"allowSyntheticDefaultImports": true,
1114

1215
/* These compiler options are required by Convex */
1316
"target": "ESNext",
1417
"lib": ["ES2021", "dom"],
1518
"forceConsistentCasingInFileNames": true,
16-
"allowSyntheticDefaultImports": true,
1719
"module": "ESNext",
1820
"isolatedModules": true,
19-
"skipLibCheck": true,
2021
"noEmit": true
2122
},
2223
"include": ["./**/*"],

npm-packages/udf-tests/convex/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
"allowJs": true,
99
"strict": true,
1010
"moduleResolution": "Bundler",
11+
"jsx": "react-jsx",
12+
"skipLibCheck": true,
13+
"allowSyntheticDefaultImports": true,
1114

1215
/* These compiler options are required by Convex */
1316
"target": "ESNext",
1417
"lib": ["ES2021", "dom"],
1518
"forceConsistentCasingInFileNames": true,
16-
"allowSyntheticDefaultImports": true,
1719
"module": "ESNext",
1820
"isolatedModules": true,
19-
"skipLibCheck": true,
2021
"noEmit": true
2122
},
2223
"include": ["./**/*"],

0 commit comments

Comments
 (0)