Skip to content

Prevent commits that violates quality standards using git hooks (Husky) #24

@goldbergyoni

Description

@goldbergyoni

🎯 Goal: As a developer, I will not mistakenly send code with linting/testing/CVE issues

🤔 Requirements:

  • Configure GitHook that runs all quality tools and stops the commit upon failure. Husky is quite popular tool for this mission
  • Put in both the generator project (root) and the generated app (code templates)
  • Allow by-pass, we always have CI as last the safety net
  • Make it active on developers machine automatically as they 'npm install' their code
  • For now, we have tests only, so husky should ensure that 'npm test' passes. Feel free to configure linter

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions