pre-commit: migrate to local prettier

This commit is contained in:
Aminda Suomalainen 2024-06-11 20:46:53 +03:00
parent fe8267eccd
commit f8fa8c51b7
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -5,7 +5,7 @@ ci:
# the frequency of unnecessary PRs. # the frequency of unnecessary PRs.
# https://github.com/pre-commit-ci/issues/issues/83 # https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly autoupdate_schedule: quarterly
skip: [latexmk, exiftool] skip: [latexmk, exiftool, prettier]
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
@ -67,19 +67,13 @@ repos:
#- id: check-github-workflows #- id: check-github-workflows
- id: check-gitlab-ci - id: check-gitlab-ci
- repo: https://github.com/rbubley/mirrors-prettier - repo: local
rev: "v3.3.0"
hooks: hooks:
- id: prettier - id: prettier
name: prettier
entry: pnpm exec prettier --cache --ignore-unknown --write
language: system
exclude_types: [json] 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 - repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1 rev: v3.8.0-1