-
Notifications
You must be signed in to change notification settings - Fork 0
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
Upgrade ESLint #5
base: AP-6-create-onboarding-app
Are you sure you want to change the base?
Conversation
…for ESLint upgrade
9c1ae44
to
cef09e2
Compare
@@ -26,9 +27,10 @@ const UploaderEnhancements = [ | |||
AscribeBlobUploader, | |||
AscribeRequestKeyUploader | |||
]; | |||
const Uploader = UploaderEnhancements.reduce((Uploader, Enhancer) => Enhancer(Uploader), ReactS3FineUploader); | |||
const EnhancedUploader = UploaderEnhancements.reduce((Uploader, Enhancer) => Enhancer(Uploader), | |||
ReactS3FineUploader); |
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.
This looks weird. Maybe don't use an inline arrow function but one that wraps with {}
and has a return
value.
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.
Yeah, agreed; do you think it'd look better on a single line or with the return (either causes a linting error that we'd turn off)?
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.
Decided to go with:
const EnhancedUploader = UploaderEnhancements.reduce(
(Uploader, Enhancer) => Enhancer(Uploader),
ReactS3FineUploader
);
I think that looks better?
Apart from the suggestions 👍 |
Upgrades the ESLint configuration with mostly cosmetic changes to fix new errors. The
BlocksGroup
component was moved out ofBlocksConveyor
since it's gotten large enough to deserve it's own component.