Husky can prevent you from bad git commit
, git push
and more. If you are getting this error check your code syntax, in case if you are getting this error even your code is valid. Please use the below command.
git commit -m "message" --no-verify
Another solution is to delete the .git/hook folder and then uninstall and reinstall husky. There are chances for conflicts with husky-generated files and .git/hook/ files.