Interlace ESLint
ESLint Interlace
Import NextRules

no-anonymous-default-export

Forbid anonymous values as default exports

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

Forbid anonymous values as default exports

Rule Details

This rule aims to prevent issues related to anonymous-default-export.

Options

[
  {
    "type": "object",
    "properties": {
      "allowArrowFunction": {
        "type": "boolean",
        "default": false,
        "description": "Allow anonymous arrow function default exports."
      },
      "allowClassExpression": {
        "type": "boolean",
        "default": false,
        "description": "Allow anonymous class expression default exports."
      },
      "allowFunctionExpression": {
        "type": "boolean",
        "default": false,
        "description": "Allow anonymous function expression default exports."
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page