-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[No QA] Include newest version of eslint-config-expensify with new rule of no-multiple-onyx-in-file #27840
[No QA] Include newest version of eslint-config-expensify with new rule of no-multiple-onyx-in-file #27840
Conversation
@cristipaval Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@studentofcoding I think you put the issue link wrong; that's why Melvin doesn't pull the correct engineer. |
Hmm, It's included on the right Issue I believe @mollfpr ? |
@studentofcoding Nope, it looks good now! Just make sure you doing it right on the next PR 👍 |
Yess, will do @mollfpr, thanks for pointing it out! |
Hey @cristipaval, This PR is a follow up PR for new eslint-config-expensiy, looking forward to your approval! |
@studentofcoding Neil Is the one assigned to the issue. Also, the internal engineer will review after C+ approves the PR. So you can wait till that time before ping them again. |
…rulesdir/no-multiple-onyx-in-file`
Noted thanks! |
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.
Looks great, thank you!
Thank you too! |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
LGTM and tests well 👍
Thanks! |
Merging, as @tgolen already approved this. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.73-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.73-1 🚀
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
Details
ESLint Rules extend - Create an ESLint rule to detect multiple uses of withOnyx
This change only affects local development and does not need to be QAed and Affected files (MoneyRequestConfirmPage.js, MoneyRequestTagPage.js, EditRequestPage.js, and OptionRowLHNData.js) would have
// eslint-disable-next-line
right now & would be fixed separately on Another issue after the PR is merged, based on our last discussion hereFixed Issues
$ #27463
PROPOSAL: #27463 (comment)
Tests
withOnyx({
on your code editor and click project with more than 1withOnyx({
like onsrc/components/LHNOptionsList/OptionRowLHNData.js
belowApp/src/components/LHNOptionsList/OptionRowLHNData.js
Lines 182 to 217 in 70e9fa0
withOnyx({
Offline tests
QA Steps
This change only affects local development and does not need to be QAed
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.cc: @neil-marcellini @mollfpr @tgolen