diff --git a/eslint.config.js b/eslint.config.js index a116d6eba52e..5e0b1187f17b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -174,6 +174,7 @@ module.exports = [ "@babel/development/no-deprecated-clone": "error", "guard-for-in": "error", "import/extensions": ["error", "ignorePackages"], + "import/no-unresolved": "error", }, }, ...compat.extends("plugin:jest/recommended").map(config => { @@ -225,6 +226,7 @@ module.exports = [ { version: "12.17.0", ignores: ["modules"] }, ], "@babel/development-internal/require-default-import-fallback": "error", + "import/no-unresolved": "error", }, }, { @@ -269,6 +271,7 @@ module.exports = [ "comma-dangle": "off", "no-func-assign": "off", "import/no-extraneous-dependencies": "off", + "import/no-unresolved": "off", }, }, { diff --git a/packages/babel-node/src/babel-node.ts b/packages/babel-node/src/babel-node.ts index 0b460b4bbecc..659d4c4ed925 100644 --- a/packages/babel-node/src/babel-node.ts +++ b/packages/babel-node/src/babel-node.ts @@ -84,6 +84,7 @@ getV8Flags(async function (err, v8Flags) { } try { + // eslint-disable-next-line import/no-unresolved const { default: kexec } = await import("kexec"); kexec(process.argv[0], args); } catch (err) {