From 58a59a8d6ba2de899dd6093e644ee3cf0d4b9a0a Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 18 May 2019 09:10:20 -0400 Subject: doc: improve createRequire() example Update the example to use import and import.meta.url instead of require() and require.resolve(). PR-URL: https://github.com/nodejs/node/pull/27762 Fixes: https://github.com/nodejs/node/issues/27758 Reviewed-By: James M Snell Reviewed-By: Anto Aravinth --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index ff117624f5..55b61cea63 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -39,6 +39,7 @@ module.exports = { { files: [ 'doc/api/esm.md', + 'doc/api/modules.md', 'test/es-module/test-esm-type-flag.js', 'test/es-module/test-esm-type-flag-alias.js', '*.mjs', -- cgit v1.2.3