Allow configuration extending from a library instead of only a relative path #644
Replies: 4 comments 8 replies
-
The reason why the feature works as it is now is because Biome doesn't have the infrastructure to resolve libraries yet. So it was a deliberate choice driven by the infrastructure we have. We really want to apply the functionality you suggested, but we need to develop the infrastructure to resolve libraries. I did some initial work a few days ago. We are aware of the fact that we need this functionality for a lot of other stuff. Stay tuned :) If you'd like to help, you can jump to discord server and start a discussion |
Beta Was this translation helpful? Give feedback.
-
@bradleysmagacz this was included in the latest nightly release 🎉 , so it might be released in |
Beta Was this translation helpful? Give feedback.
-
@kevinwolfcr awesome, thank you! I'm having some trouble getting this to work. Is it designed to be compatible with yarn workspaces? I can see the package in my If I provide a direct path to where the config file lives that seems to work, but using the associated workspace name and export it does not. |
Beta Was this translation helpful? Give feedback.
-
I haven't tested it with yarn, I use bun, but if the package is there, it should work. Can you run |
Beta Was this translation helpful? Give feedback.
-
Description
We have a large monorepo with biome config files at various levels. With the entire monorepo open in VSCode, the
extends
functionality works great as we can give it a relative path to the root biome config. However when opening up an individual directory inside of VSCode, this directory can no longer find the root config that itextends
from and ends up falling back to biome's default rules.Ideally we could give it a library path to extend from so we can create a shared library that holds different config files for frontend and backend.
Is this by design or is this something that is on the roadmap to be implemented at some point? I'm happy to contribute to this as well.
Beta Was this translation helpful? Give feedback.
All reactions