diff --git a/package.json b/package.json index 723339af4ec2..3e25d0ae208f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "fetch": "scripts/fetch.sh", "init:generated": "mkdirp ./generated/loaders && mkdirp ./generated/plugins ", "lint": "run-s lint:*", - "lint:links": "hyperlink -r build/index.html | ./scripts/check-links.js --skip 10", + "lint:links": "hyperlink -r build/index.html | ./scripts/check-links.js", "lint:js": "eslint . --ext .js --ext .jsx", "lint:markdown": "markdownlint --config ./.markdownlint.json *.md ./content/**/*.md", "lint:social": "alex ./**/*.md", diff --git a/scripts/check-links.js b/scripts/check-links.js index 2ec0d02dd713..cddaa143103c 100755 --- a/scripts/check-links.js +++ b/scripts/check-links.js @@ -22,7 +22,8 @@ function checkLinks(args) { var name = null; tap.on('complete', function(res) { - const failures = res.failures; + const failures = res.failures.filter(failure => !failure.diag || !failure.diag.at || + !failure.diag.at.match(/class="(support__item|support__backers-avatar|support__sponsors-avatar)"/)); if (failures.length > 0) { console.log(formatFailures(failures));