Skip to content

Commit

Permalink
build: git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Aug 16, 2023
1 parent 349202c commit 1dccd4e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
commit-msg:
commands:
commitlint:
run: npx --no-install commitlint --edit
pre-commit:
commands:
test:
run: npm run test
22 changes: 22 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"lib/index.js"
],
"devDependencies": {
"@arkweid/lefthook": "0.7.7",
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "17.7.0",
"@types/eslint": "8.44.2",
Expand Down

0 comments on commit 1dccd4e

Please sign in to comment.