Skip to content

Commit 6384e10

Browse files
committed
upgrading vite and to react 19
1 parent 1a59c7c commit 6384e10

File tree

20 files changed

+8099
-18891
lines changed

20 files changed

+8099
-18891
lines changed

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

package-lock.json

Lines changed: 8011 additions & 18747 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "react-training-workshop",
3+
"private": true,
34
"version": "0.0.0",
5+
"type": "module",
46
"scripts": {
5-
"start": "node scripts/start.js",
7+
"start": "vite-node scripts/start.ts",
68
"kill-db-port": "node scripts/kill-db-port 3333",
7-
"template": "cd scripts && plop",
89
"install-remix": "cd remix && npm install",
910
"test": "jest"
1011
},
@@ -26,8 +27,8 @@
2627
"mobx-react": "^7.2.1",
2728
"mobx-react-lite": "^3.2.3",
2829
"prop-types": "^15.8.1",
29-
"react": "^18.2.0",
30-
"react-dom": "^18.2.0",
30+
"react": "^19.0.0-beta-1beb73de0f-20240503",
31+
"react-dom": "^19.0.0-beta-1beb73de0f-20240503",
3132
"react-hook-form": "^7.48.2",
3233
"react-icons": "^4.11.0",
3334
"react-popper": "^2.3.0",
@@ -37,23 +38,27 @@
3738
"redux-logger": "^3.0.6",
3839
"zod": "^3.22.2"
3940
},
41+
"overrides": {
42+
"@types/react": "npm:types-react@beta",
43+
"@types/react-dom": "npm:types-react-dom@beta"
44+
},
4045
"devDependencies": {
41-
"@babel/eslint-parser": "^7.16.5",
46+
"@types/concurrently": "^6.4.0",
47+
"@types/react": "npm:types-react@beta",
48+
"@types/react-dom": "npm:types-react-dom@beta",
49+
"@types/readline-sync": "^1.4.8",
50+
"@types/shelljs": "^0.8.15",
4251
"@testing-library/jest-dom": "^5.16.2",
4352
"@testing-library/react": "^13.1.1",
4453
"@types/jest": "^27.4.0",
45-
"@types/markdown-it": "^12.2.3",
46-
"@types/node": "^16.11.1",
47-
"@types/react": "^18.0.26",
48-
"@types/react-dom": "^18.0.10",
49-
"@typescript-eslint/eslint-plugin": "^5.8.0",
50-
"@typescript-eslint/parser": "^5.9.0",
51-
"@vitejs/plugin-react": "^1.0.0",
54+
"@typescript-eslint/eslint-plugin": "^7.2.0",
55+
"@typescript-eslint/parser": "^7.2.0",
56+
"@vitejs/plugin-react": "^4.2.1",
5257
"autoprefixer": "^10.4.14",
5358
"concurrently": "^6.3.0",
54-
"eslint-config-react-app": "^7.0.0",
55-
"eslint-plugin-react": "^7.27.1",
56-
"eslint-plugin-react-hooks": "^4.4.0",
59+
"eslint": "^8.57.0",
60+
"eslint-plugin-react-hooks": "^4.6.0",
61+
"eslint-plugin-react-refresh": "^0.4.6",
5762
"find-process": "^1.4.5",
5863
"jest": "^27.5.1",
5964
"mock-match-media": "^0.3.0",
@@ -63,20 +68,9 @@
6368
"shelljs": "^0.8.5",
6469
"tailwindcss": "^3.3.2",
6570
"ts-jest": "^27.1.3",
66-
"typescript": "^4.5.2",
67-
"vite": "^2.9.13"
68-
},
69-
"eslintConfig": {
70-
"extends": "react-app",
71-
"plugins": [
72-
"react-hooks"
73-
],
74-
"rules": {
75-
"no-unused-vars": "off",
76-
"@typescript-eslint/no-unused-vars": "off",
77-
"react-hooks/rules-of-hooks": "error",
78-
"react-hooks/exhaustive-deps": "warn"
79-
}
71+
"typescript": "^5.2.2",
72+
"vite": "^5.2.0",
73+
"vite-node": "^1.6.0"
8074
},
8175
"prettier": {
8276
"printWidth": 100,

react/_full-app/tailwind.config.js renamed to react/_full-app/tailwind.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import colors from 'tailwindcss/colors'
44

5-
// eslint-disable-next-line import/no-anonymous-default-export
6-
export default {
5+
export const config = {
76
// We go up a directory from _full-app to capture all the lessons
87
content: ['./index.html', '../**/*.{js,ts,jsx,tsx}'],
98
theme: {
@@ -24,3 +23,5 @@ export default {
2423
},
2524
plugins: [],
2625
}
26+
27+
export default config

0 commit comments

Comments
 (0)