Interlace ESLint
ESLint Interlace
Import NextRules

no-useless-path-segments

Forbid unnecessary path segments in import and require statements

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

Forbid unnecessary path segments in import and require statements

Rule Details

This rule aims to prevent issues related to useless-path-segments.

Options

[
  {
    "type": "object",
    "properties": {
      "noUselessIndex": {
        "type": "boolean",
        "default": false
      },
      "commonjs": {
        "type": "boolean",
        "default": true
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page