1.1.1 • Published 9 months ago
@hadenlabs/commitlint-config v1.1.1
commitlint-config
commitlint-config for project
Requirements
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
Installation
yarn
If you're using yarn
yarn add --dev husky @commitlint/cli @commitlint/config-conventional @hadenlabs/commitlint-confignpm
If you're using npm
npm i --save-dev husky @commitlint/cli @commitlint/config-conventional @hadenlabs/commitlint-configUsage
How to use this project
Create file .commitlintrc.json with extending preset and define set of scopes:
{
"extends": ["@hadenlabs/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"
}
}
}Examples
Common
Help
Got a question?
File a GitHub issue.
Contributing
See Contributing.
Module Versioning
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
MAJORversion for incompatible changes. - Use the
MINORversion when adding functionality in a backwards compatible manner. - Use the
PATCHversion when introducing backwards compatible bug fixes.
Backwards compatibility in 0.0.z and 0.y.z version
- In the context of initial development, backwards compatibility in versions
0.0.zis not guaranteed whenzis increased. (Initial development) - In the context of pre-release, backwards compatibility in versions
0.y.zis not guaranteed whenyis increased. (Pre-release)
Copyright
Copyright © 2018-2025 Hadenlabs
Trademarks
All other trademarks referenced herein are the property of their respective owners.
License
The code and styles are licensed under the LGPL-3.0 license See project license..