[NO QA] Eslint9 - Rename Request.use to Request.addMiddleware#71902
Conversation
449848d to
5ab65ba
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@shubham1206agra 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] |
Reviewer Checklist
|
There was a problem hiding this comment.
It's a bit of a shame that the rules-of-hooks lint rule isn't sophisticated enough to check if a use call is imported from React and isn't some other function (in our case something totally unrelated).
I wonder if this is something we should fix upstream in the rules-of-hooks rule instead. Others probably would face a similar pitfall, so it's a chance to improve a React community package.
|
✋ 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/roryabraham in version: 9.2.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.28-5 🚀
|
Explanation of Change
This PR helps with the migration of the codebase to ESLint 9.
It renames Request.use because ESLint 9, together with the react-hooks/rules-of-hooks rule, incorrectly flags its usage.
Fixed Issues
$ #67420
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop