eslint と flow で import と import type で no-duplicate-imports の警告が出るのを消す

More than 1 year has passed since last update.

これで警告が出た時

/* @flow */

import foo from 'foo'
impot type {Foo} from 'foo'

no-duplicate-imports を Off にして eslint-plugin-import の import/no-duplicates を使う


.eslintrc.yml

plugins:

- import
rules:
no-duplicate-imports: 0
import/no-duplicates: 2

https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md