]> Piment Noir Git Repositories - poolifier.git/commitdiff
refactor: align Zed settings with biome → eslint formatter pipeline
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 30 Mar 2026 01:30:36 +0000 (03:30 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 30 Mar 2026 01:30:36 +0000 (03:30 +0200)
.zed/settings.json

index b3a026b3160de3295bdd0bff0d9726b702d8e9b3..053e8e7a189399aff46701054f2588b60c7dcecb 100644 (file)
@@ -1,59 +1,44 @@
 // 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.
+// JS/TS: Biome format → ESLint --fix
+// JSON, JSONC: Biome
+// Markdown, YAML: Prettier
 {
   "format_on_save": "on",
 
   "languages": {
-    // ── TypeScript ────────────────────────────────────────────
+    // ── TypeScript (covers .ts and .tsx) ──────────────────────
     "TypeScript": {
-      "formatter": "none",
-      "prettier": { "allowed": false },
-      "code_actions_on_format": {
-        "source.fixAll.eslint": true
-      }
+      "formatter": [
+        { "language_server": { "name": "biome" } },
+        { "code_action": "source.fixAll.eslint" }
+      ]
     },
-    // ── JavaScript ────────────────────────────────────────────
+    // ── JavaScript (covers .js, .jsx, .cjs, .mjs) ────────────
     "JavaScript": {
-      "formatter": "none",
-      "prettier": { "allowed": false },
-      "code_actions_on_format": {
-        "source.fixAll.eslint": true
-      }
+      "formatter": [
+        { "language_server": { "name": "biome" } },
+        { "code_action": "source.fixAll.eslint" }
+      ]
     },
     // ── 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}"]
-        }
-      }
+      "formatter": "prettier"
     },
     // ── YAML ──────────────────────────────────────────────────
     "YAML": {
-      "formatter": {
-        "external": {
-          "command": "prettier",
-          "arguments": ["--stdin-filepath", "{buffer_path}"]
-        }
-      }
+      "formatter": "prettier"
     }
   },