[No QA] Extend Oxfmt formatting to YAML files#95254
Conversation
Remove YAML from ignorePatterns, add a tabWidth: 2 override for *.yml/*.yaml, and update the Oxfmt CI path filter and fmt-watch script so workflow files are covered going forward. Co-authored-by: Cursor <cursoragent@cursor.com>
|
npm has a |
Codecov Report✅ All modified and coverable lines are covered by tests. |
Fixes spellcheck failure on package.json fmt scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
|
A preview of your ExpensifyHelp changes have been deployed to https://b2681ed4.helpdot.pages.dev ⚡️ |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 marcochavezf has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 9.4.27-1 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.4.27-2 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Extends Oxfmt formatting to YAML files (
.yml/.yaml) in addition to JS/TS. YAML files use a 2-spacetabWidthoverride in.oxfmtrc.jsonwhile JS/TS keep the existing 4-space style, matching the approach in GitHub-Actions #79.Changes:
*.ymland*.yamlfromignorePatternsin.oxfmtrc.jsonoverridesentry settingtabWidth: 2for YAML files**.yml,**.yaml, and.oxfmtrc.jsonto the Oxfmt CI workflow path filteryml/yamlin thefmt-watchnpm scriptRan
npm run fmt— no YAML files needed reformatting (they were already 2-space indented).Fixed Issues
$
PROPOSAL:
Tests
npm run fmtfrom the App repo root and confirm it completes without errors.npx oxfmt --check .and confirm it passes..github/workflows/*.ymlfile with inconsistent indentation, runnpm run fmt, and confirm Oxfmt normalizes it to 2-space indent.Offline tests
N/A — tooling-only change.
QA Steps
[No QA]
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.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
N/A — tooling-only change.
Android: mWeb Chrome
N/A — tooling-only change.
iOS: Native
N/A — tooling-only change.
iOS: mWeb Safari
N/A — tooling-only change.
MacOS: Chrome / Safari
N/A — tooling-only change.