hero-org / herocast

herocast is Farcaster’s leading open-source client. Our goal is to decentralize power on the internet, faster.
https://app.herocast.xyz
GNU Affero General Public License v3.0
64 stars 30 forks source link

Standardize Code Formatting and Introduce Git Hooks for Consistency #463

Closed AjayiMike closed 1 month ago

AjayiMike commented 1 month ago

Is your feature request related to a problem? Please describe. I recently opened a PR and noticed a significant number of changes related to formatting, such as tab width adjustments, single quote to double quote conversions, etc. While these changes are not directly related to the functionality of the code, they do impact the overall maintainability and readability of the project.

Describe the solution you'd like To address this, I propose introducing a standardized code formatting setup using Prettier, as well as Git hooks with Husky to automate formatting and linting checks at the point of commiting. Additionally, I suggest adding a pre-push hook to ensure the app builds successfully before allowing pushes to the repository.

Describe alternatives you've considered Nil

Additional context Nil