From 3fd722ac01de7646412c7c89d467a292e704b3f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 30 Mar 2026 02:35:54 +0200 Subject: [PATCH] feat: add Zed project settings --- .zed/settings.json | 69 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .zed/settings.json 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" + } + } + } + } +} -- 2.53.0