Browse Source

fix: forward npm arguments in the pre-commit hook

pull/8155/head
sokol.biba 2 days ago
parent
commit
b3f50d7471
  1. 4
      .husky/pre-commit

4
.husky/pre-commit

@ -1,6 +1,6 @@
# Run linting and stop the commit process if any errors are found # Run linting and stop the commit process if any errors are found
# --quiet suppresses warnings (temporary until all warnings are fixed) # --quiet suppresses warnings (temporary until all warnings are fixed)
npm run affected:lint --base=main --head=HEAD --parallel=2 --quiet || exit 1 npm run affected:lint -- --base=main --head=HEAD --parallel=2 --quiet || exit 1
# Check formatting on modified and uncommitted files, stop the commit if issues are found # Check formatting on modified and uncommitted files, stop the commit if issues are found
npm run format:check --uncommitted || exit 1 npm run format:check -- --uncommitted || exit 1

Loading…
Cancel
Save