mirror of
https://github.com/denoland/deno.git
synced 2025-03-06 11:18:57 -05:00
24 lines
435 B
TypeScript
24 lines
435 B
TypeScript
![]() |
export default {
|
||
|
name: "test-plugin",
|
||
|
rules: {
|
||
|
"my-rule": {
|
||
|
create(ctx) {
|
||
|
console.log(`create: ${ctx.id}`);
|
||
|
return {};
|
||
|
},
|
||
|
destroy(ctx) {
|
||
|
console.log(`destroy: ${ctx.id}`);
|
||
|
},
|
||
|
},
|
||
|
"my-rule-2": {
|
||
|
create(ctx) {
|
||
|
console.log(`create: ${ctx.id}`);
|
||
|
return {};
|
||
|
},
|
||
|
destroy(ctx) {
|
||
|
console.log(`destroy: ${ctx.id}`);
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|