Skip to content

Commit e59891f

Browse files
committed
🐛 fix(commitlint-config): upgrade header-max-length config in commitlint
1 parent 1b5ea6e commit e59891f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['gitmoji'],
2+
extends: ['./packages/commitlint-config/lib/index.js'],
33
};

packages/commitlint-config/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
[download-image]: https://img.shields.io/npm/dm/commitlint-config-gitmoji.svg
1212
[download-url]: https://npmjs.org/package/commitlint-config-gitmoji
1313

14-
Shareable `commitlint` config enforcing gitmoji commit message styles.
15-
Use with [commitlint](https://github.com/marionebl/commitlint) .
14+
Shareable `commitlint` config enforcing gitmoji commit message styles. Use with [commitlint](https://github.com/marionebl/commitlint) .
1615

1716
## Demo
1817

@@ -154,7 +153,7 @@ echo ":art: some message" # passes
154153

155154
- **condition**: `header` has `value` or less characters
156155
- **rule**: `always`
157-
- **value**: `72`
156+
- **value**: `100`
158157

159158
```sh
160159
echo ":art: some message that is way too long and breaks the line max-length by several characters" # fails

packages/commitlint-config/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const rules: QualifiedRules = {
1616
'body-leading-blank': [Error, 'always'],
1717
// 结尾以空行开始
1818
'footer-leading-blank': [Error, 'always'],
19-
// 标题最大长度 72 个字符
20-
'header-max-length': [Error, 'always', 72],
19+
// 标题最大长度 100 个字符
20+
'header-max-length': [Error, 'always', 100],
2121
// Scope 永远小写
2222
'scope-case': [Error, 'always', 'lower-case'],
2323
// 不允许标题空着

0 commit comments

Comments
 (0)