diff --git a/dotgit/hooks/pre-commit-format.sh b/dotgit/hooks/pre-commit-format.sh index f0a900db..f24331a1 100755 --- a/dotgit/hooks/pre-commit-format.sh +++ b/dotgit/hooks/pre-commit-format.sh @@ -2,8 +2,8 @@ set -e -if ! yarn run lint; then - yarn run lint-fix +if ! npm run lint; then + npm run lint-fix echo "some files were not formatted correctly (prettier/eslint) commit aborted!" echo "your changes are still staged, you can accept formatting changes with git add or ignore them by adding --no-verify to git commit" exit 1