From cdfd1cc5c34491052c6c010314a805e7b716065e Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Date: Sat, 30 Oct 2021 16:22:46 +0530 Subject: [PATCH 1/4] docs: update deprecated npx option --- docs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index cd74c1f99..9c1dabae3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -73,7 +73,7 @@ To add another hook use `husky add`. For example: ```shell -npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"' +npx husky add .husky/commit-msg 'npx --no commitlint --edit "$1"' ``` _For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/.bin/husky add ...` instead. This isn't an issue with husky code._ @@ -457,7 +457,7 @@ If you were calling directly locally installed binaries, **you need to run them ```shell # .husky/pre-commit (v7) # ... -npx --no-install jest +npx --no jest # or yarn jest ``` @@ -478,7 +478,7 @@ Previous `HUSKY_GIT_PARAMS` environment variable is replaced by native params `$ ```shell # .husky/commit-msg (v7) # ... -npx --no-install commitlint --edit $1 +npx --no commitlint --edit $1 # or yarn commitlint --edit $1 ``` From 8725a2d8203c86b7df127bd8597f103de8d3104a Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Date: Sat, 30 Oct 2021 16:59:40 +0530 Subject: [PATCH 2/4] docs: fix commitlint commands --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 9c1dabae3..fad16f494 100644 --- a/docs/README.md +++ b/docs/README.md @@ -73,7 +73,7 @@ To add another hook use `husky add`. For example: ```shell -npx husky add .husky/commit-msg 'npx --no commitlint --edit "$1"' +npx husky add .husky/commit-msg 'npx --no commitlint -- --edit "$1"' ``` _For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/.bin/husky add ...` instead. This isn't an issue with husky code._ @@ -478,7 +478,7 @@ Previous `HUSKY_GIT_PARAMS` environment variable is replaced by native params `$ ```shell # .husky/commit-msg (v7) # ... -npx --no commitlint --edit $1 +npx --no commitlint -- --edit $1 # or yarn commitlint --edit $1 ``` From 0bdfcad7d90c45098fb675a079f3367855a31b1a Mon Sep 17 00:00:00 2001 From: typicode Date: Thu, 28 Apr 2022 08:48:08 +0200 Subject: [PATCH 3/4] Update docs/README.md --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index fad16f494..cdcdff146 100644 --- a/docs/README.md +++ b/docs/README.md @@ -73,7 +73,7 @@ To add another hook use `husky add`. For example: ```shell -npx husky add .husky/commit-msg 'npx --no commitlint -- --edit "$1"' +npx husky add .husky/commit-msg 'npx --no commitlint --edit "$1"' ``` _For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/.bin/husky add ...` instead. This isn't an issue with husky code._ From b5e9463786b1ffaeeb3a66b8036382d48c0233ca Mon Sep 17 00:00:00 2001 From: typicode Date: Thu, 28 Apr 2022 08:48:14 +0200 Subject: [PATCH 4/4] Update docs/README.md --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index cdcdff146..9c1dabae3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -478,7 +478,7 @@ Previous `HUSKY_GIT_PARAMS` environment variable is replaced by native params `$ ```shell # .husky/commit-msg (v7) # ... -npx --no commitlint -- --edit $1 +npx --no commitlint --edit $1 # or yarn commitlint --edit $1 ```