You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// html-validate runs check() synchronously, so we can't use async functions like fetch here. Maybe after their
21
16
// version 9 release we can use the fetch API and this parallel approach.
22
17
/**
@@ -61,6 +56,21 @@ function normalizeUrl(url) {
61
56
}
62
57
63
58
exportdefaultclassExternalLinksRuleextendsRule{
59
+
constructor(options){
60
+
super(options);
61
+
this.proxyUrl=options?.proxyUrl;
62
+
}
63
+
64
+
staticschema(){
65
+
return{
66
+
proxyUrl: {
67
+
type: "string",
68
+
description:
69
+
"URL of proxy server to check external links. Must accept a query parameter 'url' and return the status code and possibly location: header in the response.",
70
+
},
71
+
};
72
+
}
73
+
64
74
documentation(){
65
75
return{
66
76
description: "Require all external links to be live.",
0 commit comments