Skip to content
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

ui: PrettyPrint component uses now prettier 3.1 #3662

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

mhenkens
Copy link
Contributor

Because the prettier.format is now async, we need to change the way we handle the format function We create a service to handle this

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

update prettier to prettier 3.1

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@mhenkens mhenkens force-pushed the feature/prettier3 branch 3 times, most recently from 7f1156e to dea3dd4 Compare December 20, 2023 16:14
@SuperITMan SuperITMan changed the title (refactor):stark-ui PrettyPrint component use now prettier 3.1 ui: PrettyPrint component use now prettier 3.1 Dec 21, 2023
@SuperITMan SuperITMan changed the title ui: PrettyPrint component use now prettier 3.1 ui: PrettyPrint component uses now prettier 3.1 Dec 21, 2023
@mhenkens mhenkens force-pushed the feature/prettier3 branch 4 times, most recently from aded19c to 8b3265e Compare December 21, 2023 10:19
@coveralls
Copy link

coveralls commented Dec 21, 2023

Coverage Status

coverage: 87.747% (+0.009%) from 87.738%
when pulling 323d8cd on mhenkens:feature/prettier3
into d45386d on NationalBankBelgium:master.

Copy link
Member

@SuperITMan SuperITMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 👍
A few changes should be done before we can merge this.

@mhenkens mhenkens force-pushed the feature/prettier3 branch 4 times, most recently from 2e378d0 to d47412d Compare December 22, 2023 09:57
Copy link
Member

@SuperITMan SuperITMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few changes to apply, almost there 👍

Because the prettier.format is now async, we need to change the way we handle the format function
We create a service to handle the asynchronous call
We need to remove `@prettier/plugin-xml` because we cannot make it run in standalone.
To format xml data we use `html` parser
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
1.7% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@SuperITMan SuperITMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@SuperITMan SuperITMan merged commit 70164bb into NationalBankBelgium:master Dec 22, 2023
6 checks passed
@mhenkens mhenkens deleted the feature/prettier3 branch January 5, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants