From f8fa8c51b7b35dbcff391968d5e13c15724c1b66 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 11 Jun 2024 20:46:53 +0300 Subject: [PATCH] pre-commit: migrate to local prettier --- .pre-commit-config.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 357590c..e401dd8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: # the frequency of unnecessary PRs. # https://github.com/pre-commit-ci/issues/issues/83 autoupdate_schedule: quarterly - skip: [latexmk, exiftool] + skip: [latexmk, exiftool, prettier] repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -67,19 +67,13 @@ repos: #- id: check-github-workflows - id: check-gitlab-ci - - 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 exclude_types: [json] - additional_dependencies: [ - # https://www.npmjs.com/package/prettier - "prettier@3.3.1", - # https://www.npmjs.com/package/@prettier/plugin-xml - "@prettier/plugin-xml@3.4.1", - # https://www.npmjs.com/package/prettier-plugin-toml - "prettier-plugin-toml@2.0.1", - ] - repo: https://github.com/scop/pre-commit-shfmt rev: v3.8.0-1