Skip to content

Conversation

@mvolkmann
Copy link
Collaborator

This PR contains the results of running Prettier on all the UI files.

"universal-cookie": "^4.0.4"
},
"scripts": {
"start": "vite",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I alphabetized the scripts.

"serve": "vite preview",
"test": "vitest",
"coverage": "vitest run --coverage --watch=false",
"format": "prettier --write 'src/**/*.{css,html,js,jsx}'",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the only new script.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we include tsx for futureproofing?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was thinking the same thing, and to include .ts, .cjs and possibly .mjs as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I merged before I saw these comments. I will add those extensions in another PR.

"jsdom": "^24.0.0",
"msw": "^2.2.13",
"prettier": "2.8.1",
"prettier": "3.2.5",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using the latest version of Prettier.

}

@media print {
:root {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Lots of formatting changes follow!
I ran the app locally and didn't see any issues.
I also tried to verify that all the UI tests still pass. 7 failed. I'm investigating those now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to update some snapshots related to whitespace. Now all the UI tests pass.

Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉

jackkeller
jackkeller previously approved these changes Apr 24, 2024
Copy link
Collaborator

@jackkeller jackkeller left a comment

Choose a reason for hiding this comment

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

LGTM, I added a comment but it's not a blocking comment.

@jackkeller
Copy link
Collaborator

For anyone who see's the 301 file changes - aside from snapshot tests these are mostly formatting like: single ticks versus double, no trailing commas, and some whitespace changes so not a lot would affect the app as a whole, more so the developer experience.

@jackkeller
Copy link
Collaborator

@mvolkmann you had two conflicts that were from my story, I fixed them up because I knew exactly what was needed. Cheers!

Copy link
Collaborator

@jackkeller jackkeller left a comment

Choose a reason for hiding this comment

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

Approved

Copy link
Contributor

@vhscom vhscom left a comment

Choose a reason for hiding this comment

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

:shipit:

@mvolkmann mvolkmann merged commit c881a02 into develop Apr 24, 2024
@mkimberlin mkimberlin deleted the feature-2230-prettier branch August 27, 2024 18:44
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.

5 participants