Interlace ESLint
ESLint Interlace
Import NextRules

dynamic-import-chunkname

Enforce a leading comment with the webpackChunkName for dynamic imports

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

Enforce a leading comment with the webpackChunkName for dynamic imports

Rule Details

This rule aims to prevent issues related to dynamic-import-chunkname.

Options

[
  {
    "type": "object",
    "properties": {
      "importFunctions": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "allowEmpty": {
        "type": "boolean",
        "default": false
      },
      "webpackChunknameFormat": {
        "type": "string"
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page