Skip to content

Commit 738e606

Browse files
committed
chore(make): add mdlint target to run markdownlint-cli2 across docs
1 parent 4f44ea6 commit 738e606

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ hooks:
2929
@git config core.hooksPath .githooks
3030
@chmod +x .githooks/pre-commit
3131
@echo "Git hooks enabled (pre-commit markdownlint autofix)."
32+
33+
.PHONY: mdlint
34+
mdlint:
35+
@if ! command -v npx >/dev/null 2>&1; then \
36+
echo "npx not found. Please install Node.js to run markdownlint."; \
37+
exit 1; \
38+
fi
39+
@npx -y markdownlint-cli2 "**/*.md" "!**/node_modules/**"

0 commit comments

Comments
 (0)