summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-05-18 09:10:20 -0400
committerRuben Bridgewater <ruben@bridgewater.de>2019-05-21 13:13:28 +0200
commit55fe340dc2817d47880c9b87be8f1c06af343e9f (patch)
tree1a94965408f98e6f3be0810e0b87396c31049fac /.eslintrc.js
parent2bc177aa4fa686b99bcdbc05fd6500187085ec1d (diff)
downloadandroid-node-v8-55fe340dc2817d47880c9b87be8f1c06af343e9f.tar.gz
android-node-v8-55fe340dc2817d47880c9b87be8f1c06af343e9f.tar.bz2
android-node-v8-55fe340dc2817d47880c9b87be8f1c06af343e9f.zip
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 <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
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',