Skip to content

Commit

Permalink
Suppress new "The 'URL.canParse' is still an experimental feature" wa…
Browse files Browse the repository at this point in the history
…rning from n/no-unsupported-features/node-builtins.
  • Loading branch information
DavidAnson committed Apr 10, 2024
1 parent c110aa1 commit 770a0a3
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/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 770a0a3

Please sign in to comment.