Replies: 7 comments 3 replies
-
|
That's how all paths work, not just the one that belongs to the plugin. Not sure if we should categorise this as a bug, but if we changed this, we would need to change the resolution of paths as well e.g. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @adamhl8, please provide a minimal reproduction. You can use one of the following options:
Issues marked with |
Beta Was this translation helpful? Give feedback.
-
|
I think we could choose to have an exception for plugins, which to me make some sense given that it’s a different use case and configs that are being extended wouldn’t reasonably know the location of plugins relative to the config they are being extended from. That said, I’m not entirely sure yet we should make this change. And definitely agreed it’s not a bug, so l’ll convert this to a discussion for now. |
Beta Was this translation helpful? Give feedback.
-
|
I ran into the same issue today. If I understand this issue correctly it makes it impossible to reference plugins in the root file of a monorepo setup. Other things I tried, that did not work:
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @arendjr @ematipico sorry to tag, but was wondering if there's any update/decision on how to handle this? |
Beta Was this translation helpful? Give feedback.
-
|
consider the following structure I don't think this structure is possible with the way paths are resolved. If it works in the way the docs claim it does, any paths in 'plugins' or 'includes' must resolve properly from relative to several different configs, which is logically impossible. I think this is confusing for "extends" and "plugins", but am not sure about "includes". |
Beta Was this translation helpful? Give feedback.
-
|
+1 for this. we have a monorepo that extends configs from all over the place and I would like to be able to apply plugins to the base config |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment information
What happened?
Say you have a setup like this:
./configs/biome.json{ "root": false, "plugins": ["./pattern.grit"], }./biome.json{ "extends": ["./configs/biome.json"] }Run
biome check:Changing the plugin path to be relative to the root config makes it work:
./configs/biome.json{ "root": false, "plugins": ["./configs/pattern.grit"], }Plugins should be resolved relative to the specifying config.
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions