From aebd3c37b28bbc0183a58d13b80e7595db3c09bb Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Thu, 4 Feb 2021 23:10:45 -0500 Subject: [PATCH] Update prettier in pre-commit config (#1966) With older versions of prettier, when the hook failed a bunch of "[error] No parser could be inferred for file: {PATH}" error lines showed up because of lack of support of a flag that pre-commit passes for us by default. It made figuring out why the prettier hook failed annoying. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9955a24..292ed57 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: exclude: ^docs/conf.py - repo: https://github.com/pre-commit/mirrors-prettier - rev: v1.19.1 + rev: v2.2.1 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] -- 2.39.2