oxc icon indicating copy to clipboard operation
oxc copied to clipboard

linter: API for working with the linter custom compiler

Open kriollo opened this issue 9 months ago • 1 comments

Thank you for the project, it's fantastic and very fast. I was wondering if you already have plans in your development roadmap to create an API for working with the linter from a custom VSCode application.

Currently, I have my own compiler for TypeScript, JavaScript, and Vue files, where I rely on tools like vue/compiler-sfc, oxc-minify, typescript, and acorn. I was using your oxc-linter but wanted to integrate it directly into my compiler. I adapted my code to run it via spawnSync, which works, but it significantly slows down the compiler's performance since it runs externally.

I hope that at some point you can develop such an API—it would be extremely helpful. Thank you in advance for considering this.

Best regards, Jorge Jara H.

kriollo avatar Mar 25 '25 00:03 kriollo

Image I managed to run it but it takes a long time on a single file, using spawnSync

kriollo avatar Mar 25 '25 01:03 kriollo

Consuming the linter via API is not planned.

Boshen avatar May 25 '25 13:05 Boshen