From 5215956141029dff3543e61168352989e92038ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 25 Oct 2026 20:05:26 +0100 Subject: [PATCH] build: replace Prettier with Biome Use the project-local CLI for Zed Markdown and YAML formatting. Keep existing JS/TS and JSON formatter chains unchanged. --- .prettierignore | 10 ---------- .prettierrc.json | 7 ------- .zed/settings.json | 28 ++++++++++++++++++++++++---- package.json | 1 - pnpm-lock.yaml | 10 ---------- 5 files changed, 24 insertions(+), 32 deletions(-) delete mode 100644 .prettierignore delete mode 100644 .prettierrc.json diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index a1f48c7d4..000000000 --- a/.prettierignore +++ /dev/null @@ -1,10 +0,0 @@ -.nyc_output/ -coverage/ -docs/**/*.css -docs/**/*.html -docs/**/*.js -lib/ -outputs/ -pnpm-lock.yaml -reports/ -CHANGELOG.md diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index de6244503..000000000 --- a/.prettierrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/prettierrc", - "arrowParens": "avoid", - "singleQuote": true, - "semi": false, - "trailingComma": "es5" -} diff --git a/.zed/settings.json b/.zed/settings.json index 053e8e7a1..a3b02d209 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -1,8 +1,8 @@ // Zed project settings for poolifier // // JS/TS: Biome format → ESLint --fix -// JSON, JSONC: Biome -// Markdown, YAML: Prettier +// JSON, JSONC: Biome language server +// Markdown, YAML: local Biome CLI (whole-document formatting) { "format_on_save": "on", @@ -34,11 +34,31 @@ }, // ── Markdown ────────────────────────────────────────────── "Markdown": { - "formatter": "prettier" + "formatter": { + "external": { + "command": "node", + "arguments": [ + "node_modules/@biomejs/biome/bin/biome", + "format", + "--stdin-file-path", + "{buffer_path}" + ] + } + } }, // ── YAML ────────────────────────────────────────────────── "YAML": { - "formatter": "prettier" + "formatter": { + "external": { + "command": "node", + "arguments": [ + "node_modules/@biomejs/biome/bin/biome", + "format", + "--stdin-file-path", + "{buffer_path}" + ] + } + } } }, diff --git a/package.json b/package.json index 1ed409f32..294d83ef2 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,6 @@ "husky": "^9.1.7", "lint-staged": "^17.6.0", "neostandard": "^0.14.1", - "prettier": "^3.9.10", "rollup": "^4.64.12", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-command": "^1.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 135c94a4a..cb0d239fe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -220,9 +220,6 @@ importers: neostandard: specifier: ^0.14.1 version: 0.14.1(eslint@10.13.0(jiti@2.7.0))(typescript@6.0.3) - prettier: - specifier: ^3.9.10 - version: 3.9.10 rollup: specifier: ^4.64.12 version: 4.64.12 @@ -2057,11 +2054,6 @@ packages: resolution: {integrity: sha512-E6rsNU1QNJgB3sjj7OANinGncFKuK+164sLXw1/CqBjj/EkXSoSdHCtWQGBNlREIGLnL7IEUEGa08YFVUbrhVg==} engines: {node: '>=16'} - prettier@3.9.10: - resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} - engines: {node: '>=14'} - hasBin: true - punycode.js@2.3.1: resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} engines: {node: '>=6'} @@ -4119,8 +4111,6 @@ snapshots: presentable-error@0.0.1: {} - prettier@3.9.10: {} - punycode.js@2.3.1: {} punycode@2.3.1: {} -- 2.53.0