denoland / deno_lint

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

Website: Going to lint rule `no-console` via diagnostic url displays nothing #1237

Closed dsherret closed 4 months ago

dsherret commented 5 months ago
> deno lint
error[no-console]: `console` usage is not allowed.
   --> V:\dax\src\command.ts:775:11
    | 
775 |           console.log("HERE");
    |           ^^^^^^^

  docs: https://lint.deno.land/#no-console

https://lint.deno.land/#no-console

Seems related to "show all rules"

hashrock commented 4 months ago

I'm struggling to find an easy fix because there's no way to determine the hash of a URL on the server.

Instead, I've come up with the idea of preparing individual pages for each rule. If we do that, we can also automatically expand the details when accessed.

with this change, we have to change the url from https://lint.deno.land/#no-console to https://lint.deno.land/rules/no-console

hashrock commented 4 months ago

Added single rule route with #1246

Can you please change the URL on the CLI side? @dsherret