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

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

$
0
0

I have it running on Node 20, but I’m struggling with Node 22.

This works on node 20:

sg scan --config "./node_modules/rescript-lint/sgconfig.yml" src
warning[no-console]: Unexpected console statement.
  ┌─ src/index.res:2:3
  │
2 │   Console.log("foo!")
  │   ^^^^^^^
  │
  = Remove the console statement.

But on node 22:

sg: group 'scan' does not exist

Viewing all articles
Browse latest Browse all 1770

Trending Articles