-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add Prettier format script for consistent code formatting in UI files #20998
Open
bupd
wants to merge
3
commits into
goharbor:main
Choose a base branch
from
bupd:update-formatting
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vad1mo
added
the
release-note/infra
Infra related changes e.g. release, test, ship etc...
label
Oct 7, 2024
Can you add the run to the Github Action checks and fail the checks if there are errors |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20998 +/- ##
===========================================
+ Coverage 45.36% 68.81% +23.44%
===========================================
Files 244 802 +558
Lines 13333 100791 +87458
Branches 2719 0 -2719
===========================================
+ Hits 6049 69362 +63313
- Misses 6983 27623 +20640
- Partials 301 3806 +3505
Flags with carried forward coverage won't be shown. Click here to find out more. |
bupd
force-pushed
the
update-formatting
branch
3 times, most recently
from
October 10, 2024 19:17
fd4a4b9
to
00c3718
Compare
* Added npm script to format code using Prettier: `npm run format`. * Apply Prettier formatting across the project to ensure consistent code style. * Fix formatting inconsistencies in 123 files. * Improve overall code readability and maintainability. Signed-off-by: bupd <[email protected]>
* Updated 'ui_ut_run.sh' script to enforce formatting Signed-off-by: bupd <[email protected]>
bupd
force-pushed
the
update-formatting
branch
from
October 14, 2024 11:27
00c3718
to
51dc32f
Compare
ready for review |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for contributing to Harbor!
Comprehensive Summary of your change
This PR uses Prettier to the frontend component of the Harbor project to enforce consistent code formatting across frontend files. Currently, the frontend codebase has inconsistent formatting, which makes contributions more error-prone and increases unnecessary diffs in PRs.
By adding npm format script, we can ensure uniform formatting, which will improve the overall readability and maintainability of the code. It also reduces potential formatting-related issues in future PRs, ensuring that the focus stays on functionality rather than style.
npm run prettier
).Issue being fixed
N/A (This is an enhancement to improve code quality and consistency).
Please indicate you've done the following: