Skip to content

Commit

Permalink
chore: configure commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisGorbachev committed Jul 21, 2024
1 parent 07661a3 commit 2f8544f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] }
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ npm install --global \
[email protected] \
[email protected] \
[email protected] \
[email protected]
[email protected] \
@commitlint/[email protected] \
@commitlint/[email protected]

cargo install --git https://github.com/DenisGorbachev/cargo-doc2readme --branch dev

Expand Down
2 changes: 2 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ pre-commit:
run: remark --ignore-path .gitignore --quiet --frail --no-stdout .
test-docs:
run: cargo test --doc
lint-commit:
run: commitlint --from HEAD~1 --to HEAD

0 comments on commit 2f8544f

Please sign in to comment.