From 9e772ca9a17bb987a033de9ad9419b6fd5a206ad Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 17 Aug 2021 06:39:38 -0700 Subject: [PATCH] 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 Reviewed-By: Myles Borins Reviewed-By: Antoine du Hamel Reviewed-By: Robert Nagy --- doc/api/packages.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index 473cdba4389945..739db6d273e46e 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')); ```