]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Update prettier in pre-commit config (#1966)
authorRichard Si <63936253+ichard26@users.noreply.github.com>
Fri, 5 Feb 2021 04:10:45 +0000 (23:10 -0500)
committerGitHub <noreply@github.com>
Fri, 5 Feb 2021 04:10:45 +0000 (20:10 -0800)
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

index 9955a24baf86bb219a4082b1581bd5beda97bdd2..292ed5727d9b3afa10aa2e8ee6a3dce11f28c7b8 100644 (file)
@@ -25,7 +25,7 @@ repos:
         exclude: ^docs/conf.py
 
   - repo: https://github.com/pre-commit/mirrors-prettier
         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]
     hooks:
       - id: prettier
         args: [--prose-wrap=always, --print-width=88]