-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paths
in tsconfig.json breaks import/no-extraneous-dependencies
#2617
Comments
I found it could be fixed by |
@haven2world This is a workaround, not a fix, right? This plugin should consider the I think this issue should remain open. |
@SimonCockx TBH, I have no idea. Since in the doc, it says we can use |
Still, an nx repo can have hundreds of these, so making sure that the Maybe @ljharb can give us a bit of context? |
That seems a reasonable enhancement, yes |
Our project is a mono repo managed by Nx. All dependencies are installed at the root directory and the
package.json
containing all dependencies is also there.When I import
logger
in another repo, the ruleimport/no-extraneous-dependencies
fails.The directory structure would be like:
.eslintrc.js:
tsconfig.base.json:
package.json in root directory is a normal one:
package.json in libs is really simple:
tsconfig.json in libs will extends the base one.
And when I
import logger from "@my/logger"
in another-lib, this rule will failThe text was updated successfully, but these errors were encountered: