Skip to content

Commit 22ab4e5

Browse files
docs: update text to husky v6 (#2554)
1 parent b774d0c commit 22ab4e5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitl
9696
To lint commits before they are created you can use Husky's `commit-msg` hook:
9797

9898
```sh
99-
# Install Husky v5
99+
# Install Husky v6
100100
npm install husky --save-dev
101101
# or
102102
yarn add husky --dev
@@ -110,6 +110,8 @@ yarn husky install
110110
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
111111
```
112112

113+
Check the [husky documentation](https://typicode.github.io/husky/#/?id=manual) on how you can automatically have Git hooks enabled after install for different `yarn` versions.
114+
113115
**Detailed Setup instructions**
114116

115117
- [Local setup](https://conventional-changelog.github.io/commitlint/#/guides-local-setup) - Lint messages on commit with husky

docs/guides-local-setup.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Alternatively the configuration can be defined in `.commitlintrc.js`, `.commitli
2222
Install `husky` as devDependency, a handy git hook helper available on npm.
2323

2424
```sh
25-
# Install Husky v5
25+
# Install Husky v6
2626
npm install husky --save-dev
2727
# or
2828
yarn add husky --dev
@@ -38,6 +38,8 @@ npx husky add .husky/commit-msg 'npx --no-install commitlint --edit $1'
3838
yarn husky add .husky/commit-msg 'yarn commitlint --edit $1'
3939
```
4040

41+
Check the [husky documentation](https://typicode.github.io/husky/#/?id=manual) on how you can automatically have Git hooks enabled after install for different `yarn` versions.
42+
4143
## Test
4244

4345
### Test simple usage

0 commit comments

Comments
 (0)