gajus/eslint-config-canonical

no-duplicate-imports complains about type declaration

rhalff opened this issue · 0 comments

no-duplicate-imports disallows a type declaration like this:

import bunyan from 'bunyan';
import type {Stream} from 'bunyan';
 4:1  error  'bunyan' import is duplicated  no-duplicate-imports

It seems using https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md instead would solve the problem.