mirror of
https://github.com/jlengrand/adyen-web.git
synced 2026-03-10 08:01:22 +00:00
* 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>
13 lines
334 B
Bash
Executable File
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 |