Package Exports
- @xerox/commitlint-config
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xerox/commitlint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@xerox/commitlint-config
commitlint shareable config for Xerox projects
Usage
- 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.jsfile in your project root with the following contents:
module.exports = require('@xerox/commitlint-config/.huskyrc.json');