Update pre-commit hooks with recent version 58/66958/1
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 3 Mar 2021 23:03:21 +0000 (09:03 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 3 Mar 2021 23:32:29 +0000 (09:32 +1000)
- Switch write-good to upstream hook. Upstream PR [1.] is merged
  fixes issues with the write-good npm dependencies.
  [1.] https://github.com/btford/write-good/pull/126
- Swith prettier to the recent version v2.1.2

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I286776e837c5147a3fef9c98ce38b5750106a645

.pre-commit-config.yaml

index 3122cfc..3bf54d6 100644 (file)
@@ -13,8 +13,8 @@ repos:
     hooks:
       - id: gitlint
 
-  - repo: https://github.com/prettier/prettier
-    rev: 2.0.5
+  - repo: https://github.com/prettier/pre-commit
+    rev: v2.1.2
     hooks:
       - id: prettier
 
@@ -46,13 +46,7 @@ repos:
     hooks:
       - id: yamllint
 
-  - repo: local
+  - repo: https://github.com/btford/write-good
+    rev: v1.0.4
     hooks:
-      # TODO: Switch to upstream hook when https://github.com/btford/write-good/pull/119 is merged.
       - id: write-good
-        name: write-good
-        description: Check docs for English prose with write-good
-        entry: write-good
-        language: node
-        files: "\\.(rst|md|markdown|mdown|mkdn)$"
-        additional_dependencies: ["write-good"]