-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] Only attach if the folder contains a biome.json #2980
Comments
Thanks for your report. The configs in this repo are unsupported and provided only as a starting point. We depend on users (like you) to troubleshoot issues with their specific LSP setups and send improvements. If you found a bug in the core Nvim
|
I'm happy to create a PR for this, I thought I'd raise the suggestion first to see if the current behaviour was preferred. |
I made a PR in case you're happy to include this change. |
) Closes #2980 This PR adjusts the configuration for the biome LSP to only attach if there is an existing biome.json found. This helps prevent conflicts in ESLint projects since biome would attach and start providing diagnostics and would format files which could conflict with the ESLint/Prettier rules that are defined.
Is it possible to make this configurable? I don't use eslint and I would rather not have to bring javascript configuration hell to my projects which only have a tiny bit of plain javascript embedded. |
just override it to fit your use case, it's always configurable |
There is still an issue i am facing when there is an biome extension installed but no biome json file is there in the repo, still the biome is showing those as errors. I dont want it as in this repo i have already prettier and eslint configured |
I am using biome extension version 1.9.2 |
Language server
biome
Requested feature
The default config for biome lets it run in any node/git folder which leads to situations where an eslint project is conflicting with biome since they're both producing lints or trying to format.
I think it makes more sense that the default configuration of biome expects that the project is actually configured to use biome, similar to how eslint works.
E.g.
Other clients which have this feature
No response
The text was updated successfully, but these errors were encountered: