diff --git a/package.json b/package.json index b509836fa..cb14a1bdd 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "svgo": "3.3.2", "svgpath": "2.6.0", "typescript": "5.6.3", - "xo": "0.59.3" + "xo": "0.60.0" }, "scripts": { "build": "node scripts/build/package.js", diff --git a/scripts/lint/ourlint.js b/scripts/lint/ourlint.js index 5acc5e356..4feea23d6 100644 --- a/scripts/lint/ourlint.js +++ b/scripts/lint/ourlint.js @@ -170,7 +170,7 @@ const TESTS = { const invalidUrls = []; for (const [isSourceUrl, url] of allUrlFields) { - const $url = new global.URL(url); + const $url = new globalThis.URL(url); if (hasRedundantTrailingSlash($url, url)) { invalidUrls.push(fakeDiff(url, $url.origin));