Skip to content

Commit

Permalink
Use read dafult export - requiring with CommonJS (#2057)
Browse files Browse the repository at this point in the history
Suggesting a change that made my local setup work.
  • Loading branch information
viktomas authored Aug 11, 2020
1 parent da0c75d commit 4895d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ read(range: Range) => Promise<string[]>

```js
// git commit -m "I did something"
const read = require('@commitlint/read');
const read = require('@commitlint/read').default;

read({edit: true}).then((messages) => console.log(messages));
// => ['I did something\n\n']
Expand Down

0 comments on commit 4895d5f

Please sign in to comment.