From 71718bdac04719bd69aac24e272f01794e8dc7db Mon Sep 17 00:00:00 2001 From: David Anson Date: Tue, 30 Apr 2024 20:30:48 -0700 Subject: [PATCH] Suppress new (again) "The 'URL.canParse' is still an experimental feature" warning from n/no-unsupported-features/*. --- markdownlint-cli2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/markdownlint-cli2.js b/markdownlint-cli2.js index 8ca1ea3..0a16b24 100755 --- a/markdownlint-cli2.js +++ b/markdownlint-cli2.js @@ -99,6 +99,7 @@ const importOrRequireResolve = async (dirOrDirs, id, noRequire) => { errors.push(error); } try { + // eslint-disable-next-line n/no-unsupported-features/es-builtins, n/no-unsupported-features/node-builtins const isURL = !pathDefault.isAbsolute(expandId) && URL.canParse(expandId); const urlString = ( isURL ? new URL(expandId) : pathToFileURL(pathDefault.resolve(dirs[0], expandId))