summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorguybedford <guybedford@gmail.com>2017-09-03 13:20:06 +0200
committerMichaël Zasso <targos@protonmail.com>2017-10-17 23:25:36 -0700
commit7337a40491da073e8d5eb8acf54d447004d8a418 (patch)
tree572205f3561856def7d86d3ac27179fff04eb8bd /.eslintrc.yaml
parent0e2db0e64e6ce6fc3cc1ea3eeaeee6d2ce797267 (diff)
downloadnode-new-7337a40491da073e8d5eb8acf54d447004d8a418.tar.gz
module: resolve and instantiate loader pipeline hooks
This enables a --loader flag for Node, which can provide custom "resolve" and "dynamicInstantiate" methods for custom ES module loading. In the process, module providers have been converted from classes into functions and the module APIs have been made to pass URL strings over objects. PR-URL: https://github.com/nodejs/node/pull/15445 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index b68d265746..d8768459c2 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -11,7 +11,7 @@ parserOptions:
ecmaVersion: 2017
overrides:
- - files: ["doc/api/esm.md", "*.mjs"]
+ - files: ["doc/api/esm.md", "*.mjs", "test/es-module/test-esm-example-loader.js"]
parserOptions:
sourceType: module
@@ -117,6 +117,7 @@ rules:
keyword-spacing: error
linebreak-style: [error, unix]
max-len: [error, {code: 80,
+ ignorePattern: "^\/\/ Flags:",
ignoreRegExpLiterals: true,
ignoreUrls: true,
tabWidth: 2}]