import-js/eslint-plugin-import

Request: the "no-duplicates" rule should support the 'declaration' style when importing flow types

Open

#1,241 opened on Nov 29, 2018

 (0 comments) (0 reactions) (0 assignees)JavaScript (1,549 forks)batch import
flowhelp wanted

Repository metrics

Stars
 (5,940 stars)
PR merge metrics
 (Avg merge 138d 22h) (3 merged PRs in 30d)

Description

The "no-duplicates" correctly distinguishes Flow type imports from standard imports.

import {myClass} from './mod'
import type {myType} from './mod'

When using the 'declaration' style this is no longer possible:

import {myClass} from './mod'
import {type myType} from './mod'

Contributor guide