You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the issue with git bisect. Bug in eslint. Issue reported: eslint/eslint#2636
I'm going to just remove support for ES6 modules until this is fixed, since it's marked "experimental" in eslint. If people really want ES6 modules, they can use a custom parser like babel-eslint (now supported).
Perhaps we should just change globalReturn: false?
This is only going to become more annoying as time goes on, and that does seem to be the current behaviour so it isn't a breaking change.
Activity
feross commentedon May 30, 2015
Yes, this is meant to be allowed.
feross commentedon May 30, 2015
I found the issue with
git bisect. Bug in eslint. Issue reported: eslint/eslint#2636I'm going to just remove support for ES6 modules until this is fixed, since it's marked "experimental" in eslint. If people really want ES6 modules, they can use a custom parser like babel-eslint (now supported).
remove experimental "modules" support
feross commentedon May 30, 2015
Hm, actually removing support for modules is likely to be more disruptive than just leaving this bug in there. It's been around since 3.0.0.
feross commentedon May 30, 2015
Reverted in standard/eslint-config-standard@537fbbe
dcousens commentedon May 30, 2015
I'm happy to wait for this to be fixed in
eslint, this is an edge case to begin with anyway.feross commentedon May 30, 2015
@dcousens cool, sounds good
feross commentedon Jun 1, 2015
ESLint says this is working as intended:
@dcousens Open to suggestions about how to proceed.
dcousens commentedon Jun 2, 2015
@feross well if it isn't possible, I say we stay entirely agnostic and set
globalReturntofalse?At least then it will be consistent across development environments (node, browserify or otherwise).
IMHO anyway.
Cuel commentedon Jun 2, 2015
What if I in index.js wanted to do like this
As in I'd like to exit without throwing an error. It woudn't be allowed in standard?
dcousens commentedon Jun 2, 2015
@Cuel more to the point, it isn't allowed in
eslint, due to a broad definition ofmoduleAFAIK.feross commentedon Jun 6, 2015
@Cuel @dcousens I left a comment asking for more clever behavior from eslint here: eslint/eslint#2636 (comment) Feel free to support / share your opinion.
dcousens commentedon Jun 6, 2015
@feross ES6 makes this difficult.
Perhaps we should just change
globalReturn: false?This is only going to become more annoying as time goes on, and that does seem to be the current behaviour so it isn't a breaking change.
feross commentedon Jun 7, 2015
Agreed.