0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-11 22:59:41 -04:00
deno/tests/specs/lint/lint_plugin_runtime_api/main.ts
Bartek Iwańczuk d29f9f99dd
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`.
2025-02-12 09:18:55 +00:00

12 lines
191 B
TypeScript

const plugin = {
name: "test-plugin",
rules: {
testRule: {
create() {
return {};
},
},
},
};
Deno.lint.runPlugin(plugin, "source.ts", "export default {}");