From 662b0d6adfd0e57ce67898e879a834f636d91514 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 6 Jun 2024 17:35:22 +0300 Subject: [PATCH] fix the local prettier hook to ignore unknown files --- .pre-commit-config.yaml | 2 +- n/prettier.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61256bf9..be210236 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,7 +89,7 @@ repos: hooks: - id: pnpm-prettier name: prettier - entry: pnpm exec prettier --write + entry: pnpm exec prettier --cache --ignore-unknown --write language: system # Better handled by pretty-format-json from pre-commit-hooks. # Remember to have *.json in .prettierignore! diff --git a/n/prettier.md b/n/prettier.md index 8f45df90..daf1e97a 100644 --- a/n/prettier.md +++ b/n/prettier.md @@ -62,7 +62,7 @@ repos: hooks: - id: pnpm-prettier name: prettier - entry: pnpm exec prettier --write + entry: pnpm exec prettier --cache --ignore-unknown --write language: system # Better handled by pretty-format-json from pre-commit-hooks. # Remember to have *.json in .prettierignore!