Quantcast
Channel: ReScript Forum - Latest posts

Current goal of genType with regard to type safety

I’m thinking about trying to fix this issue, but first I need to be sure I’m not missing something. For people who see this, which of these applies to your rescript 11 codebase? Or is the situation...

View Article


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

I’d love to help get this over the line, though it seems it’s kind of stalled?

View Article


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

I was able to get ast-grep working, but not in a way that was portable. If you install it into your project and set up rescript tree sitter you can write linting rules.

View Article

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

Nice, thanks. Yeah I see that ast-grep’s dynamic library binaries make this quite unpleasant to set up through npm. So close yet so far!

View Article

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

There is @ast-grep/cli npm package, so I think the only obstacle to a portable linter is the rescript grammar DLL/SO file, right? I’m sure we could compile one for each platform, as part of the...

View Article


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

The sgconfig.yml handles platform-specific parsers straightforwardly: customLanguages: rescript: libraryPath: # paths to dynamic library aarch64-apple-darwin: ./parsers/mac.so...

View Article

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

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....

View Article

Image may be NSFW.
Clik here to view.

ANN vitest-bdd: ReScript testing with vitest (and source maps !)

Hi there ! vitest-bdd A testing solution based on vitest that plays nice with ReScript. I was finally annoyed at not having source maps and a simple testing solution for ReScript. This plugin was...

View Article


ANN vitest-bdd: ReScript testing with vitest (and source maps !)

Oh awesome! I have a couple projects I want to add unit tests to, so this is perfect timing.

View Article


ANN vitest-bdd: ReScript testing with vitest (and source maps !)

Awesome ! Let me know how it goes. Maybe also explore the Gherkins way. I found them super useful for “behavior” testing (like a complicated, multi-stage input). I use a mix of unit and feature tests...

View Article

ANN vitest-bdd: ReScript testing with vitest (and source maps !)

Wow this is awesome! How did you support source maps? Could you give some pointers?

View Article

ANN vitest-bdd: ReScript testing with vitest (and source maps !)

The full sources of the “compiler” is here. The basic idea is that I parse each lines of the original rescript code and the compiled code looking for corresponding tests. It is done in a way that...

View Article

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

I don’t see any reason this couldn’t be made portable, and even a core part of the rescript experience. Just read this on the ast-grep docs too, so extensibility is actually already a solved problem....

View Article


Image may be NSFW.
Clik here to view.

Published my first Rescript binding to immutable js

npm rescript-immutable-js The `rescript-immutable-js` package provides ReScript bindings for the Immutable.js library.. Latest version: 0.1.0, last published: 6 hours ago. Start using...

View Article