mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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:
parent
3ff9ca2533
commit
d29f9f99dd
6 changed files with 43 additions and 2 deletions
|
@ -585,7 +585,11 @@ const finalDenoNs = {
|
|||
test: () => {},
|
||||
bench: () => {},
|
||||
lint: {
|
||||
runPlugin: () => {},
|
||||
runPlugin: () => {
|
||||
throw new Error(
|
||||
"`Deno.lint.runPlugin` is only available in `deno test` subcommand.",
|
||||
);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue