Prevent broken code from even reaching the server. Use a pre-commit hook to run linter and unit tests locally.
By placing a script in .git/hooks/pre-commit, you ensure that if tests fail, the commit is blocked. This creates a ‘Quality First’ culture in the development team.
