-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
💅 noUndeclaredDependencies
reports different results if current working directory changes
#2475
Comments
Within the monorepo setting include |
I have single |
I think this is because the root directory detection ( |
I did some debugging but couldn't find time to implement the fix, others are welcome to tackle it. Here is what I found:
|
For me, it fails to detect dependencies in a pnpm monorepo workspace even from CLI. It also errors out in VsCode. |
noUndeclaredDependencies
- works fine during check, reports false-positives in WebStorm, VSCode and during precommit hook using lefthooknoUndeclaredDependencies
reports different results if current working directory changes
Will be fixed in 2.0. |
Environment information
Rule name
noUndeclaredDependencies
Playground link
not applicable
Expected result
I don't really know what additional info to provide. I will try to create a reproducible repo, but for now this all I have.
Note that this is a monorepo. Dependencies are declared NOT in root
package.json
file.When running
npx biome check
I see no errors. But at the same time WebStorm and VSCode highlight imports as errors, and I see the same error during precommit hook.npx biome check
:git commit
:WebStorm:
![image](https://private-user-images.githubusercontent.com/576152/322540018-7946b1ea-947c-4ee6-a474-bf922c157db7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MjY0NDYsIm5iZiI6MTczODgyNjE0NiwicGF0aCI6Ii81NzYxNTIvMzIyNTQwMDE4LTc5NDZiMWVhLTk0N2MtNGVlNi1hNDc0LWJmOTIyYzE1N2RiNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQwNzE1NDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hZDlmODRmOTAzYTViNTZjYzgzOTU1MDI5Y2EzM2ZiZTJlZTQ2OTY0NzEzNmFkOGRmMTY4N2U5MDBhYmM5ZmY5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Xwd91gotxAiOiiAQZd_0N0Ciy6uOehT7trmID1zGCJY)
Let me know if I need to provide more info, thank you!
Code of Conduct
The text was updated successfully, but these errors were encountered: