HasithDeAlwis / Hasith-Portfolio-v2

Version two of my portfolio
0 stars 0 forks source link

[INFRA] Setup linting, pre-commit hooks, and conventional commits rules #4

Closed HasithDeAlwis closed 3 months ago

HasithDeAlwis commented 3 months ago

Problem Statement

Standards need to be implemented for how code is written in your site, if anyone want to contribute to this repository they would have to follow standards. When commit messages that don't have standards, it's hard to remeber what is done and it makes code reviews easier.

Goals

  1. Impose standards for the entire code base
  2. Conventional commits
  3. Each commit must deploy.

Solution Use Husky for pre commit hooks. Commitizen for conventional commits Antfu for linting.