From 8e79aaab048a047efa1da33748aa006ec56b9b50 Mon Sep 17 00:00:00 2001 From: Ewan Croft Date: Tue, 14 Apr 2026 22:58:09 +0100 Subject: [PATCH] chore: fix pre-commit to use local prettier Replaces mirrors-prettier with local prettier execution to support project-specific plugins like prettier-plugin-svelte. --- .pre-commit-config.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 613262a..93fbfca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,9 @@ repos: - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + - repo: local hooks: - id: prettier - types_or: [javascript, jsx, ts, tsx, json, yaml, markdown, css, html] + name: prettier + entry: pnpm exec prettier --write --ignore-unknown + language: system + types_or: [javascript, jsx, ts, tsx, json, yaml, markdown, css, svelte] + pass_filenames: true -- 2.51.2