Skip to content

Use husky and lint-staged to manage commit hooks

Jérome Perrin requested to merge jerome/slapos:feat/husky into master

https://github.com/typicode/husky/ and https://github.com/okonet/lint-staged are popular tools from javascript ecosystem to manage git commit hooks to do static checks. We already have some tools, but it's hard to find out how to use them, so having an easy way to install git hooks seems nice (even if we don't need all the 🦄 and 🌈 )

This repo is not javascript, I believe we can put a package.json here anyway.

demo: husky

Merge request reports