Skip to content

Commit

Permalink
feat: add commitlint shared config
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapegnik committed Nov 2, 2021
1 parent 54ca348 commit b75d0cb
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 34 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,11 @@ module.exports = getChangelogConfig({
3. add `commitlint.config.js` and insert following:

```js
const getCommitlintConfig = require('@realtby/codestyle/commitlint.config');

const czConfig = require('./changelog.config');

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', czConfig.list],
'scope-enum': [2, 'always', czConfig.scopes],
},
};
module.exports = getCommitlintConfig(czConfig);
```

4. add `.release-it.js`:
Expand Down
Loading

0 comments on commit b75d0cb

Please sign in to comment.