From 2586bf9b6f66fee2ee99ce2211deccc21b3c2431 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Thu, 4 Mar 2021 09:03:21 +1000 Subject: [PATCH] Update pre-commit hooks with recent version - 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 Change-Id: I286776e837c5147a3fef9c98ce38b5750106a645 --- .pre-commit-config.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3122cfc..3bf54d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] -- 2.16.6