Interlace ESLint
ESLint Interlace
Import NextRules

no-amd

Prevents AMD require/define calls

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

Prevents AMD require/define calls

Rule Details

This rule aims to prevent issues related to amd.

Options

[
  {
    "type": "object",
    "properties": {
      "allow": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "AMD patterns to allow."
      },
      "suggestES6": {
        "type": "boolean",
        "default": true,
        "description": "Suggest ES6 imports instead."
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page