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

Disallow importing "default" as a named import #481

Closed
ljharb opened this issue Aug 10, 2016 · 2 comments
Closed

Disallow importing "default" as a named import #481

ljharb opened this issue Aug 10, 2016 · 2 comments

Comments

@ljharb
Copy link
Member

ljharb commented Aug 10, 2016

Babel allows import { default as Foo } from 'foo' - I'm not sure if the spec does too.

I'd like a rule that requires import { default as Foo, Bar } be written as import Foo, { Bar }.

@benmosher
Copy link
Member

Last I checked, importing a default export as a name is valid ES6, but this seems like a reasonable style-guide rule.

Name: no-named-default?

@giodamelio
Copy link
Contributor

This should be closed now that #596 is merged right?

@ljharb ljharb closed this as completed Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants