-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
More consistent Usage of ES6+ Code #5056
Conversation
Thanks for changing the branch I forgot about it while I was filling out the PR form |
Thanks @DomAmato. You will have to merge in latest While we do want to move toward using modern patterns, I don't think we're comfortable merging this many changes of functions to arrow functions, which may cause subtle bugs. If any of the functions use You will also need to sign all of your commits while rebasing. See https://github.com/reactioncommerce/reaction-component-library/blob/master/docs/contributing.md#signing-your-commits |
Also from the Mocha docs:
|
Perhaps it would be best if I drop the arrow function changes since sifting through it and troubleshooting it might be more problematic? |
@DomAmato Yes if you can remove those it will be easier to review and approve. You can feel free to force push on this PR branch if necessary. |
6d3dfb3
to
cc75d47
Compare
ok i squashed the commits since it was easier to sign it once and removed all the arrow function changes |
b1b1b8a
to
ff87245
Compare
fixed the merge conflicts that came about since I last updated everything. Let me know if there is anything else I need to do pending approval |
Thanks @DomAmato. I looked through the changes. All of the changes to the app source code are fine, but some files in Can you remove those files from this PR? After that it should be OK to merge. |
ff87245
to
ba4ee61
Compare
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ECMAScript 7 introduced the includes function for arrays so that bitwise and comparisons to -1 are no longer needed Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
Signed-off-by: Dom Amato <dominic.a.amato@gmail.com>
ba4ee61
to
5a7b2e0
Compare
ok i removed those changes that affected those files |
Waiting until next week to merge but looks good now. |
@aldeed, fixed the alignment conflict. Ready for merge again. |
Resolves N/A
Impact: minor
Type: style|refactor|chore
Issue
Just uses more consistent ES6+ grammar such as
Solution
N/A
Breaking changes
No breaking changes or functional changes
Testing
No new testing, tested on circleci and tests passed