Unverified Commit aebd3c37 authored by Richard Si's avatar Richard Si Committed by GitHub
Browse files

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.
parent 3fca540d
Loading
Loading
Loading
Loading
+1 −1
Changes for .pre-commit-config.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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]