mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
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:
committed by
Tim Abbott
parent
683a6b0411
commit
ccfb516a79
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user