diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-16 08:30:14 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-16 08:30:14 +0900 |
| commit | 3fbb9a18372f2b6a675dd6c039ba52be76f3eeb4 (patch) | |
| tree | aa694a36cdd323a7853672ee7a2ba60409ac3b06 /mcp-servers/memory-mcp-server/.claude/hooks/lint-check.sh | |
updates
Diffstat (limited to 'mcp-servers/memory-mcp-server/.claude/hooks/lint-check.sh')
| -rwxr-xr-x | mcp-servers/memory-mcp-server/.claude/hooks/lint-check.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mcp-servers/memory-mcp-server/.claude/hooks/lint-check.sh b/mcp-servers/memory-mcp-server/.claude/hooks/lint-check.sh new file mode 100755 index 0000000..f298837 --- /dev/null +++ b/mcp-servers/memory-mcp-server/.claude/hooks/lint-check.sh @@ -0,0 +1,6 @@ +#!/bin/bash +input=$(cat) +file_path=$(echo "$input" | jq -r '.tool_input.file_path') +if [[ "$file_path" == *.ts || "$file_path" == *.js ]]; then + npm run lint --silent "$file_path" 2>&1 || true +fi
\ No newline at end of file |
