Not a bad start!
ast-grep has a VSCode plugin, so there are already editor highlights in place.
id: no-console
language: rescript
severity: warning
message: Unexpected console statement.
note: |
Remove the console statement.
rule:
kind: module_identifier
regex: Console
Part of me wants to just really dig into complex rules like the rules of hooks, but the other part of me want’s to see how far I can go with making this portable and configurable.