-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unambiguous JavaScript Grammar #384
Comments
See also: sindresorhus/eslint-plugin-unicorn#41 How would we avoid reporting situations where the user intends it to be a script, not a module? |
You wouldn't. This rule would be combo'ed with |
Sorry, thought I had answered. I think that makes sense. The pair of 👍 's on the issue (before mine) suggest there is some community interest. Not top of my list, but I'd merge a PR. Also not clear to me if it's likely to land via sindresorhus/eslint-plugin-unicorn#41. I'm fine either way. (didn't mark with |
See sindresorhus/eslint-plugin-unicorn#41 (comment), but I think there should be a rule here, especially given how I've just redefined #270 for v2. In contrast to the XO rule (and as noted in the comment) the rule here would be something to the effect of Also, I would expect such a rule to ignore a |
In the spirit of UnambiguousJavaScriptGrammar I'm wondering if a rule to enforce unambiguous module grammar with least an
import
orexport
is of interest?By the way Babel now supports
export {}
.The text was updated successfully, but these errors were encountered: