diff --git a/bin/runLint.js b/bin/runLint.js index a44b49e..ab89314 100644 --- a/bin/runLint.js +++ b/bin/runLint.js @@ -181,14 +181,14 @@ function createProcessor(includeFrontmatterCheck) { if (externalLinksOnly) { processors = processors .use(remarkLintNoDeadUrls, { - skipUrlPatterns, + skipUrlPatterns: [...skipUrlPatterns, /^mailto:/, /^#/], deadOrAliveOptions: { - maxRetries: 0, // Disable retries - sleep: 0, // Disable sleep + maxRetries: 0, + sleep: 0, https: { rejectUnauthorized: false, // Don't fail on SSL cert issues }, - followRedirect: true, // Allow redirects (don't treat as dead links) + followRedirects: true, // Allow redirects (don't treat as dead links) }, }); } @@ -229,14 +229,14 @@ function createProcessor(includeFrontmatterCheck) { if (!skipDeadLinks) { processors = processors .use(remarkLintNoDeadUrls, { - skipUrlPatterns, + skipUrlPatterns: [...skipUrlPatterns, /^mailto:/, /^#/], deadOrAliveOptions: { - maxRetries: 0, // Disable retries - sleep: 0, // Disable sleep + maxRetries: 0, + sleep: 0, https: { rejectUnauthorized: false, // Don't fail on SSL cert issues }, - followRedirect: true, // Allow redirects (don't treat as dead links) + followRedirects: true, // Allow redirects (don't treat as dead links) }, }); } diff --git a/package.json b/package.json index 52b480f..9e0b6b9 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "author": "", "license": "Apache-2.0", "engines": { - "node": ">=18" + "node": "^24.11.08" }, "dependencies": { "dotenv": "^17.2.2",