Samagra-Development / yaus

Yet Another URL Shortner
https://github.com/Samagra-Development/yaus/wiki
11 stars 28 forks source link

Implement Pre-hook commit for code formatting #80

Closed Nazi-pikachu closed 11 months ago

Nazi-pikachu commented 1 year ago

Is your feature request related to a problem? Please describe. It's becomes cubersome to review a PR if they are not proper formatted or some other formatting is used as that will also show up in changes in the PR. In such Scenario the whole files need to be reviwed since its not implicit what's the actual change.

Describe the solution you'd like A pre-hook commit that will excure formatting (eg : Prettier) on each PR.

Describe alternatives you've considered Establishing a proper formatting styles for the contributors to follow before making a PR

Additional context As it can been seen from the below image how formatting changes show up in PR and actually make reviewing PR difficult. image