I’ve used a tool called ast-grep to write some custom lint rules and code transformations for TypeScript.
It has experimental support for custom languages via tree-sitter: Custom Language Support | ast-grep
There is an official tree-sitter-rescript repo: GitHub - rescript-lang/tree-sitter-rescript: ReScript parser for Tree-Sitter
I’m poking at this over the week.
What types of rules would ReScript need?
I’m planning on starting with a simple no-console
rule.