TurjT
Deno14mo ago
Turj

Is there a way to auto-fix the `no-unused-vars` lint in deno

I'm running Deno 2.0 for my Fresh project and sometimes end up having a lot of unused variables.

It would have been awesome to have a quick option to remove all imports and unused variables automatically, something similar to what's done here.

I was looking for something akin to simply using
deno lint --fix
and that would remove all the unused variables automatically instead of me having to do it manually.

I tried running the
deno lint --fix
command but it didn't auto-remove it.

If it's not available yet, I'm happy to send in a PR for it if someone can tell me where in the project I can implement it.
Was this page helpful?