pre-commit: switch to local prettier

This commit is contained in:
Aminda Suomalainen ⚧ 2024-06-19 17:35:41 +03:00
parent a43748adee
commit 6e1256f7b4
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 14 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,8 +1,10 @@
.*
_site/
.sass-cache/
node_modules/
vendor/
*.lock
pnpm-lock.yaml
!.editorconfig
!.gitattributes
!.github

View File

@ -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

7
package.json Normal file
View File

@ -0,0 +1,7 @@
{
"devDependencies": {
"@prettier/plugin-xml": "3.4.1",
"prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0"
}
}