D
Deno
Is there a way to auto-fix the `no-unused-vars` lint in deno - Deno
T
Deno
β’
2y 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
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
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
.
Deno
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Is there a way to lint check unnecessary `await`s?
C
CodyC / help
3y ago
is there a way to make the call stack in deno larger?
C
Cowboy / help
3y ago
Deno env vars
I
iso / help
13mo ago