Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1787

I'm looking into using ast-grep fo linting ReScript. What rules should I investigate?

$
0
0

Not a bad start!

no-console.yaml - ast-grep-rescript WSL_ Ubuntu-22.04 - Visual Studio Code 2_27_2025 1_09_19 PM

image

image

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.


Viewing all articles
Browse latest Browse all 1787

Trending Articles