Interlace ESLint
ESLint Interlace
Import NextRules

no-unused-modules

Forbid modules without exports

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

Forbid modules without exports

Rule Details

This rule aims to prevent issues related to unused-modules.

Options

[
  {
    "type": "object",
    "properties": {
      "allowImportOnly": {
        "type": "boolean",
        "default": false,
        "description": "Allow modules that only contain imports."
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

On this page