Skip to content

Commit

Permalink
Added husky
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Dec 10, 2023
1 parent 730cdb6 commit 95e18e5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test
npm run lint
16 changes: 16 additions & 0 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dev": "tsc --watch",
"test": "jest",
"test:dev": "jest --watch",
"lint": "eslint ."
"lint": "eslint .",
"prepare": "husky install"
},
"files": [
"/dist"
Expand All @@ -32,6 +33,7 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"husky": "^8.0.0"
}
}

0 comments on commit 95e18e5

Please sign in to comment.