pre-commit: switch to local prettier
This commit is contained in:
parent
a43748adee
commit
6e1256f7b4
|
@ -1,8 +1,10 @@
|
|||
.*
|
||||
_site/
|
||||
.sass-cache/
|
||||
node_modules/
|
||||
vendor/
|
||||
*.lock
|
||||
pnpm-lock.yaml
|
||||
!.editorconfig
|
||||
!.gitattributes
|
||||
!.github
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"@prettier/plugin-xml": "3.4.1",
|
||||
"prettier": "3.3.2",
|
||||
"prettier-plugin-sh": "0.14.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue