Commitlint
Quick start
Section titled “Quick start”tinkerise add commitlintWhat it detects
Section titled “What it detects”The commitlint module checks for commitlint config files or a commitlint key in package.json.
Detection includes:
commitlint.config.js|mjs|cjs|ts.commitlintrc*variants
What it installs
Section titled “What it installs”@commitlint/cli@commitlint/config-conventional
Generated hook behavior
Section titled “Generated hook behavior”- Generates a Conventional Commits config extending
@commitlint/config-conventional - Integrates with Husky only when
.husky/already exists - If Husky is missing, install still succeeds and returns a warning suggesting
tinkerise add husky
File and config changes
Section titled “File and config changes”- Writes
commitlint.config.jsfor"type": "module"projects - Writes
commitlint.config.mjsfor non-module projects - Creates
.husky/commit-msgwhen.husky/already exists
Expected outcome after tinkerise add commitlint:
- Conventional Commit rules available in your repo
- Commit message hook enabled automatically when Husky is already configured
Conflict handling
Section titled “Conflict handling”If commitlint config is already present, interactive runs can show diffs and let you accept or skip updates.