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

Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
32
100%
Maintainers
1
Weekly downloads
 
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 in section scripts following line "commitmsg": "commitlint -x=./commitlint.config.js -e $GIT_PARAMS", where value of argument -x is path to your commit configuration file

Keywords

commitlint

FAQs

Package last updated on 04 Apr 2018

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