Update prettier pre-commit to ignore stage error 55/95455/1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 9 Mar 2021 23:40:13 +0000 (09:40 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 9 Mar 2021 23:47:28 +0000 (09:47 +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: Iaf2727bb436342f2ee64adfacfbdd09525901e60
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.pre-commit-config.yaml

index 25be085b24359bd9b319596d4534d29a72bdba67..d8494c9663327e5ad32509cc6e0024647b05eaa7 100644 (file)
@@ -13,6 +13,7 @@ repos:
     rev: v2.1.2
     hooks:
       - id: prettier
+        stages: [commit]
 
   - repo: https://github.com/jorisroovers/gitlint
     rev: v0.13.1