diff options
author | Bradley Farias <bradley.meck@gmail.com> | 2017-06-06 03:44:56 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-09-12 04:18:35 +0300 |
commit | 865a3c3daf415695c9f7e1c0e7feff024b6ff211 (patch) | |
tree | db11126bcfe08efae706bf6228e6fd5b3585538b /.eslintrc.yaml | |
parent | e3d0ff901bbd0a4dfd0bf2d6d33cd214fcab7f14 (diff) |
module: Allow runMain to be ESM
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 <bradley.meck@gmail.com>
Author: Guy Bedford <guybedford@gmail.com>
Author: Jan Krems <jan.krems@groupon.com>
Author: Timothy Gu <timothygu99@gmail.com>
Author: Michaƫl Zasso <targos@protonmail.com>
Author: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 3bded1a7ce0..6643b4649d0 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 |