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 <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Robert Nagy <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.