import-js/eslint-plugin-import

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

Open

#1.241 aberto em 29 de nov. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (1.540 forks)batch import
flowhelp wanted

Métricas do repositório

Stars
 (4.946 stars)
Métricas de merge de PR
 (Mesclagem média 138d 22h) (3 fundiu PRs em 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'

Guia do colaborador