Skip to content

Commit

Permalink
Enable import/no-unresolved eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Sep 11, 2023
1 parent b1e6495 commit 1e99e4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -225,6 +226,7 @@ module.exports = [
{ version: "12.17.0", ignores: ["modules"] },
],
"@babel/development-internal/require-default-import-fallback": "error",
"import/no-unresolved": "error",
},
},
{
Expand Down Expand Up @@ -269,6 +271,7 @@ module.exports = [
"comma-dangle": "off",
"no-func-assign": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
},
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/babel-node/src/babel-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1e99e4a

Please sign in to comment.