Interlace ESLint
ESLint Interlace
Import NextRules

no-dynamic-require

Forbid require() calls with expressions

šŸ’¼ This rule is enabled in the following configs: recommended, typescript. šŸ’” This rule is automatically fixable by the --fix CLI option.

Forbid require() calls with expressions

Rule Details

This rule aims to prevent issues related to dynamic-require.

Options

[
  {
    "type": "object",
    "properties": {
      "esmodule": {
        "type": "boolean",
        "default": false
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page