JSPM

@eddlondon/commitlint-config

1.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q21620F
  • License ISC

Our default export contains rules related to commits by following conventional commits specifications

Package Exports

  • @eddlondon/commitlint-config
  • @eddlondon/commitlint-config/index.js

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 (@eddlondon/commitlint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

EDD Commitlint Config

Our default export contains rules related to commits by following conventional commits specifications.

Prerequisites

npm install npm@latest -g

npm install --global yarn

Installation

install commitlint

npm install --save-dev @commitlint/{cli,config-conventional}

yarn add @commitlint/{cli,config-conventional} -D

Install husky

npm install husky --save-dev

yarn add husky --dev

activate hooks

npx husky install

yarn husky install

Add hook

npx husky add .husky/commit-msg "npx --no -- commitlint --edit ${1}"

Hooks not running

  • Ensure that you don't have a typo in your filename. For example, precommit or pre-commit.sh are invalid names. See Git hooks documentation for valid names.
  • Check that git config core.hooksPath returns .husky (or your custom hooks directory).
  • Verify that hook files are executable. This is automatically set when using husky add command but you can run chmod +x .husky/<hookname> to fix that.
  • Check that your version of Git is greater than 2.9.

Usage

  • create a file called .commitlintrc.json in root directory of application where .git file is located.
  • paste the following snippet {
      extends: ['@eddlondon'];
    }
    .

Publish

run the following command

yarn push-patch

npm run push-minor

yarn push-minor

npm publish access=public