Files
everything-claude-code/.kiro/hooks/auto-format.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
450 B
Plaintext

{
"name": "auto-format",
"version": "1.0.0",
"enabled": true,
"description": "Automatically format TypeScript and JavaScript files on save",
"when": {
"type": "fileEdited",
"patterns": ["*.ts", "*.tsx", "*.js"]
},
"then": {
"type": "askAgent",
"prompt": "A TypeScript or JavaScript file was just saved. If there are any obvious formatting issues (indentation, trailing whitespace, import ordering), fix them now."
}
}