You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the codebase doesn't seem to have an automated way to format code with Prettier before commits, which can result in formatting inconsistencies and extra manual work.
Suggested Solution
It might be beneficial for the project to use a pre-commit hook mechanism like Husky and lint-staged to automatically format staged files with Prettier upon commit. This would ensure code formatting stays consistent and reduces the manual effort required for code formatting.
Benefits
Consistent code formatting across all contributions
Less manual intervention and potential human error
Streamlined code review process focusing on the code quality rather than formatting
Implementation
If this feature request is accepted, I would be happy to work on it or assist in any way possible. I can contribute a PR including the Husky setup and the necessary lint-staged configuration.
Thank you for considering this suggestion, and I look forward to hearing your thoughts.
The text was updated successfully, but these errors were encountered:
Problem
Currently, the codebase doesn't seem to have an automated way to format code with Prettier before commits, which can result in formatting inconsistencies and extra manual work.
Suggested Solution
It might be beneficial for the project to use a pre-commit hook mechanism like Husky and lint-staged to automatically format staged files with Prettier upon commit. This would ensure code formatting stays consistent and reduces the manual effort required for code formatting.
Benefits
Implementation
If this feature request is accepted, I would be happy to work on it or assist in any way possible. I can contribute a PR including the Husky setup and the necessary lint-staged configuration.
Thank you for considering this suggestion, and I look forward to hearing your thoughts.
The text was updated successfully, but these errors were encountered: