fix(lint): Deno.lint.runPlugin throws in deno run (#28063)

This commit changes `Deno.lint.runPlugin` to throw
in non-`deno test` subcommand, instead of returning
`undefined`.
This commit is contained in:
Bartek Iwańczuk 2025-02-12 10:18:55 +01:00 committed by GitHub
parent 3ff9ca2533
commit d29f9f99dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 43 additions and 2 deletions

View file

@ -585,7 +585,11 @@ const finalDenoNs = {
test: () => {},
bench: () => {},
lint: {
runPlugin: () => {},
runPlugin: () => {
throw new Error(
"`Deno.lint.runPlugin` is only available in `deno test` subcommand.",
);
},
},
};