diff options
author | Rich Trott <rtrott@gmail.com> | 2021-08-17 16:39:38 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-08-17 17:10:46 +0300 |
commit | 71abf54750247eb27ba5f31d61ef7030a71d4ab4 (patch) | |
tree | 36887fdcb4b36f0d7fe172258d9aa7eaa887c111 /doc/api/packages.md | |
parent | f7a2aec6509634d69663fb3f6dd74aca38d3f392 (diff) |
doc: fix lint errors in packages.md
Code samples that use CJS-only syntax need to use the cjs markdown
identifiers.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/packages.md')
-rw-r--r-- | doc/api/packages.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/packages.md b/doc/api/packages.md index 02884be8627..0278b649087 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -720,12 +720,12 @@ code will also work: } ``` -```js +```cjs // ./index.js module.exports = 42; ``` -```js +```cjs // ./other.js console.log(require('@my/package')); ``` |