Import NextRules
prefer-node-protocol
Prefer using the node: protocol when importing Node.js builtin modules
š¼ This rule is enabled in the following configs: recommended, typescript.
š” This rule is automatically fixable by the --fix CLI option.
Prefer using the node: protocol when importing Node.js builtin modules
Rule Details
This rule aims to prevent issues related to prefer-node-protocol.
Options
[
{
"type": "object",
"properties": {
"additionalModules": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"additionalProperties": false
}
]Implementation
OWASP Foundation
- Category: A00:2021 - General Security