update
This commit is contained in:
1 parent
b52e1017ad
commit
b15f1c0e5e
23 files changed
+145
-615
No files matched your search
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": "Write|Edit",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "jq -r '.tool_input.file_path' | { read -r f; echo \"$f\" | grep -qE '\\.(ts|tsx)$' && npx eslint --fix \"$f\"; } 2>/dev/null || true",
|
||||
"timeout": 30,
|
||||
"statusMessage": "Linting..."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user