Skip to content

Commit

Permalink
build(refactoring husky and commitlint install): improve the team com…
Browse files Browse the repository at this point in the history
…mits to be more informative

This will improve the teams' commits to the repo
  • Loading branch information
timDeHof committed Oct 11, 2023
1 parent a9f3858 commit bff84b1
Show file tree
Hide file tree
Showing 12 changed files with 4,438 additions and 992 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["@commitlint/config-conventional"] }
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npm test
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec < /dev/tty && node_modules/.bin/cz --hook || true
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

Loading

0 comments on commit bff84b1

Please sign in to comment.