Skip to content

Commit 146bb47

Browse files
authored
docs: update getting started (#2518)
* docs: update getting started Starting with husky 5.2.0, `husky add ...` will append command or create a new file * docs: update guides-local-setup
1 parent 36b9b00 commit 146bb47

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,6 @@ npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1"
112112
yarn husky add .husky/commit-msg "yarn commitlint --edit $1"
113113
```
114114

115-
If the file `.husky/commit-msg` already exists, you can edit the file and put this:
116-
117-
```sh
118-
# .husky/commit-msg
119-
# ...
120-
npx --no-install commitlint --edit $1
121-
# or
122-
yarn commitlint --edit $1
123-
```
124-
125115
**Detailed Setup instructions**
126116

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

docs/guides-local-setup.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ 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-
If the file `.husky/commit-msg` already exists, you can edit the file and put this:
42-
43-
```sh
44-
# .husky/commit-msg
45-
# ...
46-
npx --no-install commitlint --edit $1
47-
# or
48-
yarn commitlint --edit $1
49-
```
50-
5141
## Test
5242

5343
### Test simple usage

0 commit comments

Comments
 (0)