Interlace ESLint
ESLint Interlace
Import NextRules

enforce-team-boundaries

Prevent unauthorized cross-team imports in large codebases

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

Prevent unauthorized cross-team imports in large codebases

Rule Details

This rule aims to prevent issues related to enforce-team-boundaries.

Options

[
  {
    "type": "object",
    "properties": {
      "teams": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "team": {
              "type": "string"
            },
            "paths": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "allowedDependencies": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "publicPackages": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "team",
            "paths"
          ]
        }
      },
      "sharedPaths": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "default": []
      },
      "allowExternalPackages": {
        "type": "boolean",
        "default": true
      }
    },
    "required": [
      "teams"
    ],
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page