Skip to content
git-hooks / 1.1.74

git-hooks 1.1.74

Install from the command line:
Learn more about npm packages
$ npm install @leanupjs/git-hooks@1.1.74
Install via package.json:
"@leanupjs/git-hooks": "1.1.74"

About this version

GitHub CI - Publish to NPM dependencies vulnerabilities npm downloads install-size lernajs code style: prettier

@leanup/git-hooks

This module contains some nice tools to organize git hooks for NodeJs projects.

Installation

npm install @leanup/git-hooks --save-dev

Configuration

Add the following configuration to you package.json:

{
  ...
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  },
  "lint-staged": {
    "{src,tests}/**/*.{html,js,json,jsx,ts,tsx,gql,graphql}": [
      "eslint"
    ],
    "{src,tests}/**": [
      "prettier --check"
    ]
  },
  ...
}

After that create a commitlint configuration file commitlint.config.js in your project folder and insert the following code:

module.exports = require('@leanup/git-hooks/commitlint.config');

References

Details


Assets

  • git-hooks-1.1.74-npm.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0