While working on my project in TypeScript using Visual Code, I encountered a situation where I was able to commit and push my changes to the server through Git (Azure) even though there was an error in my code causing a build failure. It made me wonder if there is a way to set up a security measure that would automatically stop commits or pushes if there are TypeScript errors present in the code. Is such a feature possible?