Skip to content

Commit

Permalink
Merge pull request #4 from crypblizz8/feat/husky
Browse files Browse the repository at this point in the history
test: checking if precommits work
  • Loading branch information
crypblizz8 authored Sep 18, 2024
2 parents 9ff0cb5 + c4138a3 commit 7aba125
Show file tree
Hide file tree
Showing 5 changed files with 1,862 additions and 24 deletions.
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 bash

echo "Checking commit message..."
npx commitlint -g commitlint.config.mjs --verbose --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run pre-commit
6 changes: 6 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"body-max-line-length": [0, "always", Infinity],
},
};
Loading

0 comments on commit 7aba125

Please sign in to comment.