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 Aug 22, 2021
1 parent c34e253 commit 2b02f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/packages.md
Expand Up @@ -720,12 +720,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 2b02f74

Please sign in to comment.