@oriflame/conventional-changelog-lint-config
v1.1.60
Published
Conventional changelog lint config oriflame
Downloads
50
Readme
@oriflame/conventional-changelog-lint-config
Config for oriflame preset.
Getting started
# Install commitlint cli and conventional config
npm install --save-dev @commitlint/cli @oriflame/conventional-changelog-lint-config
# Or use yarn
yarn add --dev @commitlint/cli @oriflame/conventional-changelog-lint-config
# Configure commitlint to use conventional config
echo "module.exports = {extends: ['@oriflame/conventional-changelog-lint-config']}" > commitlint.config.js
To lint commits before they are created you can use Husky's 'commit-msg' hook:
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}