Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 1751 articles
Browse latest View live

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

Aha! For whatever reason, on my linux machine, it could auto-migrate to the latest version of tree-sitter. On my mac, I was left without that, but managed to add it manually to a fork of the current...

View Article


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

Another aha! Turns out that linux could successfully build the rescript repository because it was a version behind on tree-sitter (v24 instead of v25), which is also the latest version that ast-grep...

View Article


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

Thanks for helping dig into this! I realized I had made a mistake in my top level config and didn’t have the path set correctly for where I cloned the repo, and I also needed to downgrade to 0.24. I...

View Article

Image may be NSFW.
Clik here to view.

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

Not a bad start! 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: |...

View Article

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

I might have been nerd-sniped by this the last couple of nights, and cooked up an initial draft of rules of hooks. Combining that with the findings from today, I’ve made this repo that should...

View Article


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

Might also be able to make a package to distribute the rules jsons, with a script to register itself in the sgconfig.yml.

View Article

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

Oh wow, very nice! I think it should be possible to publish the compiled tree sitter Grammer in a package with a setup script to configure ast-grep.

View Article

Image may be NSFW.
Clik here to view.

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

Agreed. Might look into it this evening, unless you get to it first.

View Article


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

I have a portable version working-ish in this repo: GitHub - jderochervlk/ast-grep-rescript The ./linter folder is setup as a local package, which once I get the bugs sorted out I can publish to npm....

View Article


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

Amazing! Do you think that can that somehow be integrated in the editor-tooling?

View Article

Image may be NSFW.
Clik here to view.

ReScript RPC like?

Here it is github.com GitHub - DZakh/rescript-rest: 😴 ReScript RPC-like client, contract, and server... main 😴 ReScript RPC-like client, contract, and server implementation for a pure REST API -...

View Article

ReScript RPC like?

Thanks a lot! So, for my understanding, I stil need to wire this on the server side like this right: let app = Fastify.make() app->Fastify.route(Contract.getPosts, async ({input}) => { //...

View Article

ReScript RPC like?

Yes. For now only Fastify and Next.js supported. And I’ll try to add Express and Hono.js support next week.

View Article


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

Probably? I think the first step is getting a separate NPM package published that can handle linting with the existing ast-grep plugin and from the command line, then getting a handful of rules into...

View Article

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

As long as there’s some way to produce error mesages with locations, integrating into the editor tooling should be doable.

View Article


Image may be NSFW.
Clik here to view.

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

The existing ast-grep plugin does that and works with what we have so far for ReScript. GitHub GitHub - ast-grep/ast-grep-vscode: ast-grep VSCode is a structural search and... ast-grep VSCode is a...

View Article

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

I spent last night integrating it into flychecker for emacs, so if we prefer to integrate it into the main tooling, I can confirm that ast-grep scan --report-style short <source-file> gives...

View Article


Rescript frustration

i’ve been around and used rescript for 2 years now, actually more than 2 years. i love it. i also dislike typescript, i actually never really though typescript was a very good idea and i’ve sort of...

View Article

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

I managed to get it working! Now I have a portable package that can init itself based on a toplevel config, and it sets the vscode extension config to use the ast-grep config in the node_modules...

View Article

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

I just need to get it all running from node_modules now. I have the vscode extension showing warnings, but the CLI isn’t running. This is fun lol.

View Article
Browsing all 1751 articles
Browse latest View live