From 3df8f6d67f3bace95f1bcd0d296fa3430718d2ac Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 17 Jan 2026 03:07:51 +0900 Subject: modified .claude/settings.local.json --- default/.claude/settings.local.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'default/.claude/settings.local.json') diff --git a/default/.claude/settings.local.json b/default/.claude/settings.local.json index 1ecd1bb..8bb3dba 100644 --- a/default/.claude/settings.local.json +++ b/default/.claude/settings.local.json @@ -123,7 +123,7 @@ "hooks": [ { "type": "command", - "command": "sh -c 'file=\"$(echo \"$STDIN\" | jq -r .tool_input.file_path)\"; if [[ \"$file\" == *.tsx ]] || [[ \"$file\" == *.jsx ]]; then ext=\"${file##*.}\"; if grep -q \"useState\\|useEffect\\|useReducer\\|useCallback\\|useMemo\" \"$file\" 2>/dev/null; then if ! grep -q \"^['\\\"]use client['\\\"]\" \"$file\" 2>/dev/null; then echo \"⚠️ Warning: Client hooks detected. Add \\'use client\\' directive if needed.\"; fi; fi; fi'" + "command": "sh -c 'file=$(echo \"$STDIN\" | jq -r .tool_input.file_path); case \"$file\" in *.tsx|*.jsx) if [ -f \"$file\" ] && grep -qE \"useState|useEffect|useReducer|useCallback|useMemo\" \"$file\" 2>/dev/null; then if ! grep -q \"use client\" \"$file\" 2>/dev/null; then echo \"Warning: Client hooks detected. Add use client directive if needed.\"; fi; fi;; esac'" } ] }, @@ -132,7 +132,7 @@ "hooks": [ { "type": "command", - "command": "sh -c 'cmd=\"$(echo \"$STDIN\" | jq -r .tool_input.command)\"; if echo \"$cmd\" | grep -q \"^npm install\\|^yarn add\\|^pnpm add\"; then echo \"📦 Installing dependencies - checking for Next.js compatibility...\"; fi'" + "command": "sh -c 'cmd=$(echo \"$STDIN\" | jq -r .tool_input.command); case \"$cmd\" in \"npm install\"*|\"yarn add\"*|\"pnpm add\"*) echo \"Installing dependencies - checking for Next.js compatibility...\";; esac'" } ] } @@ -143,7 +143,7 @@ "hooks": [ { "type": "command", - "command": "sh -c 'file=\"$(echo \"$STDIN\" | jq -r .tool_input.file_path)\"; if [[ \"$file\" == app/**/page.tsx ]] || [[ \"$file\" == app/**/page.jsx ]]; then dir=\"$(dirname \"$file\")\"; if [ ! -f \"$dir/loading.tsx\" ] && [ ! -f \"$dir/loading.jsx\" ]; then echo \"💡 Tip: Consider adding a loading.tsx for better UX\"; fi; if [ ! -f \"$dir/error.tsx\" ] && [ ! -f \"$dir/error.jsx\" ]; then echo \"💡 Tip: Consider adding an error.tsx for error handling\"; fi; fi'" + "command": "sh -c 'file=$(echo \"$STDIN\" | jq -r .tool_input.file_path); case \"$file\" in app/*/page.tsx|app/*/page.jsx) dir=$(dirname \"$file\"); if [ ! -f \"$dir/loading.tsx\" ] && [ ! -f \"$dir/loading.jsx\" ]; then echo \"Tip: Consider adding a loading.tsx for better UX\"; fi; if [ ! -f \"$dir/error.tsx\" ] && [ ! -f \"$dir/error.jsx\" ]; then echo \"Tip: Consider adding an error.tsx for error handling\"; fi;; esac'" } ] }, @@ -152,7 +152,7 @@ "hooks": [ { "type": "command", - "command": "sh -c 'file=\"$(echo \"$STDIN\" | jq -r .tool_input.file_path)\"; if [[ \"$file\" == *.ts ]] || [[ \"$file\" == *.tsx ]]; then if which prettier >/dev/null 2>&1; then prettier --write \"$file\" 2>/dev/null || true; fi; fi'" + "command": "sh -c 'file=$(echo \"$STDIN\" | jq -r .tool_input.file_path); case \"$file\" in *.ts|*.tsx) if command -v prettier >/dev/null 2>&1; then prettier --write \"$file\" 2>/dev/null || true; fi;; esac'" } ] } @@ -163,7 +163,7 @@ "hooks": [ { "type": "command", - "command": "sh -c 'if [ -f \"package.json\" ] && [ -d \"app\" ]; then echo \"🚀 Next.js Tip: Run \\`npm run dev\\` to start the development server\"; if [ -f \"tsconfig.json\" ]; then echo \"📝 Run \\`npm run type-check\\` to verify TypeScript types\"; fi; fi'" + "command": "sh -c 'if [ -f package.json ] && [ -d app ]; then echo \"Next.js Tip: Run npm run dev to start the development server\"; if [ -f tsconfig.json ]; then echo \"Run npm run type-check to verify TypeScript types\"; fi; fi'" } ] } -- cgit v1.2.3