mirror of
https://github.com/denoland/deno.git
synced 2025-03-12 07:07:43 -04:00

This commit changes `Deno.lint.runPlugin` to throw in non-`deno test` subcommand, instead of returning `undefined`.
12 lines
191 B
TypeScript
12 lines
191 B
TypeScript
const plugin = {
|
|
name: "test-plugin",
|
|
rules: {
|
|
testRule: {
|
|
create() {
|
|
return {};
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
Deno.lint.runPlugin(plugin, "source.ts", "export default {}");
|