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/ _site/
.sass-cache/ .sass-cache/
node_modules/
vendor/ vendor/
*.lock *.lock
pnpm-lock.yaml
!.editorconfig !.editorconfig
!.gitattributes !.gitattributes
!.github !.github

View File

@ -1,5 +1,6 @@
ci: ci:
autoupdate_schedule: quarterly autoupdate_schedule: quarterly
skip: [prettier]
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
@ -26,7 +27,9 @@ repos:
- id: doctoc - id: doctoc
args: [--update-only, --notitle] args: [--update-only, --notitle]
- 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

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"
}
}