Obsidian Lint (markdownlint-cli2)
Vault config (single file)
- •Keep an Obsidian-friendly
.markdownlint-cli2.jsoncin the vault root. - •Prefer scoping
globsto PARA folders to reduce noise and runtime:- •
0-Inbox/**/*.md - •
1-Projects/**/*.md - •
2-Areas/**/*.md - •
3-Resources/**/*.md - •
4-Archive/**/*.md
- •
Enforce before each commit (blocking)
- •Commit a repo-local hooks directory (recommended):
.githooks/pre-commit. - •Enable it locally:
- •
git config core.hooksPath .githooks
- •
Pre-commit behavior
- •Lint only staged Markdown files within PARA folders.
- •Fail the commit if markdownlint exits non-zero.
- •Use
markdownlint-cli2if installed; otherwise fall back tonpx markdownlint-cli2.