Interlace ESLint
ESLint Interlace
Import NextRules

no-relative-parent-imports

This rule aims to prevent issues related to relative-parent-imports.

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

Prevents ../ imports

Rule Details

This rule aims to prevent issues related to relative-parent-imports.

Options

[
  {
    "type": "object",
    "properties": {
      "commonjs": {
        "type": "boolean",
        "default": true,
        "description": "Check CommonJS require() calls."
      },
      "amd": {
        "type": "boolean",
        "default": false,
        "description": "Check AMD define/require calls."
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page