Use node:
protocol for all builtin imports (fs
, path
, etc.)
#4149
Labels
node:
protocol for all builtin imports (fs
, path
, etc.)
#4149
We should use an ESLint plugin like
prefer-node-protocol
and ensure we're always doing this:instead of this:
The
node:
protocol is clearer, more portable, and less likely to conflict with any accidental non-builtins (e.g.assert
).This has some mild Node compat issues, but since we probably only support Node 16+ anyway, we can probably safely do this. (Or we can do this in a major version bump and then be explicit about our supported Node version.)
The text was updated successfully, but these errors were encountered: