Skip to content

Commit

Permalink
Aggiunto conventional commit (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
elgorditosalsero authored Sep 26, 2023
1 parent e161f21 commit f985e7e
Show file tree
Hide file tree
Showing 5 changed files with 2,347 additions and 107 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
extends: ['@commitlint/config-conventional']
}
1 change: 1 addition & 0 deletions .lefthook/commit-msg/commitlint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo $(head -n1 $1) | npx commitlint --color
4 changes: 4 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ pre-commit:
prettier:
glob: "*.md"
run: npm run format:write {staged_files}
commit-msg:
scripts:
"commitlint.sh":
runner: bash
pre-push:
commands:
format-check:
Expand Down
Loading

0 comments on commit f985e7e

Please sign in to comment.