From 9adeb9179e62c6b1f9ab207f1351769486f87a64 Mon Sep 17 00:00:00 2001 From: nabeliwo Date: Tue, 12 Oct 2021 20:15:19 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20husky=20=E3=81=A7=20commitlint=20?= =?UTF-8?q?=E3=82=92=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3=20(#1960)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: husky で commitlint を実行するように変更 * chore: 余計なファイルを追加してしまったので削除 --- .husky/commit-msg | 4 ++++ .huskyrc | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100755 .husky/commit-msg delete mode 100644 .huskyrc diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000000..0bd658f496 --- /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/.huskyrc b/.huskyrc deleted file mode 100644 index 914cf42e25..0000000000 --- a/.huskyrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "hooks": { - "pre-commit": "lint-staged", - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } -}