Skip to content

Commit 0a47cc0

Browse files
committed
fix(options): Change maxSubjectLength / bodyLineLength default values 🐛
`maxSubjectLength`: 72 `bodyLineLength`: 100
1 parent 03b84cd commit 0a47cc0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Create a .czrc file in your home directory, with the following content:
2424
{
2525
"path": "@metahub/cz-conventional-commit",
2626
"cz-conventional-commit": {
27-
"maxSubjectLength": 50,
28-
"bodyLineLength": 72
27+
"maxSubjectLength": 72,
28+
"bodyLineLength": 100
2929
}
3030
}
3131
```
@@ -45,8 +45,8 @@ You can customize cz-conventional-commit in `package.json`:
4545
"commitizen": {
4646
"path": "@metahub/cz-conventional-commit",
4747
"cz-conventional-commit": {
48-
"maxSubjectLength": 50,
49-
"bodyLineLength": 72
48+
"maxSubjectLength": 72,
49+
"bodyLineLength": 100
5050
}
5151
}
5252
}
@@ -59,8 +59,8 @@ See [commitizen documentation](https://github.com/commitizen/cz-cli#making-your-
5959

6060
| Option | Description | Default |
6161
| ------------------ | ------------------------------------------------------------------------------------------ | ------- |
62-
| `maxSubjectLength` | Length at which to truncate the commit head (head includes type, scope, subject and emoji) | 50 |
63-
| `bodyLineLength` | Length at which to wrap body lines | 72 |
62+
| `maxSubjectLength` | Length at which to truncate the commit head (head includes type, scope, subject and emoji) | 72 |
63+
| `bodyLineLength` | Length at which to wrap body lines | 100 |
6464

6565
## Commit types
6666

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import format from './format-commit';
66

77
const config = merge(configLoader.load(), {
88
'cz-conventional-commit': {
9-
maxSubjectLength: 50,
10-
bodyLineLength: 72,
9+
maxSubjectLength: 72,
10+
bodyLineLength: 100,
1111
},
1212
})['cz-conventional-commit'];
1313

0 commit comments

Comments
 (0)