Skip to content

Commit 58cabd0

Browse files
committed
fix: compilerOptions.jsx must be react-jsx warning
close #171
1 parent 93bed9e commit 58cabd0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tsconfig.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"esModuleInterop": true,
@@ -13,8 +17,10 @@
1317
"resolveJsonModule": true,
1418
"isolatedModules": true,
1519
"noEmit": true,
16-
"jsx": "react",
20+
"jsx": "react-jsx",
1721
"noFallthroughCasesInSwitch": true
1822
},
19-
"include": ["src"]
23+
"include": [
24+
"src"
25+
]
2026
}

0 commit comments

Comments
 (0)