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

Support for trailing commas in Import/Export statements #148

Closed
xjamundx opened this issue Jun 1, 2015 · 5 comments
Closed

Support for trailing commas in Import/Export statements #148

xjamundx opened this issue Jun 1, 2015 · 5 comments
Assignees

Comments

@xjamundx
Copy link
Contributor

xjamundx commented Jun 1, 2015

Babel supports this, I need to check with the spec:

  • import {y,} from 'x';
  • export {y,} from 'x';
@sebmck
Copy link

sebmck commented Jun 1, 2015

It's in the spec.

15.2.2

NamedImports :
{ }
{ ImportsList }
{ ImportsList , }

15.2.3

ExportClause :
{ }
{ ExportsList }
{ ExportsList , }

@nzakas
Copy link
Member

nzakas commented Jun 2, 2015

Thanks @sebmck, we will get this fixed.

@xjamundx
Copy link
Contributor Author

Putting my parser hat back on and fixing this... 🎩

xjamundx pushed a commit to xjamundx/espree that referenced this issue Aug 11, 2015
@xjamundx
Copy link
Contributor Author

import case works. Need to add export. Will file in the morning!

@xjamundx
Copy link
Contributor Author

Okay should be ready to go

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

No branches or pull requests

3 participants