lint: Enable caching for Prettier.

Caching is new in Prettier 2.7.0, but broken before 3.0.0-alpha.4.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-09-20 15:04:57 -07:00
committed by Tim Abbott
parent 683a6b0411
commit ccfb516a79

View File

@@ -174,7 +174,7 @@ def run() -> None:
)
linter_config.external_linter(
"prettier",
["node_modules/.bin/prettier", "--check", "--log-level=warn"],
["node_modules/.bin/prettier", "--cache", "--check", "--log-level=warn"],
["css", "flow", "js", "json", "md", "ts", "yaml", "yml"],
fix_arg=["--write"],
description="Formats CSS, JavaScript, YAML",