diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa077eb..f2bc588 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/n/prettier.md b/n/prettier.md index df762bd..53360f1 100644 --- a/n/prettier.md +++ b/n/prettier.md @@ -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