Files
adyen-web/packages/lib/.husky/pre-commit
António Ferreira 798fdaeb2e Feature Prettier pre commit hook (#1869)
* Adds prettier as pre-commit hook

* adds pre-commit hook

* updated pre-commit hook

* feat: updated root package json

* feat: fixed missing config

* feat: adjusted prettier file type

Co-authored-by: guilhermer <guilherme.ribeiro@adyen.com>
2023-01-20 16:24:50 +01:00

13 lines
334 B
Bash
Executable File

#!/bin/sh
#. "$(dirname "$0")/_/husky.sh"
# helper if you are running repo inside a container
if which vagrant; then
vagrant ssh -- -t <<HEREDOC
cd workspace/adyen-web/packages/lib;
echo "head -n -1 ~/.bashrc > temp.txt ; mv temp.txt ~/.bashrc && npx lint-staged;" >> ~/.bashrc;
/bin/bash -i
HEREDOC
else
npx lint-staged
fi