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

Auto-format files with prettier, add vscode settings, fixes #281 #287

Merged
merged 5 commits into from
Dec 6, 2024

Conversation

mandrasch
Copy link
Collaborator

@mandrasch mandrasch commented Dec 5, 2024

The Issue

How This PR Solves The Issue

  • added .vscode/settings.json and .vscode/extensions.json to git
  • performed npx prettier --write . to auto-format all files
  • added github action prettier test (npx prettier --check .) to test.yml to block wrongly formatted PRs in future
  • added new section about Prettier and EditorConfig to README.md

Manual Testing Instructions

Review rendered at https://pr-format-prettier.ddev-com-front-end.pages.dev/

  • check build output and subpages for errors

Automated Testing Overview

Maybe use https://ddev.com/blog/ddev-diffy-introduction/ for visual comparison? haven't had time for that yet. https://github.com/garris/BackstopJS is an open source alternative

Related Issue Link(s)

Release/Deployment Notes

Copy link

cloudflare-workers-and-pages bot commented Dec 5, 2024

Deploying ddev-com-front-end with  Cloudflare Pages  Cloudflare Pages

Latest commit: 53eab7c
Status: ✅  Deploy successful!
Preview URL: https://89ff5026.ddev-com-front-end.pages.dev
Branch Preview URL: https://pr-format-prettier.ddev-com-front-end.pages.dev

View logs

@rfay rfay changed the title Auto-format files with prettier, add vscode settings Auto-format files with prettier, add vscode settings, fixes #281 Dec 5, 2024
@rfay
Copy link
Member

rfay commented Dec 5, 2024

Thanks! A quick look around on https://pr-format-prettier.ddev-com-front-end.pages.dev/ didn't show trouble.

@mandrasch
Copy link
Collaborator Author

I briefly checked some blog posts and didn't notice any errors/bug as well.

Good to go from my side 👍

@bmartinez287
Copy link
Collaborator

Copy link
Contributor

@tyler36 tyler36 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

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

Thank you @mandrasch !
I only found one small formatting problem.

@rfay rfay merged commit 42de657 into main Dec 6, 2024
2 checks passed
@rfay rfay deleted the pr-format-prettier branch December 6, 2024 15:33
@rfay
Copy link
Member

rfay commented Dec 6, 2024

Let's see how we do with this. Thanks @mandrasch !

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