Skip to content

Commit

Permalink
configure husky
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Nov 20, 2023
1 parent 52e13b0 commit 98e2d95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run pre-commit
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
"lint": "turbo run lint && manypkg check",
"format:check": "prettier --check .",
"format": "prettier --write . --list-different",
"pre-commit": "lint-staged",
"test": "turbo run test",
"test:watch": "turbo run test:watch",
"typecheck": "turbo run typecheck"
"typecheck": "turbo run typecheck",
"prepare": "husky install"
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx}": [
Expand All @@ -41,5 +43,8 @@
"prettier-plugin-tailwindcss": "^0.5.7",
"turbo": "^1.10.16",
"typescript": "^5.2.2"
},
"devDependencies": {
"husky": "^8.0.0"
}
}

1 comment on commit 98e2d95

@vercel
Copy link

@vercel vercel bot commented on 98e2d95 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.