LoginSignup
2
3

More than 5 years have passed since last update.

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

Last updated at Posted at 2017-03-18

これで警告が出た時

/* @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

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3