Skip to content

Commit 4c5cea4

Browse files
committed
Skip failing application.js link check
When the hyperlink package tries to check the application.js it will parse the code so it can look for additional links to try. When it does this it fails when it encounters optional chaining syntax (`?.`) this is because the parser does not support it yet. This skip can be removed when this support is added and shipped: estools/estraverse#112 See also #577 (comment)
1 parent 5fd0de8 commit 4c5cea4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build:sassdocv5": "sassdoc --no-update-notifier --parse node_modules/govuk-frontend-v5/dist/govuk/ > data/sassdoc-v5.json",
1010
"build:sassdocv4": "sassdoc --no-update-notifier --parse node_modules/govuk-frontend-v4/govuk/ > data/sassdoc-v4.json",
1111
"lint": "standard",
12-
"check-links": "hyperlink --canonicalroot https://frontend.design-system.service.gov.uk --internal --recursive build/index.html --skip 'property=\"og:image\"' | tee check-links.log | tap-mocha-reporter min"
12+
"check-links": "hyperlink --canonicalroot https://frontend.design-system.service.gov.uk --internal --recursive build/index.html --skip 'property=\"og:image\"' --skip 'application.js' | tee check-links.log | tap-mocha-reporter min"
1313
},
1414
"devDependencies": {
1515
"govuk-frontend": "^6.1.0",

0 commit comments

Comments
 (0)