I am looking to add an npm script that will run my linting and tests before svn commit happens.
If the linting or tests fail I'd like the commit to stop, just the same as it would with a git commit hook.
Does anyone know of a package? I have been searching with no real luck.
This would be an SVN pre-commit hook. The downside (IMO) in comparison to git is the hook code will run on the SVN server, whereas with git it would run on the local environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With