Getting started
Install
Install @commitlint/cli
and a @commitlint/config-*
/ commitlint-config-*
of your choice as devDependency and configure commitlint
to use it.
sh
npm install --save-dev @commitlint/{cli,config-conventional}
sh
yarn add --dev @commitlint/{cli,config-conventional}
sh
npm install --save-dev @commitlint/config-conventional @commitlint/cli
sh
pnpm add --save-dev @commitlint/{cli,config-conventional}
sh
deno add --dev npm:@commitlint/cli npm:@commitlint/config-conventional
Configuration
Configure commitlint to use conventional config
sh
echo "export default { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
Refer to configuration documentation for more information.