mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-22 03:59:31 +01:00
pre-commit & prettier: add the pnpm-install-dev local hook
This commit is contained in:
parent
a37007f219
commit
8aa41eccdd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user