deno.com
function Deno.lint.runPlugin
unstable
#runPlugin(
plugin: Plugin,
fileName: string,
source: string,
): Diagnostic[]

This API is useful for testing lint plugins.

It throws an error if it's not used in deno test subcommand.

Parameters #

#plugin: Plugin
#fileName: string
#source: string

Return Type #