-
Notifications
You must be signed in to change notification settings - Fork 45
Add Pre-commit Hooks for Code Quality Enforcement #144
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
Comments
This is something for @sa-fw-an to weigh in on. Also. we encourage you to join the discussion on https://matrix.to/#/#sugarlabs-web:matrix.org |
@pikurasa, I’m still not sure about adding this functionality. I need some time to think it over. |
@shashi-sah2003 Go ahead and raise a PR |
shashi-sah2003
added a commit
to shashi-sah2003/www-v2
that referenced
this issue
May 1, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Currently, the project doesn't have pre-commit hooks configured, which means linting and formatting checks aren't automatically run before commits. This allows inconsistent code style and potential issues to be committed to the repository. Developers might forget to run linting or formatting scripts manually before committing, which can lead to:
Describe the solution you'd like
I propose adding pre-commit hooks using Husky and lint-staged to automatically run the existing linting and formatting tools before each commit.
Specifically:
lint:ts
script)format
script)lint:md
script)Describe alternatives you've considered
Hey @pikurasa if you are okay with above feature request then I would like to work on it?
thanks
The text was updated successfully, but these errors were encountered: