@ptsecurity/commitlint-config

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i @ptsecurity/commitlint-config

Weekly Downloads

119

Version

2.0.0

License

MIT

Unpacked Size

3.5 kB

Total Files

4

Last publish

Collaborators

  • ptsecurity