Skip to content

Commit

Permalink
Merge pull request #14 from blastorg/conventional-commit-pre-commit-hook
Browse files Browse the repository at this point in the history
conventional commit pre commit hook
  • Loading branch information
fredrikj31 authored Dec 11, 2024
2 parents 1beaee4 + b360336 commit 80846c0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec commitlint --edit --extends @commitlint/config-conventional
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm run lint
npm run test
npm run build
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "jest",
"lint": "eslint ./src --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"prepare": "husky install"
"prepare": "husky"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -54,7 +54,7 @@
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.49.0",
"fastify": "^4.23.2",
"husky": "^8.0.3",
"husky": "^9.1.7",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"semantic-release-export-data": "^1.0.1",
Expand Down

0 comments on commit 80846c0

Please sign in to comment.