Skip to content

Commit

Permalink
added commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sahinvardar committed Nov 22, 2023
1 parent 18afbd3 commit 2c13a5d
Show file tree
Hide file tree
Showing 2 changed files with 6 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 lint-staged
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"scripts": {
"build": "tsc --build",
"format": "prettier --plugin-search-dir . --write . && prettier-package-json --write && eslint --fix .",
"prepare": "husky install",
"repo-clean": "git clean -xdf -e .env",
"semantic-release": "semantic-release",
"watch": "tsc --build --watch"
Expand All @@ -43,7 +44,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-typescript-sort-keys": "^3.1.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"husky": "^8.0.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"prettier-package-json": "^2.8.0",
Expand Down

0 comments on commit 2c13a5d

Please sign in to comment.