Skip to content

Commit

Permalink
Use npm in hook
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Sep 17, 2018
1 parent 1cec0c0 commit 850068e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotgit/hooks/pre-commit-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 850068e

Please sign in to comment.