Skip to content

team23/commitlint-config

Repository files navigation

commitlint-config

TEAM23 configuration for commitlint enforcing our commit standard.

How to use with pre-commit

Create config file

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

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

  - 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.0"

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