💼 This rule is enabled in the ✅ recommended
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
When importing builtin modules, it's better to use the node:
protocol as it makes it perfectly clear that the package is a Node.js builtin module.
import dgram from 'dgram';
export {strict as default} from 'assert';
import fs from 'fs/promises';
import dgram from 'node:dgram';
export {strict as default} from 'node:assert';
import fs from 'node:fs/promises';
import _ from 'lodash';
import fs from './fs.js';