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.
This commit is contained in:
Richard Si 2021-02-04 23:10:45 -05:00 committed by GitHub
parent 3fca540d05
commit aebd3c37b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]