From 6e1256f7b4c282a98c3e29e0b67b52cf94524443 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 19 Jun 2024 17:35:41 +0300 Subject: [PATCH] pre-commit: switch to local prettier --- .gitignore | 2 ++ .pre-commit-config.yaml | 7 +++++-- package.json | 7 +++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 package.json diff --git a/.gitignore b/.gitignore index fa07570..fa8201e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ .* _site/ .sass-cache/ +node_modules/ vendor/ *.lock +pnpm-lock.yaml !.editorconfig !.gitattributes !.github diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7820cb..e091f96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,6 @@ ci: autoupdate_schedule: quarterly + skip: [prettier] repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -26,7 +27,9 @@ repos: - id: doctoc args: [--update-only, --notitle] - - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.3.0" + - repo: local hooks: - id: prettier + name: prettier + entry: pnpm exec prettier --cache --ignore-unknown --write + language: system diff --git a/package.json b/package.json new file mode 100644 index 0000000..2f3724c --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "devDependencies": { + "@prettier/plugin-xml": "3.4.1", + "prettier": "3.3.2", + "prettier-plugin-sh": "0.14.0" + } +}