From 33b2f9720c037994da97c4e27b83617b240c8863 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Wed, 10 Mar 2021 17:20:54 +1000 Subject: [PATCH] Update prettier pre-commit to ignore stage error Set stages to 'commit' to overide the default_stages. This fixes the issue seen while using git-commmit: [error] No matching files. Patterns: .git/COMMIT_EDITMSG Change-Id: I959744b89e6cb22e84fca9119a1405e354734cbb Signed-off-by: Anil Belur --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7141eeda..89484cc9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: rev: v2.1.2 hooks: - id: prettier + stages: [commit] - repo: https://github.com/jorisroovers/gitlint rev: v0.13.1 -- 2.16.6