Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

Mar 31, 2024
25a2e56 · Mar 31, 2024

History

History
31 lines (20 loc) · 710 Bytes

getting-started.md

File metadata and controls

31 lines (20 loc) · 710 Bytes

Getting started

Install

Install @commitlint/cli and a @commitlint/config-* / commitlint-config-* of your choice as devDependency and configure commitlint to use it.

::: code-group

npm install --save-dev @commitlint/{cli,config-conventional}
yarn add --dev @commitlint/{cli,config-conventional}
npm install --save-dev @commitlint/config-conventional @commitlint/cli

:::

Configuration

Configure commitlint to use conventional config

echo "export default { extends: ['@commitlint/config-conventional'] };" > commitlint.config.mjs

Refer to configuration documentation for more information.