pre-commit & prettier: add the pnpm-install-dev local hook

This commit is contained in:
Aminda Suomalainen 2024-06-20 21:21:53 +03:00
parent a37007f219
commit 8aa41eccdd
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 17 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# See https://pre-commit.com for more information
# See https://pre-commit.ci for more information
ci:
skip: [prettier]
skip: [pnpm-install-dev, prettier]
# I don't need so many duplicated notifications on the same thing as I keep
# autoupdating manually too. Besides it just creates extra branch I never
# touch.
@ -77,6 +77,13 @@ repos:
- repo: local
hooks:
- id: pnpm-install-dev
name: Install pnpm dev dependencies
entry: pnpm install -D
language: system
always_run: true
verbose: true
pass_filenames: false
- id: prettier
name: prettier
entry: pnpm exec prettier --cache --ignore-unknown --write

View File

@ -98,10 +98,18 @@ I am not thinking of as a not-coder myself.
```yaml
ci:
skip: [prettier]
skip: [pnpm-install-dev, prettier]
repos:
- repo: local
hooks:
- id: pnpm-install-dev
name: Install pnpm dev dependencies
entry: pnpm install -D
language: system
always_run: true
verbose: true
pass_filenames: false
- id: prettier
name: prettier
entry: pnpm exec prettier --cache --ignore-unknown --write