]> Piment Noir Git Repositories - poolifier.git/commitdiff
feat: add Zed project settings
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 30 Mar 2026 00:35:54 +0000 (02:35 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 30 Mar 2026 00:35:54 +0000 (02:35 +0200)
.zed/settings.json [new file with mode: 0644]

diff --git a/.zed/settings.json b/.zed/settings.json
new file mode 100644 (file)
index 0000000..b3a026b
--- /dev/null
@@ -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"
+        }
+      }
+    }
+  }
+}