auto import build-in node module with protocol prefix #55051
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Domain: Auto-import
Suggestion
An idea for TypeScript
Currently vscode will auto import build-in node module without
node:
prefix unless there is already another import with prefix.Example:
No imports or one or more imports without
node:
prefix:One or more import with
node:
prefix:I would like to have a setting to force
node:
prefix.Related:
eslint-community/eslint-plugin-n#77
import-js/eslint-plugin-import#2717
Workarounds:
eslint-plugin-unicorn
plugin: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.mdThe text was updated successfully, but these errors were encountered: