Help us understand the problem. What is going on with this article?

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

More than 3 years have 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

plaid
CXプラットフォーム「KARTE」の開発・運営、EC特化型メディア「Shopping Tribe」の企画・運営、CX特化型メディア「XD(クロスディー)」の企画・運営
https://plaid.co.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away