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
ES2015 aliases for ES6? #6750
Comments
Since ES7/ES2016 was the last one that was colloquially referred to by the edition number, and ES2017 likely won't be called "ES8", this seems like a good idea - provided that "edition" support stops before edition 15 :-p (and to be safe, edition 9, since ES5 could potentially be referred to as ES2009). |
Thanks for reaching out, @mjomble! However I don't think this would be high in priority for the team since everyone is very focused on JSCS compatibility at the moment. Would you be willing to work on a PR for this proposal if it gets accepted by the core team? |
I'd be interested in working on a PR, depending on how complex it ends up becoming :) |
@mjomble Great! |
Cool :) I've had a brief look at the code and having seen many checks like In theory, this might be a breaking change for anyone out there who for some reason is not using one of these values for |
@vitorbal that's not accurate. The champion+3 method of decision making is only for rules. For core features, TSC support is required. Keep in mind that these features come through from Espree, so we'd need to determine whether or not to make changes there or if it makes more sense to make them just in ESLint. |
Thanks, @nzakas, sorry for the mix up! I'll have that in mind from now on. |
Taking a quick look at the implementation -- escope also uses I like the idea, will run it by the TSC for input. |
After a quick offline chat, the TSC is all 👍 for this, so marking as accepted. @mjomble feel free to submit a pull request |
Excellent, will try to find time for this soon :) |
@ljharb I wouldn't be so sure about that.
Only time will tell :) |
@Mouvedia just because editions will continue to be numbered has no bearing on whether people will colloquially use the term "ES8". Indeed, only time will tell. |
@ljharb that's going to be a mess, which I think could be avoided if they were officially called ES15, ES16 (which some people will also use anyways)... |
@alberto unfortunately that ship has sailed. |
This is similar to #5169, but in a backwards-compatible way.
Basically, an ability to specify
ecmaVersion: 2015
that would behave just likeecmaVersion: 6
without deprecating the value6
.And an
es2015
environment that would just be an alias for thees6
one.I understand if you think the maintenance overhead from this isn't worth it, but I wanted to check first :)
The text was updated successfully, but these errors were encountered: