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

Request no-named-as-default rule options which allows Re-Export default syntax #566

Closed
preco21 opened this issue Sep 19, 2016 · 3 comments
Closed

Comments

@preco21
Copy link
Contributor

preco21 commented Sep 19, 2016

Hello! 👋

Since import/no-named-as-default rule supports post-ES2015 import syntax, it would be nice if it has some option that allows Re-Export default as default syntax.

For instance:

Component/Component.js:

export {
  Component as default,
};

Component/index.js:

export default from './Component'; // not considered problem

How about it?

@benmosher
Copy link
Member

What is the problem with it, currently? Can you provide a failing example? (Could be same code, but with the reported message?)

@preco21
Copy link
Contributor Author

preco21 commented Sep 19, 2016

@benmosher Yes. currently, above example is reported:

Using exported name 'default' as identifier for default export.

@benmosher
Copy link
Member

That's wild. Definitely sounds like a bug. Will take a look.

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

No branches or pull requests

2 participants