Skip to content

Commit

Permalink
Suppress new (again) "The 'URL.canParse' is still an experimental fea…
Browse files Browse the repository at this point in the history
…ture" warning from n/no-unsupported-features/*.
  • Loading branch information
DavidAnson committed May 1, 2024
1 parent a4e068f commit 71718bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions markdownlint-cli2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 71718bd

Please sign in to comment.