Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(local-setup): fix npx command
  • Loading branch information
kroeder authored May 1, 2021
commit 9367a16f63b89451e2f7a5038ccfab1ddfdaf98c
4 changes: 2 additions & 2 deletions docs/guides-local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ configure `commitlint` to use it.
```bash
# Install and configure if needed
npm install --save-dev @commitlint/{cli,config-conventional}
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
```

Alternatively the configuration can be defined in `.commitlintrc.js`, `.commitlintrc.json`, or `.commitlintrc.yml` file or a `commitlint` field in `package.json`.
Expand Down Expand Up @@ -47,7 +47,7 @@ Check the [husky documentation](https://typicode.github.io/husky/#/?id=manual) o
For a first simple usage test of commlitlint you can do the following:

```bash
npx commitlint --from HEAD~1 --to HEAD --verbose
npx commitlint -- --from HEAD~1 --to HEAD --verbose
```

This will check your last commit and return an error if invalid or a positive output if valid.
Expand Down