Skip to content

Conversation

dineshsutihar
Copy link
Collaborator

Closes #24

Description

This PR introduces a professional code formatting setup to the project to ensure a consistent code style across all contributions and improve the overall developer experience.

Key Changes:

  • Added Prettier: Integrated the Prettier code formatter to automatically manage styles like quote types, spacing, and semicolons. A .prettierrc.json file has been added with the project's style rules.
  • Added Husky & lint-staged: Configured a pre-commit hook with Husky that uses lint-staged to automatically run Prettier on all staged files before they are committed.
  • New npm Scripts: Added format and check-format scripts to package.json for manual formatting.

Impact:

  • All future commits will now be automatically formatted, preventing style inconsistencies in pull requests.
  • This creates a cleaner Git history and makes the contribution process smoother for everyone.

@dineshsutihar dineshsutihar merged commit 40a5602 into develop Aug 3, 2025
1 check passed
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.

setup husky and prettier

1 participant