Skip to content

Commit 359bc83

Browse files
committed
Update vite and react
1 parent 3446171 commit 359bc83

File tree

6 files changed

+59
-93
lines changed

6 files changed

+59
-93
lines changed

eslint.config.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,21 @@ 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", "src/lib/json-parser", "src/components/ui"] },
8+
export default defineConfig([
9+
globalIgnores(["dist", "src/lib/json-parser", "src/components/ui"]),
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["recommended-latest"],
16+
reactRefresh.configs.vite,
17+
],
1218
languageOptions: {
1319
ecmaVersion: 2020,
1420
globals: globals.browser,
1521
},
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-
},
27-
}
28-
);
22+
},
23+
]);

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"jsonpath-js": "^0.3.0",
3333
"jsonpath-plus": "^10.3.0",
3434
"lucide-react": "^0.544.0",
35-
"react": "^18.3.1",
36-
"react-dom": "^18.3.1",
35+
"react": "^19.1.1",
36+
"react-dom": "^19.1.1",
3737
"react-github-btn": "^1.4.0",
3838
"react-share": "^5.2.2",
3939
"tailwind-merge": "^2.6.0",
@@ -45,8 +45,8 @@
4545
"@eslint/js": "^9.35.0",
4646
"@types/file-saver": "^2.0.7",
4747
"@types/node": "^22.13.14",
48-
"@types/react": "^18.3.18",
49-
"@types/react-dom": "^18.3.5",
48+
"@types/react": "^19.1.12",
49+
"@types/react-dom": "^19.1.9",
5050
"@vitejs/plugin-react": "^4.3.4",
5151
"autoprefixer": "^10.4.20",
5252
"eslint": "^9.35.0",
@@ -59,7 +59,7 @@
5959
"tailwindcss": "^3.4.17",
6060
"typescript": "~5.9.2",
6161
"typescript-eslint": "^8.43.0",
62-
"vite": "^6.2.6",
62+
"vite": "^7.1.5",
6363
"vitest": "^3.2.4"
6464
}
6565
}

tsconfig.app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"compilerOptions": {
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4-
"target": "ES2020",
4+
"target": "ES2022",
55
"useDefineForClassFields": true,
6-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
77
"module": "ESNext",
88
"skipLibCheck": true,
99

tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4-
"target": "ES2022",
4+
"target": "ES2023",
55
"lib": ["ES2023"],
66
"module": "ESNext",
77
"skipLibCheck": true,

vite.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@ export default defineConfig({
1010
"@": path.resolve(__dirname, "./src"),
1111
},
1212
},
13-
build: {
14-
target: ["es2022", "edge89", "firefox89", "chrome89", "safari15"],
15-
},
1613
});

0 commit comments

Comments
 (0)