You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this configuration in your project's commitlint configuration by specifying it as item in the `extends` array ([commitlint Shareable configuration](https://commitlint.js.org/#/concepts-shareable-config?id=concept-shareable-configuration)).
38
+
39
+
> **_Note_**: You may use either just the scope, `@vidavidorra`, or the full path `@vidavidorra/commitlint-config` of the package.
| <ahref="https://www.npmjs.com/package/@vidavidorra/commitlint-config"><imgalt="npm version"src="https://img.shields.io/npm/v/@vidavidorra/commitlint-config?style=flat-square"></a> | npm version | npm |
49
+
See [docs/rules](docs/rules.md) for the configured rules.
50
+
51
+
## Contributing
52
+
53
+
Please [create an issue](https://github.com/vidavidorra/commitlint-config/issues/new/choose) if you have a bug report, feature proposal or question that does not yet exist.
54
+
55
+
Please give this project a star ⭐ if you like it and consider becoming a [sponsor](https://github.com/sponsors/jdbruijn) to support this project.
56
+
57
+
Please refer to the [contributing guide](https://github.com/vidavidorra/CONTRIBUTING.md) detailed information about other contributions, like pull requests.
This configuration is extending [@commitlint/config-conventional][@commitlint/config-conventional]. Only the changed and added rules, compared to [@commitlint/config-conventional][@commitlint/config-conventional], are documentend here.
4
+
5
+
## body-max-line-length
6
+
7
+
-**condition:**`body` each line has `value` or less characters.
8
+
-**level:**`disabled`.
9
+
10
+
## footer-max-line-length
11
+
12
+
-**condition:**`footer` lines has `value` or less characters.
13
+
-**level:**`disabled`.
14
+
15
+
## header-max-length
16
+
17
+
-**condition:**`header` has `value` or less characters.
18
+
-**level:**`disabled`.
19
+
20
+
## function-rules/header-max-length
21
+
22
+
-**condition:**`header` has `value` or less characters.
23
+
-**level:**`error`.
24
+
-**rule:**`always`.
25
+
-**value**
26
+
The value is dependent on the commit header and can have the following values.
27
+
- Default.
28
+
```
29
+
100
30
+
```
31
+
- If `header.type` equals `chore` or `fix` and `header.scope` equals `deps` or `peer-deps`.
32
+
```
33
+
200
34
+
```
35
+
36
+
```shell
37
+
$ echo 'chore: Knowledge, like air, is vital to life. Like air, no one should be denied it. - Alan Moore' # passes
38
+
$ echo 'chore: Knowledge, like air, is vital to life. Like air, no one should be denied it. - Alan Moore, V for Vendetta' # fails
39
+
40
+
$ echo 'chore(deps): We are told to remember the idea, not the man, because a man can fail. He can be caught, he can be killed and forgotten, but 400 years later, an idea can still change the world.' # passes
41
+
$ echo 'chore(deps): We are told to remember the idea, not the man, because a man can fail. He can be caught, he can be killed and forgotten, but 400 years later, an idea can still change the world. - Alan Moore' # fails
42
+
43
+
$ echo 'chore(peer-deps): We are told to remember the idea, not the man, because a man can fail. He can be caught, he can be killed and forgotten, but 400 years later, an idea can still change the world.' # passes
44
+
$ echo 'chore(peer-deps): We are told to remember the idea, not the man, because a man can fail. He can be caught, he can be killed and forgotten, but 400 years later, an idea can still change the world. - Alan Moore' # fails
0 commit comments