Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 123
    • Merge requests 123
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !424

Merged
Created Oct 25, 2018 by Jérome Perrin@jeromeOwner

Use husky and lint-staged to manage commit hooks

  • Overview 9
  • Commits 2
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/husky
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7