Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help-beta: Add MDX formatting to the linter.
Shubham Padia33f602fa9812
diff --git a/tools/format-mdx b/tools/format-mdxnew file mode 100755index 00000000000..cbf9d91f6be--- /dev/null+++ b/tools/format-mdx@@ -0,0 +1,9 @@+#!/usr/bin/env python3++import subprocess++subprocess.check_call(+ ["/usr/local/bin/corepack", "pnpm", "run", "format"],+ cwd="starlight_help",+ stdout=subprocess.DEVNULL,+)diff --git a/tools/lint b/tools/lintindex ce4856b49c2..ad90f278d38 100755--- a/tools/lint+++ b/tools/lint@@ -64,6 +64,7 @@ def run() -> None:"hbs","html","js",+ "mdx","mjs","mts","svg",@@ -219,6 +220,12 @@ def run() -> None:["tools/check-thirdparty"],description="Check docs/THIRDPARTY copyright file syntax",)+ linter_config.external_linter(+ "format-mdx",+ ["tools/format-mdx"],+ ["mdx"],+ description="Lint and format MDX files",+ )@linter_config.lintdef custom_py() -> int: