Files
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 line
923 B
JSON

{"content": "{\n \"description\": \"Automatically run linting tools after file modifications. Supports ESLint for JavaScript/TypeScript, Pylint for Python, and RuboCop for Ruby.\",\n \"hooks\": {\n \"PostToolUse\": [\n {\n \"matcher\": \"Edit|MultiEdit\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"if [[ \\\"$CLAUDE_TOOL_FILE_PATH\\\" == *.js || \\\"$CLAUDE_TOOL_FILE_PATH\\\" == *.ts || \\\"$CLAUDE_TOOL_FILE_PATH\\\" == *.jsx || \\\"$CLAUDE_TOOL_FILE_PATH\\\" == *.tsx ]]; then npx eslint \\\"$CLAUDE_TOOL_FILE_PATH\\\" --fix 2>/dev/null || true; elif [[ \\\"$CLAUDE_TOOL_FILE_PATH\\\" == *.py ]]; then pylint \\\"$CLAUDE_TOOL_FILE_PATH\\\" 2>/dev/null || true; elif [[ \\\"$CLAUDE_TOOL_FILE_PATH\\\" == *.rb ]]; then rubocop \\\"$CLAUDE_TOOL_FILE_PATH\\\" --auto-correct 2>/dev/null || true; fi\"\n }\n ]\n }\n ]\n }\n}"}