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
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue