mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
help-beta: Add MDX formatting to the linter.
This commit is contained in:
committed by
Tim Abbott
parent
3e60b16ac1
commit
33f602fa98
9
tools/format-mdx
Executable file
9
tools/format-mdx
Executable file
@@ -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,
|
||||
)
|
@@ -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.lint
|
||||
def custom_py() -> int:
|
||||
|
Reference in New Issue
Block a user