Skip to content

Commit 446d44d

Browse files
authored
docs(local-setup): fix npx command (#2573)
1 parent 48ddc9e commit 446d44d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides-local-setup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ configure `commitlint` to use it.
1212
```bash
1313
# Install and configure if needed
1414
npm install --save-dev @commitlint/{cli,config-conventional}
15-
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
15+
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
1616
```
1717

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

4949
```bash
50-
npx commitlint --from HEAD~1 --to HEAD --verbose
50+
npx commitlint -- --from HEAD~1 --to HEAD --verbose
5151
```
5252

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

0 commit comments

Comments
 (0)