Skip to content

Commit a7cae83

Browse files
committed
Bump deps
1 parent 490f3de commit a7cae83

File tree

12 files changed

+305
-238
lines changed

12 files changed

+305
-238
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In your Vite config:
1414

1515
```ts
1616
import { defineConfig } from "vite";
17-
import react from "@vitejs/plugin-react-swc"; // or @vitejs/plugin-react
17+
import react from "@vitejs/plugin-react"; // or @vitejs/plugin-react-swc
1818
import { reactClickToComponent } from "vite-plugin-react-click-to-component";
1919

2020
export default defineConfig({

bun.lock

Lines changed: 116 additions & 126 deletions
Large diffs are not rendered by default.

eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import baseConfig from "@arnaud-barre/eslint-config";
2-
import tseslint from "typescript-eslint";
2+
import { defineConfig } from "eslint/config";
33

4-
export default tseslint.config(...baseConfig);
4+
export default defineConfig(...baseConfig);

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,27 @@
99
"dev": "scripts/bundle.ts --dev",
1010
"build": "scripts/bundle.ts",
1111
"tsc": "tsl",
12-
"lint": "bun lint-ci --fix --cache",
13-
"lint-ci": "eslint --max-warnings 0",
12+
"lint": "eslint --max-warnings 0",
1413
"prettier": "bun prettier-ci --write",
1514
"prettier-ci": "prettier --ignore-path=.gitignore --check '**/*.{ts,tsx,html,css,json,md,yml}'",
16-
"ci": "tsl && bun run build && bun lint-ci && bun prettier-ci && cd playground && tsc && bun lint-ci && cd ../dist && bun publint"
15+
"ci": "tsl && bun run build && bun lint && bun prettier-ci && cd playground && tsc && bun lint && cd ../dist && bun publint"
1716
},
1817
"prettier": {
19-
"trailingComma": "all"
18+
"experimentalOperatorPosition": "start"
2019
},
2120
"peerDependencies": {
2221
"react": "^18.3.1 || ^19.0.0",
2322
"vite": "^7"
2423
},
2524
"devDependencies": {
26-
"@arnaud-barre/eslint-config": "6.0.0",
27-
"@arnaud-barre/tsl-config": "^0.1.0",
28-
"@arnaud-barre/tnode": "^0.25.0",
29-
"@types/node": "^20.17.8",
30-
"eslint": "^9.29.0",
31-
"prettier": "3.0.3",
32-
"publint": "^0.3.12",
33-
"tsl": "^1.0.17",
34-
"typescript": "~5.8.3",
25+
"@arnaud-barre/eslint-config": "^6.1.2",
26+
"@arnaud-barre/tsl-config": "^0.1.1",
27+
"@types/node": "^22.17.8",
28+
"eslint": "^9.36.0",
29+
"prettier": "^3.6.2",
30+
"publint": "^0.3.13",
31+
"tsl": "^1.0.25",
32+
"typescript": "~5.9.2",
3533
"vite": "^7.0.0"
3634
}
3735
}

playground/bun.lock

Lines changed: 157 additions & 74 deletions
Large diffs are not rendered by default.

playground/eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import baseConfig from "@arnaud-barre/eslint-config";
2-
import tseslint from "typescript-eslint";
2+
import { defineConfig } from "eslint/config";
33

4-
export default tseslint.config(...baseConfig);
4+
export default defineConfig(...baseConfig);

playground/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"scripts": {
66
"postinstall": "rm -rf node_modules/vite",
77
"dev": "vite",
8-
"lint-ci": "eslint --max-warnings 0"
8+
"lint": "eslint --max-warnings 0"
99
},
1010
"dependencies": {
1111
"react": "^19.0.0",
12-
"react-dom": "^19.0.0",
13-
"vite-plugin-restart": "^0.4.2"
12+
"react-dom": "^19.0.0"
1413
},
1514
"devDependencies": {
1615
"@types/react-dom": "^19.0.2",
17-
"@vitejs/plugin-react-swc": "^3.7.2"
16+
"@vitejs/plugin-react": "^5.0.3",
17+
"vite-plugin-restart": "^1.0.0"
1818
}
1919
}

playground/tsconfig.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
{
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
4-
"target": "ES2021",
5-
"useDefineForClassFields": true,
4+
"target": "ES2022",
65
"jsx": "react-jsx",
76
"module": "ESNext",
8-
"lib": ["ES2021", "DOM", "DOM.Iterable"],
7+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
98
"types": ["vite/client"],
9+
"skipLibCheck": true,
1010

1111
/* Bundler mode */
1212
"moduleResolution": "bundler",
1313
"allowImportingTsExtensions": true,
14-
"resolveJsonModule": true,
1514
"verbatimModuleSyntax": true,
15+
"erasableSyntaxOnly": true,
1616
"noEmit": true,
1717

1818
/* Linting */
19-
"skipLibCheck": true,
2019
"strict": true,
21-
"noUnusedLocals": true,
22-
"noUnusedParameters": true,
2320
"noFallthroughCasesInSwitch": true,
2421
"useUnknownInCatchVariables": true,
22+
"noUncheckedSideEffectImports": true,
2523
"noPropertyAccessFromIndexSignature": true
2624
}
2725
}

playground/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from "vite";
2-
import react from "@vitejs/plugin-react-swc";
2+
import react from "@vitejs/plugin-react";
33
import { reactClickToComponent } from "../dist/index.js";
44
import restart from "vite-plugin-restart";
55

scripts/bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/env tnode
1+
#!/usr/bin/env node
22
import { execSync } from "node:child_process";
33
import { rmSync, writeFileSync } from "node:fs";
44
import { build, type BuildOptions, context } from "esbuild";
55

6-
import packageJSON from "../package.json";
6+
import packageJSON from "../package.json" with { type: "json" };
77

88
const dev = process.argv.includes("--dev");
99

0 commit comments

Comments
 (0)