We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3ae532 + ce3c384 commit 66d8699Copy full SHA for 66d8699
.github/configs/commitlint.config.js
@@ -1,27 +1,5 @@
1
-const { maxLineLength } = require('@commitlint/ensure')
2
-
3
-const bodyMaxLineLength = 200
4
5
-const validateBodyMaxLengthIgnoringDeps = (parsedCommit) => {
6
- const { type, scope, body } = parsedCommit
7
- const isDepsCommit =
8
- type === 'chore' && scope === 'release'
9
10
- return [
11
- isDepsCommit || !body || maxLineLength(body, bodyMaxLineLength),
12
- `body's lines must not be longer than ${bodyMaxLineLength}`,
13
- ]
14
-}
15
16
module.exports = {
17
- extends: ['@commitlint/config-conventional'],
18
- plugins: ['commitlint-plugin-function-rules'],
19
rules: {
20
- 'body-max-line-length': [0],
21
- 'function-rules/body-max-line-length': [
22
- 2,
23
- 'always',
24
- validateBodyMaxLengthIgnoringDeps,
25
- ],
+ 'body-max-line-length': [0, "always"],
26
},
27
}
0 commit comments