Skip to content

Commit fcfb326

Browse files
chore: ignore CHANGELOG.md in markdownlint (#20)
Release-please generates CHANGELOG with double blank lines that fail MD012. Since CHANGELOG is auto-generated, skip it in lint and pre-commit.
1 parent b4e616d commit fcfb326

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

β€Ž.githooks/pre-commitβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ echo "[pre-commit] ESLint passed."
4141

4242
# ── 3. markdownlint ────────────────────────────────────────────────────────
4343
echo "[pre-commit] Running markdownlint..."
44-
if ! npx markdownlint '**/*.md' --ignore node_modules 2>/dev/null; then
44+
if ! npx markdownlint '**/*.md' --ignore node_modules --ignore CHANGELOG.md 2>/dev/null; then
4545
echo ""
4646
echo "[pre-commit] markdownlint failed. Run 'npx markdownlint --fix' to auto-fix."
4747
exit 1

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"build:cursor-agents": "node scripts/dev/build-cursor-agents.js",
6767
"test": "npm run build && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-hooks.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-no-personal-paths.js && node tests/run-all.js",
6868
"smoke": "bash scripts/ci/smoke-test.sh",
69-
"lint": "eslint . && markdownlint '**/*.md' --ignore node_modules",
69+
"lint": "eslint . && markdownlint '**/*.md' --ignore node_modules --ignore CHANGELOG.md",
7070
"coverage": "c8 --all --include=\"scripts/**/*.js\" --exclude=\"scripts/scc.js\" --reporter=text --reporter=lcov --check-coverage --lines 80 --functions 80 --branches 80 --statements 80 node tests/run-all.js",
7171
"harness:audit": "node scripts/dev/harness-audit.js",
7272
"orchestrate:status": "node scripts/dev/orchestration-status.js",

0 commit comments

Comments
Β (0)