[No QA] Migrate getUrlWithBackToParam from no-restricted-syntax to @deprecated#90837
Conversation
…deprecated Mark getUrlWithBackToParam with @deprecated JSDoc so usages are visible via npm run eslint-report. Remove the no-restricted-syntax custom rule and its 181 disable comments, and seatbelt the 176 existing call sites under @typescript-eslint/no-deprecated so they are grandfathered without blocking CI. Co-authored-by: Cursor <cursoragent@cursor.com>
0f555af to
aae9685
Compare
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @chiragsalian has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/chiragsalian in version: 9.3.76-0 🚀
|
|
No help site changes needed — this PR is a lint-config-only change (migrating |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.77-3 🚀
|
Explanation of Change
getUrlWithBackToParamwas banned via a customno-restricted-syntaxrule when a standard@deprecatedcomment would do. This PR changes that (simplifying the lint config), removes all the inline disables, and bakes them into the seatbelt file instead (allowing easier tracking innpm run eslint-report).Fixed Issues
$ n/a - I'm slowly trying to get rid of inline eslint disable comments to denormalize suppressing lint.
Tests
None - comment changes only.
Offline tests
N/A — no runtime changes.
QA Steps
None - no runtime changes.
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