From 3c2ac105157d5d02998f00607ce151870e71ef05 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:50:52 +1300 Subject: [PATCH] FIX Don't lint node_modules directory (#18) --- bin/doclint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doclint b/bin/doclint index 1b431a5..8e3ff38 100755 --- a/bin/doclint +++ b/bin/doclint @@ -166,7 +166,7 @@ if [[ $WITH_MD == 1 ]]; then cp "${DOCS_LINT_DIR}/.markdownlint-cli2.mjs" .markdownlint-cli2.mjs cp "${DOCS_LINT_DIR}/.markdownlint.yml" .markdownlint.yml echo "linting markdown in docs" - yarn markdownlint-cli2 "${DOCS_DIR}**/*.md" $FLAGS + yarn markdownlint-cli2 "${DOCS_DIR}**/*.md" "!**/node_modules/**" $FLAGS if [[ $? != 0 ]]; then EXIT_CODE=1 fi