From f8e47bf019dfde45924e206f17fd3146c3f2d628 Mon Sep 17 00:00:00 2001 From: khoilen Date: Sat, 11 Jan 2025 07:37:01 +0700 Subject: [PATCH] feat: update config commit lint --- .husky/commit-msg | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..ff36038 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +pnpm commitlint ${1} diff --git a/package.json b/package.json index 8b513d5..09e2dac 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "postinstall": "husky install" + "postinstall": "husky install", + "commitlint": "commitlint --edit" }, "repository": { "type": "git",