boarlabsxyz / Kavoon

2 stars 1 forks source link

Setup Husky to the project and configure Husky to run Git hooks #85

Open yuramax opened 3 hours ago

yuramax commented 3 hours ago

We want to add commit hooks to Git with Husky to automate code tasks. This means that it would be nice if we could run all the necessary commands related to ESLint, Prettier, running jest tests, running Cypress tests before creating a Pull Request/commit.

Husky library - https://typicode.github.io/husky/

killev commented 3 hours ago

I’m not sure that preventing commit code with problems fixes any issues. So i wouldn’t recommend to add husky

yuramax commented 3 hours ago

@killev Peter, maybe we understand Husky differently, but our goal was to automate processes that can be forgotten. For example, developers forgot to run ES Lint, Prettier tests before committing, and when a PR is created, problems come up because for example tests/prettier/lint were not run locally before commit.

Perhaps there is another solution, if so, please advise. Thank you!