mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-12-18 16:22:30 +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.
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user