]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
feat: add Zed project settings
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 30 Mar 2026 01:16:58 +0000 (03:16 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 30 Mar 2026 01:16:58 +0000 (03:16 +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..0c6891e
--- /dev/null
@@ -0,0 +1,63 @@
+// Zed project settings for e-mobility-charging-stations-simulator
+//
+// JS/TS/Vue: Prettier → ESLint --fix
+// Python: Ruff check --fix → Ruff format
+// JSON, JSONC, Markdown, YAML, CSS, HTML: Prettier
+{
+  "format_on_save": "on",
+
+  "languages": {
+    // ── TypeScript (covers .ts and .tsx) ──────────────────────
+    "TypeScript": {
+      "formatter": ["prettier", { "code_action": "source.fixAll.eslint" }]
+    },
+    // ── JavaScript (covers .js, .jsx, .cjs, .mjs) ────────────
+    "JavaScript": {
+      "formatter": ["prettier", { "code_action": "source.fixAll.eslint" }]
+    },
+    // ── Vue ───────────────────────────────────────────────────
+    "Vue.js": {
+      "formatter": ["prettier", { "code_action": "source.fixAll.eslint" }]
+    },
+    // ── JSON / JSONC ──────────────────────────────────────────
+    "JSON": {
+      "formatter": "prettier"
+    },
+    "JSONC": {
+      "formatter": "prettier"
+    },
+    // ── Markdown ──────────────────────────────────────────────
+    "Markdown": {
+      "formatter": "prettier"
+    },
+    // ── YAML ──────────────────────────────────────────────────
+    "YAML": {
+      "formatter": "prettier"
+    },
+    // ── CSS ───────────────────────────────────────────────────
+    "CSS": {
+      "formatter": "prettier"
+    },
+    // ── HTML ──────────────────────────────────────────────────
+    "HTML": {
+      "formatter": "prettier"
+    },
+    // ── Python ────────────────────────────────────────────────
+    "Python": {
+      "formatter": [
+        { "code_action": "source.fixAll.ruff" },
+        { "language_server": { "name": "ruff" } }
+      ]
+    }
+  },
+
+  "lsp": {
+    "eslint": {
+      "settings": {
+        "workingDirectory": {
+          "mode": "auto"
+        }
+      }
+    }
+  }
+}