A wrapper/bootstrap script for pre-commit for npm/yarn.
$ yarn add pre-commit-wrapper-npm --devMake sure to remember to install the pre-commit hook to your local repo:
$ pre-commit install -f --install-hooksThat's it! You can configure pre-commit as normal, following the docs.
(The pre-commit executable is available via ./node_modules/.bin/pre-commit)