You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Older built-in Node modules such as fs now can be imported via either their name or node: + their name:
importfsfrom"fs";importfsfrom"node:fs";
The prefixed versions are nice because they can't be overridden by user modules and are similarly formatted to to prefix-only modules such as node:test.
Suggestion: let's add a linter rule to enforce using them, with an auto-fixer?
The text was updated successfully, but these errors were encountered:
Older built-in Node modules such as
fs
now can be imported via either their name ornode:
+ their name:The prefixed versions are nice because they can't be overridden by user modules and are similarly formatted to to prefix-only modules such as
node:test
.Suggestion: let's add a linter rule to enforce using them, with an auto-fixer?
The text was updated successfully, but these errors were encountered: