@exile-watch/lefthook-config

Shared Lefthook configuration for exile.watch projects

exile.watch logo

Dedicated blog post: Leveraging Lefthook to enforce commit guidelines at exile.watcharrow-up-right


This package contains shared Lefthook configuration, Lefthook dependency and commit-related dependencies.

About Lefthook

Lefthookarrow-up-right is a Git hooks manager for Node.js, Ruby and many other types of projects.

Usage

Prerequisites


  1. Install the package as a devDependency:


  1. Add/update following config and scripts properties in repo's root package.json:


  1. Create a new configuration file at ./commitlint.config.js and inherit all the options using extends property:


  1. In project root in lefthook.yml replace generated content with:

Last updated