Skip to content

Commit 2b02f74

Browse files
Trotttargos
authored andcommitted
doc: fix lint errors in packages.md
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]>
1 parent c34e253 commit 2b02f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/packages.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ code will also work:
720720
}
721721
```
722722

723-
```js
723+
```cjs
724724
// ./index.js
725725
module.exports = 42;
726726
```
727727

728-
```js
728+
```cjs
729729
// ./other.js
730730
console.log(require('@my/package'));
731731
```

0 commit comments

Comments
 (0)