Skip to content

JakobLierman/commitlint-config

Repository files navigation

Personal Commitlint Configuration

Commitlint Config Test

This package provides a custom commitlint configuration to ensure consistent and meaningful commit messages in your projects.

Installation

Install the package using your package manager of choice:

npm install --save-dev @commitlint/cli @jakoblierman/commitlint-config
yarn add --dev @commitlint/cli @jakoblierman/commitlint-config
pnpm add --save-dev @commitlint/cli @jakoblierman/commitlint-config

Usage

To use this configuration, add the following to your commitlint.config.js:

module.exports = {
  extends: ['@jakoblierman/commitlint-config'],
  // Add additional rules or overrides if needed
};

Add commit hook

To automatically format your code before committing, install the Husky package using this guide.

Run the following command to install the commit-msg hook:

npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"'

Now, commitlint will use the rules defined in this package to validate your commit messages.

Rules

This configuration extends the conventional commit configuration.

At this time, no additional rules are defined.

Feel free to customize the configuration by extending or overriding rules to suit your project's needs.

Example

Here's an example of a commit message that adheres to this configuration:

feat(api): add new endpoint for user authentication

About

Personal commitlint configuration

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages