Skip to content

Commit

Permalink
Add husky hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed May 19, 2024
1 parent fd894c3 commit 2424920
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm run format
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm run format
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"preview": "astro preview",
"astro": "astro",
"format": "prettier --check .",
"format:fix": "prettier --write --list-different ."
"format:fix": "prettier --write --list-different .",
"prepare": "husky"
},
"dependencies": {
"@astrojs/check": "^0.7.0",
Expand All @@ -26,6 +27,7 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"husky": "^9.0.11",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.13.0"
}
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2424920

Please sign in to comment.