@xerox/commitlint-config Archived: Moved to monorepo xeroxinteractive/config
commitlint shareable config for Xerox projects
- Install this config and @commitlint/cli and husky in
devDependency
:
yarn add @xerox/commitlint-config @commitlint/cli husky --dev
# or
npm install @xerox/commitlint-config @commitlint/cli husky --save-dev
- Extend this configuration:
// package.json
{
// ...
"commitlint": {
"extends": [
"@xerox/commitlint-config"
]
},
// ...
}
- Create a
.huskyrc.js
file in your project root with the following contents:
module.exports = require('@xerox/commitlint-config/.huskyrc.json');