diff options
Diffstat (limited to 'plugins/hookify/examples/console-log-warning.local.md')
| -rw-r--r-- | plugins/hookify/examples/console-log-warning.local.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/hookify/examples/console-log-warning.local.md b/plugins/hookify/examples/console-log-warning.local.md new file mode 100644 index 00000000..c9352e75 --- /dev/null +++ b/plugins/hookify/examples/console-log-warning.local.md @@ -0,0 +1,14 @@ +--- +name: warn-console-log +enabled: true +event: file +pattern: console\.log\( +action: warn +--- + +🔍 **Console.log detected** + +You're adding a console.log statement. Please consider: +- Is this for debugging or should it be proper logging? +- Will this ship to production? +- Should this use a logging library instead? |
