Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.02 KB

no-duplicate-imports.md

File metadata and controls

36 lines (24 loc) · 1.02 KB
description
Disallow duplicate imports.

🛑 This file is source code, not the primary documentation location! 🛑

See https://typescript-eslint.io/rules/no-duplicate-imports for documentation.

DEPRECATED

This rule has been deprecated in favour of the import/no-duplicates rule.

Rule Details

This rule extends the base eslint/no-duplicate-imports rule. This version adds support for type-only import and export.

How to Use

{
  // note you must disable the base rule as it can report incorrect errors
  "no-duplicate-imports": "off",
  "@typescript-eslint/no-duplicate-imports": ["error"]
}

Options

See eslint/no-duplicate-imports options.

Taken with ❤️ from ESLint core