-
Notifications
You must be signed in to change notification settings - Fork 12
refactor: streamline formatting pipeline for all Edge Apps using a build system #583
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
base: master
Are you sure you want to change the base?
Conversation
- remove local .prettierrc.json files - add prettier field in package.json to reference shared config
PR Reviewer Guide 🔍(Review updated until commit 7997c38)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 7997c38
Previous suggestionsSuggestions up to commit 1ec11e3
|
- standardize formatting checks across apps
- remove local .prettierrc.json files - add prettier field to package.json for each app
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.
Pull request overview
This PR centralizes Prettier configuration across Edge Apps by removing local .prettierrc.json files and pointing each app's package.json to a shared configuration file in edge-apps-library. This streamlines the formatting pipeline and ensures consistent code formatting across all apps.
Key changes:
- Removed duplicate
.prettierrc.jsonfiles from 11 edge apps - Added
prettierfield inpackage.jsonfor each app to reference shared config - Added
format:checkscript to all apps for CI validation - Updated GitHub workflow to use the new
format:checkscript
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| edge-apps/asset-metadata/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/asset-metadata/package.json | Added prettier config reference and format:check script |
| edge-apps/bamboo-hr-app/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/bamboo-hr-app/package.json | Added prettier config reference and format:check script |
| edge-apps/blueprint/package.json | Added prettier config reference to self for local use |
| edge-apps/calendar/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/calendar/package.json | Added prettier config reference and format:check script |
| edge-apps/clock/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/clock/package.json | Added prettier config reference and format:check script |
| edge-apps/edge-apps-library/package.json | Added format:check script and self-referencing prettier config |
| edge-apps/google-calendar/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/google-calendar/package.json | Added prettier config reference and format:check script |
| edge-apps/menu-board/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/menu-board/package.json | Added prettier config reference and format:check script |
| edge-apps/outlook-calendar/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/outlook-calendar/package.json | Added prettier config reference and format:check script |
| edge-apps/powerbi/package.json | Added prettier config reference and format/format:check scripts (with naming collision) |
| edge-apps/qr-code/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/qr-code/package.json | Added prettier config reference and format:check script |
| edge-apps/simple-message-app/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/simple-message-app/package.json | Added prettier config reference and format:check script |
| edge-apps/simple-table-app/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/simple-table-app/package.json | Added prettier config reference and format:check script |
| edge-apps/welcome-app/.prettierrc.json | Deleted local Prettier config in favor of shared config |
| edge-apps/welcome-app/package.json | Added prettier config reference and format:check script |
| .github/workflows/edge-app-checks.yml | Updated workflow to use new format:check script instead of hardcoded prettier command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Persistent review updated to latest commit 7997c38 |
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.
Pull request overview
Copilot reviewed 27 out of 27 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
User description
edge-apps-libraryprettierfield inpackage.jsonto reference shared config from apps using theedge-apps-libraryPR Type
Enhancement, Tests
Description
Centralize Prettier config across edge apps
Add format:check script to all apps
Update CI to use format:check
Cleanup local Prettier configs
Diagram Walkthrough
File Walkthrough
1 files
Normalize JS formatting and semicolons removal2 files
Use unified format:check in CIReference local Prettier config explicitly11 files
Remove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config fileRemove local Prettier config file13 files
Add shared Prettier config and format:checkAdd shared Prettier config and format:checkAdd shared Prettier config and format:checkAdd shared Prettier config and format:checkAdd format:check and pin Prettier config pathAdd shared Prettier config and format:checkAdd shared Prettier config and format:checkAdd shared Prettier config and format:checkSwitch to shared Prettier config and scriptsAdd shared Prettier config and format:checkAdd shared Prettier config and format:checkAdd shared Prettier config and format:checkAdd shared Prettier config and format:check