Socket
Book a DemoInstallSign in
Socket

@ptsecurity/commitlint-config

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ptsecurity/commitlint-config

Commitlint configuration

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

commitlint-config

Commitlint configuration

Using

Install packages:

npm i --save-dev husky @commitlint/cli @commitlint/config-conventional @ptsecurity/commitlint-config

Create file commitlint.config.js with extending preset and define set of scopes:

module.exports = {
    extends: ['@ptsecurity/commitlint-config'],
    rules: {
        'scope-enum': [ 
            2,
            'always',
            [
                // as examples
                'app', 
                'common'
            ]
        ]
    }
};

Add to package.json next section:

{
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }  
  }
}

Argument -g is path to your commit configuration file. More details about it

Keywords

husky

FAQs

Package last updated on 14 Jan 2022

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