From d65594c38d24a780c2f61285cb5ec51ca5ef8758 Mon Sep 17 00:00:00 2001 From: LitoMore Date: Wed, 11 Dec 2024 22:31:26 +0800 Subject: [PATCH] Bump xo to 0.60.0 (#12303) --- package.json | 2 +- scripts/lint/ourlint.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));