feat(kiro): Create Prettier format on save hook#6872
Conversation
Adds a Prettier hook to format code on save.
|
There was a problem hiding this comment.
Pull request overview
Adds a Kiro hook intended to automatically run Prettier on files when they are saved, helping keep formatting consistent during development.
Changes:
- Introduces a
.kirohook configuration to triggerprettier --writeon file save.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Against hooks in the repo: Tested it — extremely annoying in practice. fileEdit triggers on every single change, so in a batch of 10 edits, Kiro waits for the hook command 10 times. |
what's the cost of running But I'll try it out first of all. |
Proposed changes
Adds a Prettier hook to format code on save.
Checklist
Code Quality
Validation
I have added/updated tests that cover my changesI have tested across all relevant frameworks (React, Angular, Vue) if applicableGeneral
feat:,fix:,chore:)packages/*folder, the correspondingAGENTS.mdhas been updated🔭🐙🐈 Test this branch here: https://design-system.deutschebahn.com/core-web/review/feat-kiro-Create-Prettier-format-on-save-hook