From d7b52464758e6351d79a00c003abfc978d0717ba Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Wed, 28 Oct 2020 10:29:43 -0700 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 4 ++-- .prettierignore | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .prettierignore 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 -- 2.16.6