Files
everything-claude-code/.kiro/hooks/console-log-check.kiro.hook
Himanshu Sharma bacc585b87 Add Kiro steering files, hooks, and scripts (#812)
Co-authored-by: Sungmin Hong <hsungmin@amazon.com>
2026-03-22 21:55:47 -07:00

15 lines
533 B
Plaintext

{
"version": "1.0.0",
"enabled": true,
"name": "console-log-check",
"description": "Check for console.log statements in JavaScript and TypeScript files to prevent debug code from being committed.",
"when": {
"type": "fileEdited",
"patterns": ["*.js", "*.ts", "*.tsx"]
},
"then": {
"type": "askAgent",
"prompt": "A JavaScript or TypeScript file was just saved. Check if it contains any console.log statements that should be removed before committing. If found, flag them and offer to remove them."
}
}