chore(repo): add husky and prettier git hook
Some checks failed
Actions / Build and Push Documentation (push) Failing after 9s

This commit is contained in:
cswimr 2025-02-12 15:22:07 -06:00
parent b0e76a8ff7
commit e590637919
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 5 additions and 1 deletions

3
.husky/pre-commit Normal file
View 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

View file

@ -11,7 +11,8 @@
},
"scripts": {
"docs": "typedoc --options typedoc.jsonc",
"format": "bun prettier --write '**/*.{ts,json,md}'"
"format": "bun prettier --write '**/*.{ts,json,md}'",
"prepare": "husky"
},
"devDependencies": {
"@getmeli/cli": "1.2.0",