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

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

$
0
0

Ast-grep has a good vscode plugin, and writing rules is fairly easy.
The ones I had setup are:

  • no-console, this is a good one because I forget.
  • No Js., because it made it easier to migrate a project.
  • no className, I am using Preact instead of React so I can just use class

These all all just matching text for the most part, but I would be down to try and create something more complicated. I know the React rules of hooks would be good, but i think it’s a bit tricky to create and I stopped using hooks so It wasn’t worth my investment at the time.

If we can’t make it portable, we could at least make a generator cli that sets it all up and installs the required deps and some files for rules.


Viewing all articles
Browse latest Browse all 2592

Trending Articles