Interlace ESLint
ESLint Interlace
Import NextRules

no-self-import

Forbid a module from importing itself

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

Forbid a module from importing itself

Rule Details

This rule aims to prevent issues related to self-import.

Options

[
  {
    "type": "object",
    "properties": {
      "allowInTests": {
        "type": "boolean",
        "default": false,
        "description": "Allow self-imports in test files."
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page