eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

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

Open saschanaz opened this issue 1 year ago • 1 comments

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.

saschanaz avatar Oct 07 '24 13:10 saschanaz

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.

ljharb avatar Oct 07 '24 23:10 ljharb