From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Fri, 5 Feb 2021 04:10:45 +0000 (-0500) Subject: Update prettier in pre-commit config (#1966) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/aebd3c37b28bbc0183a58d13b80e7595db3c09bb 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. --- 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]