mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +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
4
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
4
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -1487,7 +1487,9 @@ declare namespace Deno {
|
|||
}
|
||||
|
||||
/**
|
||||
* This API is a noop in `deno run`...
|
||||
* This API is useful for testing lint plugins.
|
||||
*
|
||||
* It throws an error if it's not used in `deno test` subcommand.
|
||||
* @category Linter
|
||||
* @experimental
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue