Skip to content

Commit

Permalink
doc: fix lint errors in packages.md
Browse files Browse the repository at this point in the history
Code samples that use CJS-only syntax need to use the cjs markdown
identifiers.

PR-URL: #39792
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
  • Loading branch information
Trott authored and targos committed Sep 4, 2021
1 parent 64714b4 commit 9e772ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,12 @@ code will also work:
}
```

```js
```cjs
// ./index.js
module.exports = 42;
```

```js
```cjs
// ./other.js
console.log(require('@my/package'));
```
Expand Down

0 comments on commit 9e772ca

Please sign in to comment.