Update prettier pre-commit to ignore stage error 25/67025/1
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 10 Mar 2021 07:20:54 +0000 (17:20 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 10 Mar 2021 07:20:54 +0000 (17:20 +1000)
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 <abelur@linuxfoundation.org>
.pre-commit-config.yaml

index 7141eed..89484cc 100644 (file)
@@ -9,6 +9,7 @@ repos:
     rev: v2.1.2
     hooks:
       - id: prettier
+        stages: [commit]
 
   - repo: https://github.com/jorisroovers/gitlint
     rev: v0.13.1