From 82a4392ab7190ce9b82acd9e32827d2883a2abda Mon Sep 17 00:00:00 2001 From: Alain Olivier Date: Thu, 14 Sep 2023 16:49:01 +0200 Subject: [PATCH] chore(husky): create dedicated commit message hook for commitlint --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..0bd658f --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 3a52771..36af219 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,3 @@ . "$(dirname "$0")/_/husky.sh" npx lint-staged -npx --no-install commitlint --edit "$1" \ No newline at end of file