From ef4920a058fad16b93f365d1ed351924602a30b5 Mon Sep 17 00:00:00 2001 From: Elie Habib Date: Sat, 7 Mar 2026 09:45:09 +0400 Subject: [PATCH] ci(lint): add markdown lint to pre-push hook (#1166) Add `npm run lint:md` to `.husky/pre-push` so markdown lint errors are caught locally before push. Fix existing violation in pro-test/README.md (MD012: multiple consecutive blank lines). --- .husky/pre-push | 3 +++ pro-test/README.md | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.husky/pre-push b/.husky/pre-push index b30d0c710..255c86d32 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -22,5 +22,8 @@ done echo "Running edge function tests..." node --test tests/edge-functions.test.mjs || exit 1 +echo "Running markdown lint..." +npm run lint:md || exit 1 + echo "Running version sync check..." npm run version:check || exit 1 diff --git a/pro-test/README.md b/pro-test/README.md index e6795d1c8..6348ed5ad 100644 --- a/pro-test/README.md +++ b/pro-test/README.md @@ -12,7 +12,6 @@ View your app in AI Studio: https://ai.studio/apps/ef577c64-7776-42d3-bb38-3f0a6 **Prerequisites:** Node.js - 1. Install dependencies: `npm install` 2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key