Pattern: Missing node:
protocol in builtin imports
Issue: -
When importing Node.js builtin modules, using the node:
protocol prefix helps avoid ambiguity with similarly named local modules and makes the code's intent clearer.
Example of incorrect code:
import fs from "fs";
Example of correct code:
import fs from "node:fs";