import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.
MIT License
5.57k stars 1.57k forks source link

import/no-unresolved can't detect the root package #3082

Open saschanaz opened 1 month ago

saschanaz commented 1 month ago

Node.js can do this:

// in package foo, in test script:
import foo from "foo"; // import itself for test!

It seems import/no-unresolved can't handle this.

ljharb commented 1 month ago

That functionality comes from the exports field, which resolve does not yet support, and therefore neither do we. When it gets it, so will we.