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

Chore: Make our repo pretty #1523

Merged
merged 3 commits into from
Oct 18, 2022
Merged

Conversation

myieye
Copy link
Collaborator

@myieye myieye commented Oct 12, 2022

Part 2/3 of #1203

Description

Pretties all our code.

Type of Change

  • Formatting

Checklist

  • I have performed a self-review of my own code
  • I have reviewed the title/description of this PR which will be used as the squashed PR commit message

@github-actions
Copy link

github-actions bot commented Oct 12, 2022

Unit Test Results

368 tests   368 ✔️  9s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit 571f784.

♻️ This comment has been updated with latest results.

@myieye myieye changed the title Chore/1203 chore prettier our repo Chore: Make our repo pretty Oct 12, 2022
@myieye myieye marked this pull request as ready for review October 12, 2022 16:03
Copy link
Contributor

@longrunningprocess longrunningprocess left a comment

Choose a reason for hiding this comment

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

there are things in here I'd like to discuss more, maybe it would be good to do that at our next meeting.

.github/workflows/integrate-and-deploy.yml Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
next-app/postcss.config.cjs Outdated Show resolved Hide resolved
next-app/src/app.html Outdated Show resolved Hide resolved
next-app/src/lib/error/index.ts Outdated Show resolved Hide resolved
next-app/src/lib/fetch/server.ts Outdated Show resolved Hide resolved
next-app/src/lib/forms/index.ts Outdated Show resolved Hide resolved
@megahirt
Copy link
Collaborator

megahirt commented Oct 13, 2022

@longrunningprocess thanks for your review. I can see that the default Prettier code formatting is not in the style you prefer, so I would suggest that you check out https://prettier.io/playground/ and play around there with options so that when we have our meeting we can discuss different options.

I can tell you that we do have a strong preference for spaces, not tabs. In most other styles, I honestly don't care, so if there is a prettier option to make things more toward your likely I would be happy to integrate that.

The purpose of Prettier is not that we make things looking exactly how we'd like them, but that devs don't have to think at all about stylistic formatting when they develop. They simply write in the style they prefer (tabs! no-semi-colons!) and the code is consistently formatted on check-in in the same way for all devs.

Also check out the "Why Prettier" page for the motivation for why I believe it's worth doing: https://prettier.io/docs/en/why-prettier.html

@myieye myieye force-pushed the chore/1203-chore-prettier-our-repo branch from 88590d8 to e7211b2 Compare October 13, 2022 09:27
@myieye
Copy link
Collaborator Author

myieye commented Oct 13, 2022

I had forgotten to pretty-up our php code. I've updated the commits with those changes now.

@myieye myieye force-pushed the chore/1203-chore-prettier-our-repo branch from e7211b2 to fb79fef Compare October 17, 2022 10:47
Copy link
Contributor

@longrunningprocess longrunningprocess left a comment

Choose a reason for hiding this comment

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

I'm glad you went with husky and I like a bunch of the clean-ups, great work @myieye 🏆

@myieye myieye force-pushed the chore/1203-chore-prettier-our-repo branch 3 times, most recently from 36bdb97 to 9feb0d3 Compare October 17, 2022 13:19
@megahirt
Copy link
Collaborator

Tim, once this PR is merged, will you go and do a prettier commit on each open branch? Or do you recommend that the branch author do it using a documented command? For any open PRs, it would be great if you would do the commit directly and verify that the diff looks good on github. For other branches that are wip maybe the author should follow whatever directions you provide to run prettier - thoughts?

@myieye myieye force-pushed the chore/1203-chore-prettier-our-repo branch from 9feb0d3 to e2d2d31 Compare October 17, 2022 14:15
@myieye myieye force-pushed the chore/1203-chore-prettier-our-repo branch from e2d2d31 to dbcdce7 Compare October 17, 2022 14:29
@myieye
Copy link
Collaborator Author

myieye commented Oct 17, 2022

Tim, once this PR is merged, will you go and do a prettier commit on each open branch? Or do you recommend that the branch author do it using a documented command? For any open PRs, it would be great if you would do the commit directly and verify that the diff looks good on github. For other branches that are wip maybe the author should follow whatever directions you provide to run prettier - thoughts?

@megahirt I just requested devs to push any branches that might be missing (not really expecting anything).
I plan to do as many branches as are easy to tame 😆.
I'll document my approach soon 👍

@myieye myieye force-pushed the chore/1203-chore-prettier-our-repo branch from dbcdce7 to 571f784 Compare October 17, 2022 15:36
@myieye myieye merged commit 15e28e9 into develop Oct 18, 2022
@myieye myieye deleted the chore/1203-chore-prettier-our-repo branch October 18, 2022 08:09
@myieye myieye linked an issue Oct 18, 2022 that may be closed by this pull request
6 tasks
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.

chore: Prettier our repo
3 participants