Skip to content

Commit fc945ee

Browse files
committed
fix: react
1 parent ea0ad96 commit fc945ee

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"@types/mdx-js__react": "^1.5.2",
5757
"@types/node": "^14.6.4",
5858
"@types/parse-numeric-range": "^0.0.1",
59+
"@types/prop-types": "^15.7.15",
5960
"@types/react": "^19.2.14",
6061
"@types/react-dom": "^19.2.3",
6162
"@typescript-eslint/eslint-plugin": "^5.36.2",

tsconfig.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,48 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
3+
"target": "ES2020",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
96
"allowJs": true,
107
"skipLibCheck": true,
118
"strict": true,
9+
1210
"noImplicitAny": true,
1311
"noImplicitReturns": true,
1412
"noImplicitThis": true,
1513
"strictNullChecks": true,
14+
1615
"forceConsistentCasingInFileNames": true,
1716
"noEmit": true,
17+
1818
"esModuleInterop": true,
1919
"module": "esnext",
20-
"moduleResolution": "node",
20+
"moduleResolution": "bundler",
21+
2122
"resolveJsonModule": true,
2223
"isolatedModules": true,
23-
"jsx": "preserve",
24+
25+
"jsx": "react-jsx",
26+
2427
"baseUrl": "src",
28+
2529
"incremental": true,
30+
31+
"types": ["react", "react-dom", "node"],
32+
2633
"plugins": [
2734
{
2835
"name": "next"
2936
}
3037
]
3138
},
39+
3240
"include": [
3341
"next-env.d.ts",
3442
"src/**/*.ts",
3543
"src/**/*.tsx",
3644
".next/types/**/*.ts"
3745
],
38-
"exclude": [
39-
"node_modules"
40-
]
41-
}
46+
47+
"exclude": ["node_modules"]
48+
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,11 @@
13631363
resolved "https://registry.yarnpkg.com/@types/parse-numeric-range/-/parse-numeric-range-0.0.1.tgz#1a807487565a753f486cb3ee4b2145937d49759d"
13641364
integrity sha512-nI3rPGKk8BxedokP2VilnW5JyZHYNjGCUDsAZ2JQgISgDflHNUO0wXMfGYP8CkihrKYDm5tilD52XfGhO/ZFCA==
13651365

1366+
"@types/prop-types@^15.7.15":
1367+
version "15.7.15"
1368+
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.15.tgz#e6e5a86d602beaca71ce5163fadf5f95d70931c7"
1369+
integrity sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==
1370+
13661371
"@types/react-dom@^19.2.3":
13671372
version "19.2.3"
13681373
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.2.3.tgz#c1e305d15a52a3e508d54dca770d202cb63abf2c"

0 commit comments

Comments
 (0)