Skip to content

docs: add node-builtin-specifier lint rule#3366

Open
bartlomieju wants to merge 1 commit into
mainfrom
node-builtin-specifier-rule-docs
Open

docs: add node-builtin-specifier lint rule#3366
bartlomieju wants to merge 1 commit into
mainfrom
node-builtin-specifier-rule-docs

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

Adds documentation for the new node-builtin-specifier lint rule being
added in denoland/deno_lint#1306.

The rule warns when a Node.js built-in module is imported with a bare
specifier (e.g. "fs") instead of the required node: prefix
(e.g. "node:fs"), covering both static imports and dynamic import()
calls, and provides an autofix. It is tagged recommended and emits at
warning severity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant