diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..4002db7 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npx --no -- commitlint --edit diff --git a/package-lock.json b/package-lock.json index 42c8076..e46d8db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25910,4 +25910,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index f6f8350..983fbce 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "scripts": { "test": "node --experimental-json-modules --no-warnings node_modules/mocha/bin/_mocha ./tests/*.* --full-trace", "lint": "eslint .", - "lint:fix": "eslint . --fix" + "lint:fix": "eslint . --fix", + "prepare": "husky install" }, "repository": { "type": "git",