diff options
author | Rich Trott <rtrott@gmail.com> | 2021-08-17 06:39:38 -0700 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2021-09-04 15:14:54 +0200 |
commit | 9e772ca9a17bb987a033de9ad9419b6fd5a206ad (patch) | |
tree | b1d8a424a796db6292ba942d3cb0309df6a2a2f2 | |
parent | 64714b429aa3732b60c16e4edf1a1a02fe8a8364 (diff) | |
download | node-new-9e772ca9a17bb987a033de9ad9419b6fd5a206ad.tar.gz |
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>
-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 473cdba438..739db6d273 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -675,12 +675,12 @@ code will also work: } ``` -```js +```cjs // ./index.js module.exports = 42; ``` -```js +```cjs // ./other.js console.log(require('@my/package')); ``` |