commitlint-config for project
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
If you're using yarn
yarn add --dev husky @commitlint/cli @commitlint/config-conventional @infosisarg/commitlint-config
If you're using npm
npm i --save-dev husky @commitlint/cli @commitlint/config-conventional @infosisarg/commitlint-config
Create file .commitlintrc.json
with extending preset and define set of scopes:
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
[
// as examples
"app",
"common"
]
]
}
}
Add to package.json
next section:
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
Got a question?
File a GitHub issue.
See Contributing.
This Module follows the principles of Semantic Versioning (SemVer).
Using the given version number of MAJOR.MINOR.PATCH
, we apply the following constructs:
- Use the
MAJOR
version for incompatible changes. - Use the
MINOR
version when adding functionality in a backwards compatible manner. - Use the
PATCH
version when introducing backwards compatible bug fixes.
- In the context of initial development, backwards compatibility in versions
0.0.z
is not guaranteed whenz
is increased. (Initial development) - In the context of pre-release, backwards compatibility in versions
0.y.z
is not guaranteed wheny
is increased. (Pre-release)
Copyright Β© 2018-2022 Infosis Global
All other trademarks referenced herein are the property of their respective owners.
The code and styles are licensed under the LGPL-3.0 license See project license..