Skip to content

Commit 5c6284d

Browse files
chore: configure commitlint
1 parent cff54f6 commit 5c6284d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

commitlint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ['@commitlint/config-conventional'] }

install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ npm install --global \
44
55
66
7-
7+
8+
@commitlint/[email protected] \
9+
@commitlint/[email protected]
810

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

lefthook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ pre-commit:
1919
run: remark --ignore-path .gitignore --quiet --frail --no-stdout .
2020
test-docs:
2121
run: cargo test --doc
22+
lint-commit:
23+
run: commitlint --from HEAD~1 --to HEAD

0 commit comments

Comments
 (0)