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

Added pre-commit hooks and linters #49

Merged
merged 6 commits into from
Oct 19, 2024
Merged

Added pre-commit hooks and linters #49

merged 6 commits into from
Oct 19, 2024

Conversation

sank8-2
Copy link
Contributor

@sank8-2 sank8-2 commented Oct 19, 2024

Please review for any changes
Closes #48

Copy link
Contributor

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

.pre-commit-config.yaml Outdated Show resolved Hide resolved
@@ -1 +1,3 @@
scripts
node_modules
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need these ignores?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For packages of husky

hooks:
- id: prettier-staged
name: Prettier Staged
entry: git-format-staged -f 'prettier --ignore-unknown --stdin --stdin-filepath "$FILENAME"'
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this require each contributor to install git-format-staged and prettier on their local machine in advance?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I mention it in the README under Contributing?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi,I would like to confirm, after having this PR, if the developer clones the repository, can he directly git commit the code without performing any additional operations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added installation command for it in the latest commit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, with the update he can

@ahaapple ahaapple merged commit c44eca2 into memfreeme:main Oct 19, 2024
1 check passed
Copy link
Contributor

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

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.

[Feature Request] Adding pre-commit hooks
2 participants