import/no-unresolved can't detect the root package
saschanaz opened this issue · 1 comments
saschanaz commented
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
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.