Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lint: Enable caching for Prettier.

Anders Kaseorgccfb516a79f6
diff --git a/tools/lint b/tools/lint
index 79ed2b82bdd..5c08fa772e2 100755
--- a/tools/lint
+++ b/tools/lint
@@ -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",