Interlace ESLint
ESLint Interlace
Import NextRules

no-mutable-exports

Forbid the use of mutable exports with `var` or `let`

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

Forbid the use of mutable exports with var or let

Rule Details

This rule aims to prevent issues related to mutable-exports.

Options

[
  {
    "type": "object",
    "properties": {
      "allowInFiles": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "File patterns where mutable exports are allowed"
      },
      "ignoreExports": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Specific export names to ignore"
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page