Skip to content

Commit

Permalink
docs(local-setup): fix npx command (#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroeder committed May 2, 2021
1 parent 48ddc9e commit 446d44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides-local-setup.md
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

0 comments on commit 446d44d

Please sign in to comment.