From a9fee8ee768be728a52c167de59bf7984aa42896 Mon Sep 17 00:00:00 2001 From: literat Date: Sat, 21 Dec 2024 21:30:56 +0100 Subject: [PATCH] Chore(ci): Allow markdown lint fail on warnings * @see: https://github.com/remarkjs/remark-lint?tab=readme-ov-file #example-check-markdown-on-the-cli --- .remarkrc.mjs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.remarkrc.mjs b/.remarkrc.mjs index 957e4fb1e7..7707da020a 100644 --- a/.remarkrc.mjs +++ b/.remarkrc.mjs @@ -38,7 +38,7 @@ export default { 'remark-lint-heading-capitalization', { lowerCaseWords: ['v1', 'v2', 'v3', 'v4', 'vs'], - ignorePattern: ['^@lmc-eu/spirit-.*', '^spirit-.*', '`.*`', '.*-config-spirit'], + ignorePattern: ['^@lmc-eu/spirit-[a-z-]+', '^spirit-[a-z-]+', '`[^`]+`', '[a-z-]+-config-spirit'], }, ], diff --git a/package.json b/package.json index 1e5d188d27..82fe21bb46 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "types": "yarn packages:types", "lint": "npm-run-all --parallel es:lint lint:markdown packages:lint", "lint:fix": "npm-run-all --parallel es:lint:fix packages:lint:fix", - "lint:markdown": "remark ./ --quiet", + "lint:markdown": "remark ./ --quiet --frail", "lint:commit": "yarn commitlint --verbose --color --from $(git merge-base origin/main HEAD)", "packages:lint:fix": "lerna run lint:fix --parallel", "packages:lint": "lerna run lint --parallel --no-sort",