Interlace ESLint
ESLint Interlace
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

On this page