Open marvinhagemeister opened 3 months ago
We should add a lint rule that warns when you're importing Node built-in modules without the node: specifier.
node:
// This should error import * as fs from "fs" // This should not error import * as fs from "node:fs"
Preferable with an integration into deno lint --fix as well.
deno lint --fix
The LSP already errors properly on this but it probably would be better as a lint rule
https://github.com/denoland/deno/blob/9d6da1036d80a29862f6bdfb51e6f51eee235c35/cli/lsp/diagnostics.rs#L1176-L1197
We should add a lint rule that warns when you're importing Node built-in modules without the
node:
specifier.Preferable with an integration into
deno lint --fix
as well.