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

ES6 import default and named export handled incorrectly #2118

Closed
arian opened this issue Jan 21, 2015 · 1 comment · Fixed by #2144
Closed

ES6 import default and named export handled incorrectly #2118

arian opened this issue Jan 21, 2015 · 1 comment · Fixed by #2144
Labels

Comments

@arian
Copy link

arian commented Jan 21, 2015

Consider this ES6 import:

import _, { each } from 'underscore';

This results in the error:

Expected 'from' and instead saw ','

while this is should be valid.

@pascalduez
Copy link

Hello,

just bumped into this as well.

// Desired
import sassdoc, { parse } from './sassdoc';

// Circumvent
import { default as sassdoc, parse } from './sassdoc';

leebyron added a commit to leebyron/jshint that referenced this issue Feb 3, 2015
The ES6 module parsing is incomplete currently. This adds more cases.

Fixes jshint#2118
Fixes jshint#2143
leebyron added a commit to leebyron/jshint that referenced this issue Feb 3, 2015
The ES6 module parsing is incomplete currently. This adds more cases.

Fixes jshint#2118
Fixes jshint#2143
leebyron added a commit to leebyron/jshint that referenced this issue Feb 3, 2015
The ES6 module parsing is incomplete currently. This adds more cases.

Fixes jshint#2118
Fixes jshint#2143
jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Feb 23, 2015
The ES6 module parsing is incomplete currently. This adds more cases.

Fixes jshint#2118
Fixes jshint#2143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants