Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autofix do not work well with named import and default import #1432

Closed
agrcrobles opened this issue Aug 2, 2019 · 1 comment · Fixed by #1666
Closed

autofix do not work well with named import and default import #1432

agrcrobles opened this issue Aug 2, 2019 · 1 comment · Fixed by #1666

Comments

@agrcrobles
Copy link

agrcrobles commented Aug 2, 2019

So I have

import Utils from '../../lib/utils'
import { selectActiveCurrencyPrice } from '../../lib/utils'

And if then it runs eslint --fix I get:

import { selectActiveCurrencyPrice } from Utils from '../../lib/utils'

Thanks!

@ljharb
Copy link
Member

ljharb commented Aug 3, 2019

What version of eslint-plugin-import do you have?

See also, #1431 and #1403 - this seems like a duplicate of #1403?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants