From: Andrew Grimberg Date: Wed, 28 Oct 2020 17:29:43 +0000 (-0700) Subject: Update the version of prettier being used X-Git-Tag: v0.58.0~4 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=d7b52464758e6351d79a00c003abfc978d0717ba;p=releng%2Fglobal-jjb.git Update the version of prettier being used Per https://github.com/prettier/prettier/issues/8925 prettier has created a new pre-commit repository for pre-commit integration. This repository also uses a slightly different tag format. Lastly, we're updating to the latest version version available at this time Adds a .prettierignore to keep it from reformatting the jenkins-init-scripts/README that shouldn't be touched Change-Id: I0a50fc4fc372f43c6cd323aa1d6a2ec2054aeeda Signed-off-by: Andrew Grimberg --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 984ea24d..d570d8c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,8 +5,8 @@ repos: hooks: - id: trailing-whitespace - - repo: https://github.com/prettier/prettier - rev: 2.0.5 + - repo: https://github.com/prettier/pre-commit + rev: v2.1.2 hooks: - id: prettier diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..07bf2803 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +# Don't make weird changes to +jenkins-init-scripts/README