Medi-connect(now Med Space) is an online hospital appointment booking website. Visit our website, Make sure the check the announcement... Also while raising new issues make sure there is no such existing issue, and while giving PR mention the issue. NOT ACCEPTING ISSUES ON SUNDAYS!!
Currently, our backend code lacks consistent formatting and linting, which can lead to code quality issues and increased difficulty in maintaining the codebase.
Proposed Solution:
I suggest implementing pre-commit hooks using Husky and lint-staged to ensure that both ESLint and Prettier run automatically before each commit. This will help maintain code quality by enforcing consistent styling and catching potential errors early in the development process.
Use Case
Enforce Code Quality: Automatically catch errors before they hit the codebase.
Consistent Formatting: Ensure everyone’s code looks the same for easier readability.
Automated Fixes: Let ESLint and Prettier handle quick fixes, saving developers time.
CI/CD Integration: Keep coding standards in check during merges and deployments.
Better Team Collaboration: Promote a shared understanding of coding practices.
Faster Code Reviews: Reviewers can focus on logic instead of formatting issues.
Benefits
Improved Code Quality: Catch bugs early to reduce issues in production.
Reduced Technical Debt: Prevent style inconsistencies from piling up.
Increased Developer Productivity: Spend less time on manual formatting.
Enhanced Collaboration: Help new team members onboard quickly.
Clear Coding Standards: Document what’s expected from everyone.
Continuous Feedback: Get immediate feedback on your code as you write.
Priority
Medium
Record
[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.
Is there an existing issue for this?
Feature Description
Problem:
Currently, our backend code lacks consistent formatting and linting, which can lead to code quality issues and increased difficulty in maintaining the codebase.
Proposed Solution:
I suggest implementing pre-commit hooks using Husky and lint-staged to ensure that both ESLint and Prettier run automatically before each commit. This will help maintain code quality by enforcing consistent styling and catching potential errors early in the development process.
Use Case
Benefits
Priority
Medium
Record