Skip to content

Commit ed64fd8

Browse files
committed
upgrade next and react
1 parent dd04930 commit ed64fd8

File tree

5 files changed

+235
-650
lines changed

5 files changed

+235
-650
lines changed

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,11 @@ module.exports = {
4848
'react-hooks/exhaustive-deps': 0,
4949

5050
semi: ['error', 'never'],
51+
"prettier/prettier": [
52+
"error",
53+
{
54+
"endOfLine": "auto"
55+
},
56+
],
5157
},
5258
}

next-env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"dependencies": {
2929
"border-box.css": "^1.0.0",
3030
"framer-motion": "^4.1.17",
31-
"next": "^11.1.2",
31+
"next": "^12.2.5",
3232
"normalize.css": "^8.0.1",
33-
"react": "^17.0.2",
34-
"react-dom": "^17.0.2",
33+
"react": "^18.2.0",
34+
"react-dom": "^18.2.0",
3535
"react-modal": "^3.14.3",
3636
"styled-components": "^5.3.3"
3737
},
@@ -45,8 +45,8 @@
4545
"@testing-library/react": "^12.1.2",
4646
"@testing-library/user-event": "^13.5.0",
4747
"@types/jest": "^27.0.2",
48-
"@types/react": "^17.0.30",
49-
"@types/react-dom": "^17.0.10",
48+
"@types/react": "^18.0.17",
49+
"@types/react-dom": "^18.0.6",
5050
"@types/react-modal": "^3.13.1",
5151
"@types/styled-components": "^5.1.15",
5252
"@typescript-eslint/eslint-plugin": "^5.19.0",

pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Home = () => (
2525
/>
2626
</Head>
2727
<App />
28-
<Script strategy="afterInteractive">{GA}</Script>
28+
<Script id="ga-script" strategy="afterInteractive">{GA}</Script>
2929
</>
3030
)
3131

0 commit comments

Comments
 (0)