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:

export default {
    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.4"

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

About

TEAM23 configuration for commitlint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •