ESLint InterlaceESLint Interlace
Plugin: import-nextRules

extensions

ESLint rule documentation for extensions

šŸ“” Live from GitHub — This documentation is fetched directly from extensions.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.

Ensure consistent use of file extensions in imports

Rule Details

This rule aims to prevent issues related to extensions.

Options

[
  {
    "type": "object",
    "properties": {
      "pattern": {
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "enum": [
            "always",
            "never"
          ]
        }
      },
      "default": {
        "type": "string",
        "enum": [
          "always",
          "never"
        ]
      }
    },
    "additionalProperties": false
  }
]

Implementation

OWASP Foundation

  • Category: A00:2021 - General Security

Edit this page on GitHub →

On this page

No Headings