mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-12-18 08:12:32 +01:00
pre-commit: migrate to local prettier
This commit is contained in:
parent
fe8267eccd
commit
f8fa8c51b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user