New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dwmt/commitlint-plugin-github-type

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dwmt/commitlint-plugin-github-type

Check if your commit messages start with a GitHub issue reference and a type.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
3
Created
Source

Commitlint Numbered Type | Plugin

Commitlint plugin to check if your commit messages start with an issue number and a type.

Accepts commit messages like:

#1/feat: implemented a new message handler
#729/fix: removed erroneous handling of a key

Getting Started

If you want to lint your commits with github-type, follow along:

  • Install Commitlint, Husky and the github-type dependencies
    npm i @commitlint/cli husky @dwmt/commitlint-plugin-github-type @dwmt/commitlint-config-github-type -D
    
  • Configure commitlint
    // commitlint.config.js
    module.exports = {
      plugins: ['@dwmt/commitlint-plugin-github-type'],
      extends: ['@dwmt/commitlint-config-github-type'],
    }
    
  • Setup Husky: to lint commits before they are created you can use Husky's commit-msg hook
    mkdir .husky
    npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1"
    

You can find detailed instructions regarding the local setup of Commitlint and Husky at Commitlint Local Setup.

Further Information

Please see the README of the parent monorepo.

Keywords

commitlint

FAQs

Package last updated on 12 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts