mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
feat(lsp): lint and format with Biome (#5200)
Adds Biome as a language server (lint diagnostics and code actions) and as a formatter for CSS, GraphQL, JavaScript, TypeScript (and JSX), JSON and JSONC, with a Languages & Frameworks > Biome settings page (path, provider, run on save, enabled languages). Biome formats instead of Prettier and oxfmt below a biome.json / biome.jsonc or a Biome installation, unless the nearest configuration sets formatter.enabled to false, in which case Prettier keeps formatting. Resolved conflicts with the Tailwind CSS language server: both servers are listed in the language definitions, registry tests and docs. Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
This commit is contained in:
co-authored by
wildcatDownstairs
parent
f2950defcf
commit
9e8722feb6
@@ -109,6 +109,17 @@ codeAction = { disableRuleComment = { enable = true, location = "separateLine" }
|
||||
# No `rules`: an empty list there means no rule gets fixed.
|
||||
codeActionOnSave = { mode = "all" }
|
||||
|
||||
# Biome: lint diagnostics, quick fixes and fix-all below a Biome configuration or installation,
|
||||
# from the project's own biome. Formatting is Reformat Code's (Settings › Biome).
|
||||
[[language-servers]]
|
||||
name = "biome"
|
||||
command = "biome"
|
||||
args = ["lsp-proxy"]
|
||||
root-markers = ["biome.json", "biome.jsonc", "node_modules/@biomejs/biome"]
|
||||
require-root-marker = true
|
||||
features = ["code-action", "diagnostics"]
|
||||
install-hint = "npm i -D @biomejs/biome"
|
||||
|
||||
# Tailwind CSS: class completion, hover and diagnostics, only in a project that uses Tailwind
|
||||
# (`tailwind.config.*` or `tailwindcss` in package.json). After the language's own servers,
|
||||
# which answer hover first.
|
||||
|
||||
Reference in New Issue
Block a user