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

[#81] Add prettier #311

Merged
merged 2 commits into from
Oct 31, 2023
Merged

[#81] Add prettier #311

merged 2 commits into from
Oct 31, 2023

Conversation

alex-simm
Copy link
Collaborator

@alex-simm alex-simm commented Oct 16, 2023

Adds prettier with a pre-commit hook. It formats css, scss, and javascript files. I left the formatting options mostly to their default values.

@alex-simm alex-simm linked an issue Oct 20, 2023 that may be closed by this pull request
@kleins05
Copy link
Collaborator

Do we need the .prettierrc at all? AFAIK the two settings are the default settings, now? I do not mind the extra file, but I think it's prettier (pun intended ;-)) to explicitly set only those settings that differ from defaults, just to make it easier to understand what was changed.

@cafischer
Copy link
Collaborator

Can you add [#311] in front of each commit message so that your commits are linked to the issue?

.pre-commit-config.yaml Show resolved Hide resolved
alex-simm added a commit that referenced this pull request Oct 29, 2023
alex-simm added a commit that referenced this pull request Oct 29, 2023
alex-simm added a commit that referenced this pull request Oct 29, 2023
alex-simm added a commit that referenced this pull request Oct 29, 2023
alex-simm added a commit that referenced this pull request Oct 29, 2023
alex-simm added a commit that referenced this pull request Oct 29, 2023
@alex-simm
Copy link
Collaborator Author

Can you add [#311] in front of each commit message so that your commits are linked to the issue?

Sure, I have update them

alex-simm added a commit that referenced this pull request Oct 29, 2023
@alex-simm alex-simm changed the title Add prettier [#81] Add prettier Oct 29, 2023
@cafischer
Copy link
Collaborator

Maybe you can also squash some commits.

@cafischer
Copy link
Collaborator

Looks good now! :)

@cafischer cafischer merged commit 4433ef3 into main Oct 31, 2023
1 check passed
@cafischer cafischer deleted the 81-prettier branch October 31, 2023 16:02
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.

Introduce Prettier to auto-format css/sass and javascript
3 participants