denoland / deno_lint

Blazing fast linter for JavaScript and TypeScript written in Rust
https://lint.deno.land/
MIT License
1.53k stars 172 forks source link

feat(www): playground #1182

Open magurotuna opened 1 year ago

magurotuna commented 1 year ago

This implements a playground to lint.deno.land where we can write random source code and see the diagnostics right away.

Currently the wasm file and its glue code are generated locally and committed to the repo, which means that we need to run the manual updating process (just running deno task wasmbuild) every time we make changes to the linter. We could automate it by moving this process inside CI, but this isn't done here because that would require changing build settings in Deno Deploy too. Instead, we add a step to CI to check if the wasm files committed to the repo are up-to-date.

You can try it out at https://deno-lint--playground.deno.dev/playground

Demo

https://github.com/denoland/deno_lint/assets/23649474/c926d65b-df57-4f6b-aae4-55bb35535590

sigmaSd commented 1 year ago

That's cool!

Couple of remarks:

sigmaSd commented 1 year ago
magurotuna commented 1 year ago

@sigmaSd Thanks for the feedback. What do you mean by "not understood by the lsp"? Like there's no completion options showing up when you put Deno. in the editor part of the playground?

sigmaSd commented 1 year ago

It looks like this image

magurotuna commented 5 months ago

I made several updates and I think now it's ready for review again. PR description has been updated too, but here's a quick summary: