From 9d5f0d595667bf2c784ffd0f7f3e2172f3a09b77 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Wed, 10 Mar 2021 09:40:13 +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: Iaf2727bb436342f2ee64adfacfbdd09525901e60 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 25be085b2..d8494c966 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: rev: v2.1.2 hooks: - id: prettier + stages: [commit] - repo: https://github.com/jorisroovers/gitlint rev: v0.13.1 -- 2.36.6