ci: move captainhook command before other commands in pre-commit hook

This commit is contained in:
Yassine Doghri 2021-05-24 16:43:05 +00:00
parent 278b6c5a82
commit a66805d440
No known key found for this signature in database
GPG Key ID: 3E7F89498B960C9F
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run typecheck
npx lint-staged
# CaptainHook 5.10.0
INTERACTIVE="--no-interaction"
vendor/bin/captainhook $INTERACTIVE --configuration=captainhook.json --bootstrap=vendor/autoload.php hook:pre-commit "$@" <&0
npm run typecheck
npx lint-staged