SheCodeAfrica-Nairobi / SheCodeAfrica-Nairobi-Website

The new open source website for SheCodeNairobi website 🥳
18 stars 25 forks source link

Set up automatic linting and code formatting #13

Open steekam opened 2 years ago

steekam commented 2 years ago

This is a proposal to add automatic prettier code formatting and eslint code linting to the project. This would be added as pre-commit hooks using husky tool. Only the stages files are formatted and linted. Let contributors focus on writing code more than the formatting and coding guidelines.

As part of the prettier install, I would recommend adding the Official Tailwind CSS prettier plugin. It will sort classes based on the recommendation from the creators of the library. Here is a link to the rationale behind the sorting.

I believe this will good addition as contributors increase.

katungi commented 2 years ago

Hey @steekam, this is a really good idea. How about we do this over the weekend when this sprint ends? Also, I would love to hear @VeldaKiara's thoughts on this.

lekipising commented 2 years ago

Hello @katungi what is the status of this issue? Has it been done? Assigned?

VeldaKiara commented 2 years ago

@katungi its a good idea that should be implemented

katungi commented 2 years ago

Hey @steekam, wanna take up this issue?

steekam commented 2 years ago

Yeah, sure. I can handle it 😄!

katungi commented 2 years ago

Awesome, have at it.