Commitlint
Prerequisites:
The styleguide needs to be installed as a development dependency:
pnpm i -D @kurocado-studio/styleguide
Install Commitlint
pnpm i -D commitlint
Configure Commitlint
To use our Commitlint configuration, add the following .commitlintrc.cjs file at the root of your project.
export { commitlint as default } from '@kurocado-studio/styleguide';
Add scripts
To simplify the linting process, add scripts to your package.json. Open package.json and add the following under the "scripts" section:
{
"scripts": {
"commitlint": "pnpm exec commitlint --edit .git/COMMIT_EDITMSG"
}
}
Last modified: 13 June 2025