Skip to content

Commit 66d8699

Browse files
authored
Merge pull request #12 from projectpotos/update-workflow
fix: simplify ignore list
2 parents d3ae532 + ce3c384 commit 66d8699

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/configs/commitlint.config.js

+1-23
Original file line numberDiff line numberDiff line change
@@ -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-
161
module.exports = {
17-
extends: ['@commitlint/config-conventional'],
18-
plugins: ['commitlint-plugin-function-rules'],
192
rules: {
20-
'body-max-line-length': [0],
21-
'function-rules/body-max-line-length': [
22-
2,
23-
'always',
24-
validateBodyMaxLengthIgnoringDeps,
25-
],
3+
'body-max-line-length': [0, "always"],
264
},
275
}

0 commit comments

Comments
 (0)