Skip to content

Commit 353fb5f

Browse files
chore: recreate vite example 2026-06-12 (#124)
1 parent 62c4ec6 commit 353fb5f

17 files changed

Lines changed: 2797 additions & 3162 deletions

examples/web-vite/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25-
2625
# Reassure output directory
2726
.reassure

examples/web-vite/README-orig.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

examples/web-vite/eslint.config.js

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,20 @@ import globals from 'globals'
33
import reactHooks from 'eslint-plugin-react-hooks'
44
import reactRefresh from 'eslint-plugin-react-refresh'
55
import tseslint from 'typescript-eslint'
6+
import { defineConfig, globalIgnores } from 'eslint/config'
67

7-
export default tseslint.config(
8-
{ ignores: ['dist'] },
8+
export default defineConfig([
9+
globalIgnores(['dist']),
910
{
10-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
1111
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs.flat.recommended,
16+
reactRefresh.configs.vite,
17+
],
1218
languageOptions: {
13-
ecmaVersion: 2020,
1419
globals: globals.browser,
1520
},
16-
plugins: {
17-
'react-hooks': reactHooks,
18-
'react-refresh': reactRefresh,
19-
},
20-
rules: {
21-
...reactHooks.configs.recommended.rules,
22-
'react-refresh/only-export-components': [
23-
'warn',
24-
{ allowConstantExport: true },
25-
],
26-
},
2721
},
28-
)
22+
])

examples/web-vite/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
7+
<title>web-vite</title>
88
</head>
99
<body>
1010
<div id="root"></div>

examples/web-vite/jest-setup.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import { configure } from 'reassure';
2+
import { configure as configureRtc } from 'react-test-config';
23

34
configure({ testingLibrary: 'react' });
5+
configureRtc({
6+
enableOwnerStacks: false,
7+
});

examples/web-vite/package.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "web-vite",
33
"private": true,
4-
"version": "1.0.0",
4+
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -13,32 +13,35 @@
1313
"typecheck": "tsc --noEmit"
1414
},
1515
"dependencies": {
16-
"react": "^19.1.0",
17-
"react-dom": "^19.1.0"
16+
"react": "^19.2.6",
17+
"react-dom": "^19.2.6"
1818
},
1919
"devDependencies": {
20+
"@babel/core": "^7.27.2",
2021
"@babel/preset-env": "^7.27.2",
2122
"@babel/preset-react": "^7.27.1",
2223
"@babel/preset-typescript": "^7.27.1",
23-
"@eslint/js": "^9.25.0",
24+
"@eslint/js": "^10.0.1",
2425
"@testing-library/dom": "^10.4.0",
2526
"@testing-library/react": "^16.3.0",
2627
"@types/babel__preset-env": "^7",
2728
"@types/jest": "^30.0.0",
28-
"@types/react": "^19.1.2",
29-
"@types/react-dom": "^19.1.2",
30-
"@vitejs/plugin-react": "^4.4.1",
29+
"@types/node": "^24.12.3",
30+
"@types/react": "^19.2.14",
31+
"@types/react-dom": "^19.2.3",
32+
"@vitejs/plugin-react": "^6.0.1",
3133
"danger": "^13.0.4",
32-
"eslint": "^9.25.0",
33-
"eslint-plugin-react-hooks": "^5.2.0",
34-
"eslint-plugin-react-refresh": "^0.4.19",
35-
"globals": "^16.0.0",
34+
"eslint": "^10.3.0",
35+
"eslint-plugin-react-hooks": "^7.1.1",
36+
"eslint-plugin-react-refresh": "^0.5.2",
37+
"globals": "^17.6.0",
3638
"jest": "^30.0.2",
3739
"jest-environment-jsdom": "^30.0.2",
40+
"react-test-config": "^0.1.0",
3841
"reassure": "^1.5.1",
39-
"typescript": "~5.8.3",
40-
"typescript-eslint": "^8.30.1",
41-
"vite": "^6.3.5"
42+
"typescript": "~6.0.2",
43+
"typescript-eslint": "^8.59.2",
44+
"vite": "^8.0.12"
4245
},
4346
"packageManager": "yarn@4.9.2"
4447
}
Lines changed: 1 addition & 0 deletions
Loading

examples/web-vite/public/icons.svg

Lines changed: 24 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)