diff options
author | ZYSzys <zyszys98@gmail.com> | 2019-05-12 15:11:13 +0800 |
---|---|---|
committer | ZYSzys <zyszys98@gmail.com> | 2019-05-13 19:39:34 +0800 |
commit | dcc5e51e1cb4e102effd7fc515681446b07e428e (patch) | |
tree | 63f566515f8150bbe96e63426293bc802c84eb38 /test/es-module | |
parent | 618fcbd125c386b7bfb37cbc4dce12a694a4ee22 (diff) | |
download | android-node-v8-dcc5e51e1cb4e102effd7fc515681446b07e428e.tar.gz android-node-v8-dcc5e51e1cb4e102effd7fc515681446b07e428e.tar.bz2 android-node-v8-dcc5e51e1cb4e102effd7fc515681446b07e428e.zip |
tools: force common be required before any other modules
PR-URL: https://github.com/nodejs/node/pull/27650
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/es-module')
-rw-r--r-- | test/es-module/test-esm-example-loader.js | 2 | ||||
-rw-r--r-- | test/es-module/test-esm-loader-dependency.mjs | 2 | ||||
-rw-r--r-- | test/es-module/test-esm-preserve-symlinks-not-found-plain.mjs | 2 | ||||
-rw-r--r-- | test/es-module/test-esm-preserve-symlinks-not-found.mjs | 2 | ||||
-rw-r--r-- | test/es-module/test-esm-resolve-hook.mjs | 2 | ||||
-rw-r--r-- | test/es-module/test-esm-type-flag.mjs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/test/es-module/test-esm-example-loader.js b/test/es-module/test-esm-example-loader.js index 0b0001acea..c3ba95f228 100644 --- a/test/es-module/test-esm-example-loader.js +++ b/test/es-module/test-esm-example-loader.js @@ -1,5 +1,5 @@ // Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/example-loader.mjs -/* eslint-disable node-core/required-modules */ +/* eslint-disable node-core/require-common-first, node-core/required-modules */ import assert from 'assert'; import ok from '../fixtures/es-modules/test-esm-ok.mjs'; diff --git a/test/es-module/test-esm-loader-dependency.mjs b/test/es-module/test-esm-loader-dependency.mjs index 1ed8685a6f..9cb2856009 100644 --- a/test/es-module/test-esm-loader-dependency.mjs +++ b/test/es-module/test-esm-loader-dependency.mjs @@ -1,5 +1,5 @@ // Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/loader-with-dep.mjs -/* eslint-disable node-core/required-modules */ +/* eslint-disable node-core/require-common-first, node-core/required-modules */ import '../fixtures/es-modules/test-esm-ok.mjs'; // We just test that this module doesn't fail loading diff --git a/test/es-module/test-esm-preserve-symlinks-not-found-plain.mjs b/test/es-module/test-esm-preserve-symlinks-not-found-plain.mjs index 2ca0f56581..b9b2860dff 100644 --- a/test/es-module/test-esm-preserve-symlinks-not-found-plain.mjs +++ b/test/es-module/test-esm-preserve-symlinks-not-found-plain.mjs @@ -1,3 +1,3 @@ // Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/not-found-assert-loader.mjs -/* eslint-disable node-core/required-modules */ +/* eslint-disable node-core/require-common-first, node-core/required-modules */ import './not-found.js'; diff --git a/test/es-module/test-esm-preserve-symlinks-not-found.mjs b/test/es-module/test-esm-preserve-symlinks-not-found.mjs index b5be2d7e63..1dbdfa03e6 100644 --- a/test/es-module/test-esm-preserve-symlinks-not-found.mjs +++ b/test/es-module/test-esm-preserve-symlinks-not-found.mjs @@ -1,3 +1,3 @@ // Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/not-found-assert-loader.mjs -/* eslint-disable node-core/required-modules */ +/* eslint-disable node-core/require-common-first, node-core/required-modules */ import './not-found.mjs'; diff --git a/test/es-module/test-esm-resolve-hook.mjs b/test/es-module/test-esm-resolve-hook.mjs index e326d20b6d..bbf6c80cda 100644 --- a/test/es-module/test-esm-resolve-hook.mjs +++ b/test/es-module/test-esm-resolve-hook.mjs @@ -1,5 +1,5 @@ // Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/js-loader.mjs -/* eslint-disable node-core/required-modules */ +/* eslint-disable node-core/require-common-first, node-core/required-modules */ import { namedExport } from '../fixtures/es-module-loaders/js-as-esm.js'; import assert from 'assert'; import ok from '../fixtures/es-modules/test-esm-ok.mjs'; diff --git a/test/es-module/test-esm-type-flag.mjs b/test/es-module/test-esm-type-flag.mjs index e820c9ad67..8358da5c76 100644 --- a/test/es-module/test-esm-type-flag.mjs +++ b/test/es-module/test-esm-type-flag.mjs @@ -1,6 +1,6 @@ // Flags: --experimental-modules -import cjs from '../fixtures/baz.js'; import '../common/index.mjs'; +import cjs from '../fixtures/baz.js'; import { message } from '../fixtures/es-modules/message.mjs'; import assert from 'assert'; |