From 319c9ee51043caaf6c7ceb4153122ae081eafce0 Mon Sep 17 00:00:00 2001 From: "C. M. de Picciotto" Date: Tue, 19 Mar 2024 23:58:11 +0000 Subject: [PATCH] docs: improve husky configuration details in README.md [#1] --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 604d550..e53cbd5 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,10 @@ npx husky install npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}' ``` +> **Note** +> +> Starting from `husky@v9` instead of `npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'` use `echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg` + And you are ready to go! From now on, all messages from your commits will be validated to ensure they adhere to the format: ```