JSPM

@leanup/git-hooks

1.0.125
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 266
  • Score
    100M100P100Q93573F
  • License Apache-2.0

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

Package Exports

  • @leanup/git-hooks/commitlint.config

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@leanup/git-hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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