We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rules
1 parent cdd4cfe commit ce8555eCopy full SHA for ce8555e
README.md
@@ -43,10 +43,10 @@ Use this plugin in your project's commitlint configuration by specifying it as i
43
module.exports = {
44
extends: ['@commitlint/config-conventional'],
45
plugins: ['commitlint-plugin-function-rules'],
46
- rules: [
47
- 'header-max-length': [0], // level: disabled
+ rules: {
+ 'header-max-length': [0], // level: disabled
48
'function-rules/header-max-length': [
49
- 2, // level: error
+ 2, // level: error
50
'always',
51
(parsed) => {
52
if (parsed.type === 'chore' && parsed.header.length < 20) {
@@ -55,7 +55,7 @@ module.exports = {
55
return [false, 'chore header must not be longer than 120 characters'];
56
},
57
],
58
- ]
+ },
59
};
60
```
61
0 commit comments