From 7822a2a6a692716dafce809c120a9518b69e480b Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 22 Mar 2021 22:05:48 +0100 Subject: [PATCH 1/2] docs: update getting started Starting with husky 5.2.0, `husky add ...` will append command or create a new file --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 74733ec513..a82e5f68c1 100644 --- a/README.md +++ b/README.md @@ -112,16 +112,6 @@ npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1" yarn husky add .husky/commit-msg "yarn commitlint --edit $1" ``` -If the file `.husky/commit-msg` already exists, you can edit the file and put this: - -```sh -# .husky/commit-msg -# ... -npx --no-install commitlint --edit $1 -# or -yarn commitlint --edit $1 -``` - **Detailed Setup instructions** - [Local setup](https://conventional-changelog.github.io/commitlint/#/guides-local-setup) - Lint messages on commit with husky From 0aa2d0afac58b4f7dcae35901148edfa2155a5ec Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 22 Mar 2021 22:19:17 +0100 Subject: [PATCH 2/2] docs: update guides-local-setup --- docs/guides-local-setup.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/guides-local-setup.md b/docs/guides-local-setup.md index 704328b7dd..96cc7353cc 100644 --- a/docs/guides-local-setup.md +++ b/docs/guides-local-setup.md @@ -38,16 +38,6 @@ npx husky add .husky/commit-msg 'npx --no-install commitlint --edit $1' yarn husky add .husky/commit-msg 'yarn commitlint --edit $1' ``` -If the file `.husky/commit-msg` already exists, you can edit the file and put this: - -```sh -# .husky/commit-msg -# ... -npx --no-install commitlint --edit $1 -# or -yarn commitlint --edit $1 -``` - ## Test ### Test simple usage