Interlace ESLint
ESLint Interlace
Import NextRules

no-named-export

Prevents named exports

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

Prevents named exports

Rule Details

This rule aims to prevent issues related to named-export.

Options

[
  {
    "type": "object",
    "properties": {
      "allowInFiles": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Allow named exports in specific files."
      },
      "allowNames": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Allow specific named exports."
      },
      "allowPatterns": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Allow named exports for specific patterns."
      },
      "suggestDefault": {
        "type": "boolean",
        "default": true,
        "description": "Suggest default export alternative."
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page