Description
Add a Git pre-commit hook to automatically format Solidity and related files before each commit.
The setup should run Prettier on staged files, re-stage the formatted changes, and block the commit if formatting fails. This ensures consistent code style and prevents unformatted code from being committed.