Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

TEAM23 configuration for commitlint
https://github.com/team23/commitlint-config

Last synced: about 22 hours ago
JSON representation

TEAM23 configuration for commitlint

Awesome Lists containing this project

README

        

# commitlint-config

TEAM23 configuration for [commitlint](https://commitlint.js.org/) enforcing our [commit standard](https://confluence.team23.de/display/AP/Commit+Standard).

## How to use with [pre-commit](https://pre-commit.com/)

### Create config file

Add a file `commitlint.config.js` to the root directory of your project with the following content:

```js
module.exports = {
extends: ['@team23/commitlint-config'],
};
```

### Add pre-commit hook

Next, add the pre-commit hook for commitlint to your pre-commit config (`.pre-commit-config.yaml`) by adding

```yaml
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies:
- "@team23/[email protected]"
```

Specify the version of `@team23/commitlint-config` you want to use in the `additional_dependencies`.