Skip to content

Commit a15cbb1

Browse files
committed
Update to Kit v5, Gill 0.14, gill-react latest
1 parent fec7335 commit a15cbb1

File tree

15 files changed

+307
-691
lines changed

15 files changed

+307
-691
lines changed

apps/example-dapp/biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": false,
3-
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
3+
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
44
"extends": ["@macalinao/biome-config/base", "@macalinao/biome-config/react"],
55
"linter": {
66
"domains": {

apps/example-dapp/eslint.config.js

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,12 @@
1-
import js from "@eslint/js";
2-
import { globalIgnores } from "eslint/config";
3-
import reactHooks from "eslint-plugin-react-hooks";
4-
import reactRefresh from "eslint-plugin-react-refresh";
5-
import globals from "globals";
6-
import tseslint from "typescript-eslint";
1+
import { configs } from "@macalinao/eslint-config-vite";
72

8-
export default tseslint.config([
9-
globalIgnores(["dist"]),
3+
export default [
4+
...configs.viteFull,
105
{
11-
files: ["**/*.{ts,tsx}"],
12-
extends: [
13-
js.configs.recommended,
14-
tseslint.configs.strictTypeChecked,
15-
tseslint.configs.stylisticTypeChecked,
16-
reactHooks.configs["recommended-latest"],
17-
reactRefresh.configs.vite,
18-
],
196
languageOptions: {
20-
ecmaVersion: "latest",
21-
globals: globals.browser,
227
parserOptions: {
23-
project: ["./tsconfig.json"],
248
tsconfigRootDir: import.meta.dirname,
259
},
2610
},
27-
// rules: {
28-
// "react-hooks/react-compiler": "error",
29-
// },
3011
},
31-
]);
12+
];

apps/example-dapp/package.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"@radix-ui/react-separator": "^1.1.7",
3535
"@radix-ui/react-slot": "^1.2.3",
3636
"@radix-ui/react-tooltip": "^1.2.8",
37-
"@solana-program/system": "^0.9.0",
38-
"@solana-program/token": "^0.7.0",
37+
"@solana-program/system": "^0.10.0",
38+
"@solana-program/token": "^0.8.0",
3939
"@solana-program/token-2022": "^0.6.0",
4040
"@solana/kit": "catalog:",
4141
"@solana/spl-token": "^0.4.14",
@@ -44,11 +44,11 @@
4444
"@solana/wallet-adapter-wallets": "^0.19.37",
4545
"@tailwindcss/vite": "^4.1.16",
4646
"@tanstack/react-query": "catalog:",
47-
"@tanstack/react-router": "^1.133.36",
47+
"@tanstack/react-router": "^1.134.15",
4848
"class-variance-authority": "^0.7.1",
4949
"clsx": "^2.1.1",
5050
"gill": "catalog:",
51-
"lucide-react": "^0.546.0",
51+
"lucide-react": "^0.553.0",
5252
"react": "catalog:",
5353
"react-dom": "catalog:",
5454
"react-hook-form": "^7.65.0",
@@ -60,25 +60,20 @@
6060
"@macalinao/grill": "workspace:^"
6161
},
6262
"devDependencies": {
63-
"@eslint/js": "^9.38.0",
6463
"@macalinao/biome-config": "^0.1.4",
65-
"@macalinao/eslint-config": "catalog:",
64+
"@macalinao/eslint-config-vite": "^2.0.1",
6665
"@macalinao/grill": "workspace:^",
6766
"@macalinao/tsconfig": "catalog:",
6867
"@tanstack/react-query-devtools": "^5.90.2",
69-
"@tanstack/react-router-devtools": "^1.133.36",
70-
"@tanstack/router-plugin": "^1.133.36",
68+
"@tanstack/react-router-devtools": "^1.134.15",
69+
"@tanstack/router-plugin": "^1.134.15",
7170
"@types/react": "catalog:",
7271
"@types/react-dom": "catalog:",
7372
"@vitejs/plugin-react": "^5.1.0",
7473
"eslint": "catalog:",
75-
"eslint-plugin-react-hooks": "^5.2.0",
76-
"eslint-plugin-react-refresh": "^0.4.24",
77-
"globals": "^16.4.0",
7874
"tailwindcss": "^4.1.16",
7975
"tw-animate-css": "^1.4.0",
8076
"typescript": "catalog:",
81-
"typescript-eslint": "^8.46.2",
8277
"vite": "^7.1.12",
8378
"vite-plugin-node-polyfills": "^0.24.0",
8479
"vite-tsconfig-paths": "^5.1.4"

apps/example-dapp/src/components/SimpleDashboard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export const SimpleDashboard: React.FC = () => {
108108
This example demonstrates how to use the Grill library with:
109109
</p>
110110
<ul className="list-disc pl-6 mt-2 space-y-1 text-sm text-muted-foreground">
111-
<li>SolanaClientProvider with gill's createSolanaClient</li>
111+
<li>
112+
SolanaClientProvider with gill&apos;s createSolanaClient
113+
</li>
112114
<li>
113115
GrillProvider with React Query for reactive account fetching
114116
</li>

apps/example-dapp/src/components/ui/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,9 @@ function SidebarMenuSkeleton({
615615
showIcon?: boolean;
616616
}) {
617617
// Random width between 50 to 90%.
618-
const width = React.useMemo(() => {
618+
const [width] = React.useState(() => {
619619
return `${(Math.floor(Math.random() * 40) + 50).toString()}%`;
620-
}, []);
620+
});
621621

622622
return (
623623
<div

apps/example-dapp/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { createRoot } from "react-dom/client";
44
import "./index.css";
55
import { App } from "./App.js";
66

7-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
87
createRoot(document.getElementById("root")!).render(
98
<StrictMode>
109
<App />

apps/example-dapp/src/routes/examples/static-tokens.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function StaticTokensPage() {
180180
Static Tokens (Would Load Instantly)
181181
</h2>
182182
<p className="text-sm text-muted-foreground mb-4">
183-
These tokens would normally be configured in GrillProvider's
183+
These tokens would normally be configured in GrillProvider&apos;s
184184
staticTokenInfo prop. They would load instantly without any chain
185185
fetching.
186186
</p>

apps/example-dapp/src/routes/examples/token-balances.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function TokenBalances() {
123123
<ul className="list-disc list-inside mt-1 ml-4">
124124
<li>Computing the ATA address for each token</li>
125125
<li>Fetching token metadata and decimals</li>
126-
<li>Returning zero balance if the ATA doesn't exist</li>
126+
<li>Returning zero balance if the ATA doesn&apos;t exist</li>
127127
<li>Formatting the balance with proper decimal places</li>
128128
</ul>
129129
</p>

biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
33
"extends": ["@macalinao/biome-config/base"]
44
}

0 commit comments

Comments
 (0)