Skip to content

Commit

Permalink
add husky (#108)
Browse files Browse the repository at this point in the history
* add husky

* set .husky directory

* chore: Add pre-commit, pre-push

* chore: install lint-staged

* add pre-push

* remove pre-push
  • Loading branch information
Brokyeom authored Aug 15, 2024
1 parent 11efa7e commit 7b8cb9b
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 4 deletions.
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"

yarn lint-staged
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"publish-packages": "turbo run build lint && changeset publish"
"publish-packages": "turbo run build lint && changeset publish",
"prepare": "husky install"
},
"devDependencies": {
"eslint": "^8.48.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.9",
"prettier": "^3.0.3",
"tsconfig": "*",
"turbo": "latest"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,mdx}": [
"prettier --check"
]
},
"name": "makers-frontend",
"version": "1.0.0",
"packageManager": "yarn@1.22.17",
Expand Down
Loading

0 comments on commit 7b8cb9b

Please sign in to comment.