From 20af11c17904d629ca218854e201ba1cbdc5ae68 Mon Sep 17 00:00:00 2001 From: Novus Nota <68142933+novusnota@users.noreply.github.com> Date: Mon, 21 Oct 2024 18:05:12 +0200 Subject: [PATCH] chore(docs): lint docs in pre-push hook --- .husky/pre-push | 2 +- docs/package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index cd6efc12a..ebf56c01a 100644 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1 +1 @@ -yarn lint:all +yarn lint:all && cd docs && yarn lint:all diff --git a/docs/package.json b/docs/package.json index 30dcb2543..98075aac9 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,10 +7,11 @@ "clean": "rm -rf dist/ out/ .astro/", "deps": "yarn install --frozen-lockfile", "dev": "astro dev", - "build": "yarn clean && yarn spell && astro check && astro build", + "build": "yarn clean && yarn lint:all && astro check && astro build", "preview": "astro preview", "astro": "astro", - "spell": "cspell --no-progress src/content/docs" + "spell": "cspell --no-progress src/content/docs", + "lint:all": "yarn spell" }, "dependencies": { "@astrojs/check": "^0.9.3",