diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48ac353052e..b85ec9b5d59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,8 +39,6 @@ jobs: - name: Validate internal links working-directory: docs run: npm run lint:links - env: - NODE_OPTIONS: --max-old-space-size=4096 test_on_node: name: Test diff --git a/docs/package.json b/docs/package.json index 6d8bc44b066..b916c2979c8 100644 --- a/docs/package.json +++ b/docs/package.json @@ -17,7 +17,7 @@ "start": "npm-run-all build:sass --parallel watch:*", "build": "npm-run-all build:sass build:eleventy images", "lint:scss": "stylelint \"**/*.{scss,html}\"", - "lint:links": "hyperlink ./_site/index.html --canonicalroot https://eslint.org/docs/head/ -r --internal ./_site/index.html --pretty --skip https:// --skip fragment-redirect --skip migrating-to --skip /blog --skip /play --skip /team --skip /donate --skip /docs/latest --skip _site/rules/null", + "lint:links": "cross-env NODE_OPTIONS=--max-old-space-size=4096 node tools/validate-links.js", "lint:fix:scss": "npm run lint:scss -- --fix" }, "devDependencies": { @@ -28,6 +28,7 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2", "@types/markdown-it": "^12.2.3", "algoliasearch": "^4.12.1", + "cross-env": "^7.0.3", "dom-parser": "^0.1.6", "eleventy-plugin-nesting-toc": "^1.3.0", "eleventy-plugin-page-assets": "^0.3.0",