From: Jérôme Benoit Date: Mon, 30 Mar 2026 00:35:54 +0000 (+0200) Subject: feat: add Zed project settings X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3fd722ac01de7646412c7c89d467a292e704b3f8;p=poolifier.git feat: add Zed project settings --- diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 000000000..b3a026b31 --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,69 @@ +// Zed project settings for poolifier +// +// JS/TS uses ESLint-only (no formatter) because Zed runs code actions BEFORE +// formatter — using biome would override ESLint, inverting the repo pipeline. +// +// Prerequisite: install the Biome extension. +{ + "format_on_save": "on", + + "languages": { + // ── TypeScript ──────────────────────────────────────────── + "TypeScript": { + "formatter": "none", + "prettier": { "allowed": false }, + "code_actions_on_format": { + "source.fixAll.eslint": true + } + }, + // ── JavaScript ──────────────────────────────────────────── + "JavaScript": { + "formatter": "none", + "prettier": { "allowed": false }, + "code_actions_on_format": { + "source.fixAll.eslint": true + } + }, + // ── JSON / JSONC ────────────────────────────────────────── + "JSON": { + "formatter": { + "language_server": { "name": "biome" } + }, + "prettier": { "allowed": false } + }, + "JSONC": { + "formatter": { + "language_server": { "name": "biome" } + }, + "prettier": { "allowed": false } + }, + // ── Markdown ────────────────────────────────────────────── + "Markdown": { + "formatter": { + "external": { + "command": "prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + // ── YAML ────────────────────────────────────────────────── + "YAML": { + "formatter": { + "external": { + "command": "prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + } + }, + + "lsp": { + "eslint": { + "settings": { + "workingDirectory": { + "mode": "auto" + } + } + } + } +}