ESLint InterlaceESLint Interlace
Plugin: import-nextRules

dynamic-import-chunkname

ESLint rule documentation for dynamic-import-chunkname

šŸ“” Live from GitHub — This documentation is fetched directly from dynamic-import-chunkname.md and cached for 6 hours.

šŸ’¼ 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

Edit this page on GitHub →

On this page

No Headings