дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02: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 <[email protected]>
Цей коміт міститься в:
1 джерело
f2950defcf
коміт
9e8722feb6
43 files changed
+670
-212
No files matched your search
@@ -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
Заблокувати користувача