Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !424

Use husky and lint-staged to manage commit hooks

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge jerome/slapos:feat/husky into master Oct 25, 2018
  • Overview 9
  • Commits 2
  • Pipelines 0
  • Changes 4

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

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/husky
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7