@commitlint/cli
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@commitlint/format | 17.8.1 | 4.42 kB | MIT | prod | |
@commitlint/lint | 17.8.1 | 4.87 kB | MIT | prod | 1 2 |
@commitlint/load | 17.8.1 | 10.26 kB | MIT | prod | |
@commitlint/read | 17.8.1 | 4.46 kB | MIT | prod | 1 2 |
@commitlint/types | 17.8.1 | 7.74 kB | MIT | prod | |
execa | 5.1.1 | 14.15 kB | MIT | prod | |
lodash.isfunction | 3.0.9 | 3.06 kB | MIT | prod | |
resolve-from | 5.0.0 | 2.28 kB | MIT | prod | |
resolve-global | 1.0.0 | 1.87 kB | MIT | prod | |
yargs | 17.7.2 | 64.15 kB | MIT | prod |
@commitlint/cli is a valuable tool that helps developers ensure their commit messages adhere to a consistent standard. By parsing and examining historical commit messages, it identifies and promptly reports on any patterns that deviate from the predefined standards or templates. With @commitlint/cli, maintaining a clean and well-structured commit history is an easy task, benefiting overall project management and version control.
Using @commitlint/cli is fairly straightforward. It is designed to be integrated into your development environment and utilized directly from the command line. Here is a simple guide on how to get started:
npm install --save-dev @commitlint/cli @commitlint/config-angular
echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
Now, @commitlint/cli is ready to lint your commit messages based on the rules specified in the config-angular. Please note that the @commitlint/config-angular is an example of a commonly used configuration, but you can extend or adjust it according to the specific needs of your project.
For a comprehensive guide on how to use @commitlint/cli, including usage examples, additional configuration options, and troubleshooting advice, refer to the official @commitlint/cli docs hosted on the Conventional Changelog website. These docs provide valuable insights and in-depth explanations, ensuring that you can fully unleash the potential of @commitlint/cli in your development workflow.