TEAM23 configuration for commitlint enforcing our commit standard.
How to use with pre-commit
Add a file commitlint.config.js
to the root directory of your project with the following content:
export default {
extends: ['@team23/commitlint-config'],
};
Next, add the pre-commit hook for commitlint to your pre-commit config (.pre-commit-config.yaml
) by adding
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies:
- "@team23/commitlint-config@1.0.4"
Specify the version of @team23/commitlint-config
you want to use in the additional_dependencies
.