From c8a389e19f172edbada83f59944cad7cc802d9d5 Mon Sep 17 00:00:00 2001 From: Bradley Farias Date: Mon, 5 Jun 2017 19:44:56 -0500 Subject: module: Allow runMain to be ESM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This follows the EPS an allows the node CLI to have ESM as an entry point. `node ./example.mjs`. A newer V8 is needed for `import()` so that is not included. `import.meta` is still in specification stage so that also is not included. PR-URL: https://github.com/nodejs/node/pull/14369 Author: Bradley Farias Author: Guy Bedford Author: Jan Krems Author: Timothy Gu Author: Michaƫl Zasso Author: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Jeremiah Senkpiel --- .eslintrc.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.eslintrc.yaml') diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 36677b7cea0..b68d2657465 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -10,6 +10,11 @@ env: parserOptions: ecmaVersion: 2017 +overrides: + - files: ["doc/api/esm.md", "*.mjs"] + parserOptions: + sourceType: module + rules: # Possible Errors # http://eslint.org/docs/rules/#possible-errors -- cgit v1.2.3