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:
parent
3fca540d05
commit
aebd3c37b2
@ -25,7 +25,7 @@ repos:
|
|||||||
exclude: ^docs/conf.py
|
exclude: ^docs/conf.py
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: v1.19.1
|
rev: v2.2.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
args: [--prose-wrap=always, --print-width=88]
|
args: [--prose-wrap=always, --print-width=88]
|
||||||
|
Loading…
Reference in New Issue
Block a user