Interlace ESLint
ESLint Interlace
Import NextRules

no-restricted-paths

Enforce which files can be imported in a given folder

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

Enforce which files can be imported in a given folder

Rule Details

This rule aims to prevent issues related to restricted-paths.

Options

[
  {
    "type": "object",
    "properties": {
      "restricted": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Array of restricted path patterns"
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page