-
-
Notifications
You must be signed in to change notification settings - Fork 75
Fix: Remove "Experimental" from rest and spread (fixes #428) #429
Conversation
I think this is breaking since the experimental nodes won’t be present in the AST anymore. |
I'm not sure we can do this. ESLint itself still considers these experimental and so refers to these node types as such in all of its core rules. We'll most likely change that in ESLint core in the next major release after these hit stage 4 (currently stage 3), but this will require changing all the core rules to account for the new node type as well. |
Thanks @duailibe, yes I raised this myself a few months ago. @kaicataldo's feedback is the same conclusion that was drawn then. However, one interesting thing has changed since then. Not too long ago I introduced the Prettier uses this parser via If you are up for it @duailibe, it might be worth adding a new helper to allow for us to produce this newer AST from I obviously want to keep deviations on AST between the two functions to an absolute minimum, but a case such as this (where ESLint plans to change anyway), might be worth considering. What do you think @kaicataldo? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
I would also lean towards minimizing differences, but if changing this for Once this syntax reaches stage 4 these should converge again anyway :) |
@JamesHenry @kaicataldo thank you both! That seems like a fair compromise, I'll work on that direction sometime today or this weekend. |
@kaicataldo This is now stage-4: https://github.com/tc39/proposals/blob/a41dccc91675f41c65dee354c18c19946d6f2f45/finished-proposals.md Shall we just go ahead and forget about the interim solution and use this PR? |
eslint/eslint#9943 has been merged. We can use |
Thanks, @mysticatea! I think I'll leave this open a little while longer then while we let ESLint 4.18.0 establish itself a little more. Then I will merge as a breaking change. |
We could also potentially leverage the (now deprecated) |
Now that we're close to releasing ESLint v5, I wonder if we can just merge this as a breaking change? Otherwise, the suggestion made here sounds good! |
Thank you again, @duailibe, and sorry for how long this has taken to go through! I think we should merge this as a breaking change. Some important changes went in which affected the @duailibe Will you have chance to do that soon? No worries if not, I can finish it off |
@JamesHenry don't worry! I can resolve the conflicts, and will update the PR in a bit. |
1ba5f61
to
e828817
Compare
e828817
to
a2bdadf
Compare
@JamesHenry all done |
Awesome, thanks @duailibe! |
I guess this is a breaking change..
cc @JamesHenry