diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..d821bbc --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +. "$(dirname "$0")/_/husky.sh" + +npx commitlint --edit $1 + +exit 0 diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index 72c4429..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -npm test diff --git a/package.json b/package.json index 86d7378..9c8520a 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,11 @@ "typecheck": "pnpm run -r typecheck", "prepare": "husky" }, - "lint-staged": {}, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, - "husky": { - "hooks": { - "pre-commit": "lint-staged", - "commit-msg": "commitlint --edit $1" - } - }, "engines": { "node": "20.15.1", "pnpm": "9.4.0"