From 2fb148e15d37577fb5009d9d52308f8919cc625a Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Fri, 14 Feb 2025 11:36:15 -0400 Subject: [PATCH] fix: update commitlint and husky configurations (#131) --- .husky/commit-msg | 1 + .husky/pre-commit | 1 + commitlint.config.mjs | 1 + package.json | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit create mode 100644 commitlint.config.mjs diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..23a32ee --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx --no -- commitlint --config commitlint.config.mjs --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..1c723a1 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npx --no fluid-lint-all diff --git a/commitlint.config.mjs b/commitlint.config.mjs new file mode 100644 index 0000000..fa584fb --- /dev/null +++ b/commitlint.config.mjs @@ -0,0 +1 @@ +export default { extends: ["@commitlint/config-conventional"] }; diff --git a/package.json b/package.json index 491eb77..27ce649 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "lint": "fluid-lint-all", "start": "npm-run-all -l clean -p start:*", "start:webpack": "mix watch", - "start:eleventy": "cross-env NODE_ENV=development eleventy --serve" + "start:eleventy": "cross-env NODE_ENV=development eleventy --serve", + "prepare": "husky" }, "dependencies": { "@11ty/eleventy": "0.12.1",