chore(repo): add husky and prettier git hook
Some checks failed
Actions / Build and Push Documentation (push) Failing after 9s
Some checks failed
Actions / Build and Push Documentation (push) Failing after 9s
This commit is contained in:
parent
b0e76a8ff7
commit
e590637919
2 changed files with 5 additions and 1 deletions
3
.husky/pre-commit
Normal file
3
.husky/pre-commit
Normal file
|
@ -0,0 +1,3 @@
|
|||
echo "Running prettier on pre-commit hook"
|
||||
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
|
||||
git update-index --again
|
Reference in a new issue