-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
Biome configuration in monorepo #1556
Comments
Hey @0xVinCal, Thanks for opening this issue. I'm going to move it to the main repo because this behavior is actually controlled by the biome_lsp crate. The VS Code extension is mostly an LSP client. |
What's the current file path? It's more obvious when running a command via CLI, but inside an editor you can open any folder inside any project... |
In VSCode we can trigger lint on save with option So the "current file path" would be the file I save. With eslint we have the vscode option:
|
we use a mono repo as well and ran into this issue. I symlinked the biome.json config file from our specific js project to the root, so folks editing the code with the whole repo can still inherit the correct settings. then to ensure other js projects that didn't migrate to biome yet I created a vscode workspace file for the root, with the following settings.
then can set specific settings for lib-javascript in the config that overrride the workspace |
If this is off topic, feel free to collapse. In case this is a universal LSP issue, I'm experiencing similar with coc-biome:
|
Closing in favour of #2228 |
Current behavior
The VSCode extension take the
biome.json
at the project root. If it don't find it, it use the default configuration.What it should do
The extension should apply the same file resolution than the biome cli: https://biomejs.dev/guides/how-biome-works/#configuration-file-resolution
It should use the current file path, and look the parent directory until it find a
biome.json
.The text was updated successfully, but these errors were encountered: