This package provides a custom commitlint configuration to ensure consistent and meaningful commit messages in your projects.
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
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
};
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.
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.
Here's an example of a commit message that adheres to this configuration:
feat(api): add new endpoint for user authentication