Feature Request: Better Support for Git Submodules with Independent Biome Configurations #6883
schickling
started this conversation in
Ideas
Replies: 1 comment
-
The current workaround is including this in biome.json:
If the submodule has its own biome, and it is committed with some linting check, then this state makes it linted separately by its own biome config. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Description
Currently, Biome throws "nested root configuration" errors when a git submodule contains its own
biome.json
/biome.jsonc
file, even when both the parent repository and submodule are independent projects that need their own Biome configurations.Current Behavior
When working on a parent repository that includes a git submodule, both having their own Biome configurations:
Biome produces errors like:
Expected Behavior
Biome should gracefully handle git submodules with independent Biome configurations, allowing:
Use Case
This scenario is common in:
Real-world example: A
my-app
monorepo includes thelivestore
monorepo as a git submodule. Both are independent projects with their own development workflows, CI/CD, and tooling configurations, but need to work together during development.Current Workarounds and Limitations
Workaround 1: Exclude Submodules
Limitations:
Workaround 2: Nested Configuration with
"root": false
Limitations:
Additional Context
This feature would significantly improve Biome's usability in complex repository structures that are common in modern development workflows.
Related Issues
Would appreciate any thoughts from the maintainers on whether this is something that could be supported in future versions of Biome, or if there are alternative approaches we should consider.
🤖 This issue was co-written with Claude
Beta Was this translation helpful? Give feedback.
All reactions