Click in order · Vibe coding with Claude Code course · Module 8: Slack clone
Sorting: The Prettier hook command
Arrange the command of the hook that formats only the edited file:
Items to click
- npx prettier
- f=$(jq -r '.tool_input.file_path')
- &&
- "$f"
- --write --ignore-unknown
You can check the correct answer by solving this task in the CodeWorlds game.