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

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (1,540 forks)batch import
flowhelp wanted

Repository metrics

Stars
 (4,946 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