@team23/commitlint-config

1.0.0 • Public • Published

commitlint-config

TEAM23 configuration for commitlint.

If you're using pre-commit, chances are that you're also using commitlint to make sure all your commit messages adhere to our conventional commit standard.

How to use

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.

Package Sidebar

Install

npm i @team23/commitlint-config

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.25 kB

Total Files

4

Last publish

Collaborators

  • laura_schmid
  • muhle-team23
  • schroeter
  • brandt-team23
  • tobilovesteam23
  • goester-team23
  • ademeter