An open API service indexing awesome lists of open source software.

https://github.com/hadenlabs/commitlint-config

Shareable commitlint config used by Hadenlabs 🚀
https://github.com/hadenlabs/commitlint-config

commitlint commitlint-config git hadenlabs lint peru

Last synced: 10 months ago
JSON representation

Shareable commitlint config used by Hadenlabs 🚀

Awesome Lists containing this project

README

          

[![Latest Release](https://img.shields.io/github/release/hadenlabs/commitlint-config)](https://github.com/hadenlabs/commitlint-config/releases) [![Lint](https://img.shields.io/github/workflow/status/hadenlabs/commitlint-config/lint-code)](https://github.com/hadenlabs/commitlint-config/actions?workflow=lint-code) [![CI](https://img.shields.io/github/workflow/status/hadenlabs/commitlint-config/ci)](https://github.com/hadenlabs/commitlint-config/actions?workflow=ci) [![Test](https://img.shields.io/github/workflow/status/hadenlabs/commitlint-config/test)](https://github.com/hadenlabs/commitlint-config/actions?workflow=test) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow)](https://conventionalcommits.org) [![KeepAChangelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%20v1.0.0-orange)](https://keepachangelog.com)

# 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:

- [gomplate](https://github.com/hairyhenderson/gomplate)
- [python](https://www.python.org)
- [taskfile](https://github.com/go-task/task)

## Installation

### [yarn](https://yarnpkg.com)

If you're using [yarn](https://yarnpkg.com)

```shell
yarn add --dev husky @commitlint/cli @commitlint/config-conventional @hadenlabs/commitlint-config
```

### [npm](https://www.npmjs.com)

If you're using [npm](https://www.npmjs.com)

```shell
npm i --save-dev husky @commitlint/cli @commitlint/config-conventional @hadenlabs/commitlint-config
```

## Usage

# How to use this project

Create file `.commitlintrc.json` with extending preset and define set of scopes:

```json
{
"extends": ["@hadenlabs/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
[
// as examples
"app",
"common"
]
]
}
}
```

Add to `package.json` next section:

```json
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
```

## Examples

### Common

## Help

**Got a question?**

File a GitHub [issue](https://github.com/hadenlabs/commitlint-config/issues).

## Contributing

See [Contributing](./docs/contributing.md).

## Module Versioning

This Module follows the principles of [Semantic Versioning (SemVer)](https://semver.org/).

Using the given version number of `MAJOR.MINOR.PATCH`, we apply the following constructs:

1. Use the `MAJOR` version for incompatible changes.
1. Use the `MINOR` version when adding functionality in a backwards compatible manner.
1. Use the `PATCH` version 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.z` is **not guaranteed** when `z` is increased. (Initial development)
- In the context of pre-release, backwards compatibility in versions `0.y.z` is **not guaranteed** when `y` is increased. (Pre-release)

## Copyright

Copyright © 2018-2025 [Hadenlabs](https://hadenlabs.com)

## 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.](LICENSE).

## Don't forget to 🌟 Star 🌟 the repo if you like commitlint-config

[Your feedback is appreciated](https://github.com/hadenlabs/commitlint-config/issues)