Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 491 Bytes

no-duplicate-imports.md

File metadata and controls

20 lines (14 loc) · 491 Bytes

No duplicate import statements (no-duplicate-imports)

This rule enforces that there is at most one import statement for a given module in each file. There is no autofix because it is hoped that this is a relative infrequent mistake.

Rule Details

Examples of incorrect code for this rule:

import {g, z} from 'one';
import x from './x';
import {a} from 'one';

Examples of correct code for this rule:

import {a, g, z} from 'one';
import x from './x';