pre-commit: add corepack to pnpm exec prettier

This commit is contained in:
Aminda Suomalainen ⚧ 2024-06-24 21:00:31 +03:00
parent 1cef98708c
commit c00b6681b9
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@ repos:
hooks: hooks:
- id: prettier - id: prettier
name: prettier name: prettier
entry: pnpm exec prettier --cache --ignore-unknown --write entry: corepack pnpm exec prettier --cache --ignore-unknown --write
language: system language: system
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python - repo: https://github.com/editorconfig-checker/editorconfig-checker.python

View File

@ -2,5 +2,6 @@
"devDependencies": { "devDependencies": {
"prettier": "3.3.2", "prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0" "prettier-plugin-sh": "0.14.0"
} },
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
} }