Skip to content

Commit 5f826ca

Browse files
committed
feat: upgrade skip logic around directives
1 parent 0eb8a56 commit 5f826ca

8 files changed

Lines changed: 1027 additions & 13 deletions

File tree

.commitlintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
set -e
3+
4+
# Allow skipping via HUSKY=0 (e.g., in CI scripts that manage commits manually).
5+
if [ "${HUSKY-}" = "0" ]; then
6+
exit 0
7+
fi
8+
9+
npx --no -- commitlint --edit "$1"

0 commit comments

Comments
 (0)