Skip to content

Commit 01cc196

Browse files
author
Dylan Huang
committed
save
1 parent 0ff42c5 commit 01cc196

10 files changed

Lines changed: 1307 additions & 1803 deletions

File tree

vite-app/eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
import { globalIgnores } from 'eslint/config'
7+
8+
export default tseslint.config([
9+
globalIgnores(['dist']),
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs['recommended-latest'],
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
},
23+
])

vite-app/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Vite SPA Example</title>
8+
<link rel="stylesheet" href="/src/index.css">
89
</head>
910
<body>
1011
<div id="root"></div>

vite-app/package.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,23 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"react": "^18.2.0",
14-
"react-dom": "^18.2.0",
15-
"react-router-dom": "^6.8.1"
13+
"react": "^19.1.0",
14+
"react-dom": "^19.1.0",
15+
"react-router-dom": "^7.7.1"
1616
},
1717
"devDependencies": {
18-
"@types/react": "^18.0.28",
19-
"@types/react-dom": "^18.0.11",
20-
"@typescript-eslint/eslint-plugin": "^5.57.1",
21-
"@typescript-eslint/parser": "^5.57.1",
22-
"@vitejs/plugin-react": "^3.1.0",
23-
"eslint": "^8.38.0",
24-
"eslint-plugin-react": "^7.32.2",
25-
"eslint-plugin-react-hooks": "^4.6.0",
26-
"eslint-plugin-react-refresh": "^0.3.4",
27-
"typescript": "^5.0.2",
28-
"vite": "^4.2.0"
18+
"@eslint/js": "^9.30.1",
19+
"@tailwindcss/vite": "^4.1.11",
20+
"@types/react": "^19.1.8",
21+
"@types/react-dom": "^19.1.6",
22+
"@vitejs/plugin-react": "^4.6.0",
23+
"eslint": "^9.30.1",
24+
"eslint-plugin-react-hooks": "^5.2.0",
25+
"eslint-plugin-react-refresh": "^0.4.20",
26+
"globals": "^16.3.0",
27+
"tailwindcss": "^4.1.11",
28+
"typescript": "~5.8.3",
29+
"typescript-eslint": "^8.35.1",
30+
"vite": "^7.0.4"
2931
}
3032
}

0 commit comments

Comments
 (0)