mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
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>
26 lines
1.0 KiB
TOML
26 lines
1.0 KiB
TOML
id = "graphql"
|
||
name = "GraphQL"
|
||
formatter = { tool = "prettier", parser = "graphql", range = true }
|
||
extensions = ["graphql", "graphqls", "gql"]
|
||
line-comment = "#"
|
||
indent = { tab-size = 2, insert-spaces = true }
|
||
tree-sitter = "graphql"
|
||
|
||
[[language-servers]]
|
||
name = "graphql-lsp"
|
||
command = "graphql-lsp"
|
||
args = ["server", "-m", "stream"]
|
||
root-markers = [".graphqlrc", ".graphqlrc.yml", ".graphqlrc.yaml", ".graphqlrc.json", "graphql.config.js", "graphql.config.ts", "graphql.config.yml", "graphql.config.yaml", "graphql.config.json"]
|
||
install-hint = "npm i -g graphql-language-service-cli"
|
||
|
||
# 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"
|