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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Prettier as a pre-commit hook #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KristjanESPERANTO
Copy link
Contributor

"This makes sure all your commits are formatted, without having to wait for your CI build to finish." https://prettier.io/docs/en/install#git-hooks

This means prettier will run automatically when you commit 馃檪

@nkl-kst
Copy link
Owner

nkl-kst commented Nov 20, 2023

Thanks @KristjanESPERANTO. I'd prefer to just run the Prettier check in the Github action, as the setup is much easier and it's not possible to skip it.

https://prettier.io/docs/en/install

If you have a CI setup, run the following as part of it to make sure that everyone runs Prettier. This avoids merge conflicts and other collaboration issues!

npx prettier . --check

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.

None yet

2 participants