Skip to content

Commit c023262

Browse files
author
Nermin Dibek
committed
feat: Making commitlint compatible with dependabot
Dependabot commit subjects generate scoped commit types (scoping type to `deps`). We want this behavior, and do not want build to fail on autogenerated dependabot commits due to our rule that prevents scope in commit type. The second problem this addresses is increasing max body line to 100 characters, allowing dependabot to generate documentation linking to security docs for the update
1 parent deb1c4b commit c023262

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

base.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ module.exports = {
22
parserPreset: 'conventional-changelog-conventionalcommits',
33
rules: {
44
'body-leading-blank': [2, 'always'],
5-
'body-max-line-length': [2, 'always', 72],
5+
'body-max-line-length': [2, 'always', 100],
66
'footer-leading-blank': [2, 'always'],
77
'footer-max-line-length': [2, 'always', 100],
88
'header-max-length': [2, 'always', 100],
99
'references-empty': [1, 'never'],
10-
'scope-empty': [2, 'always'],
1110
'subject-case': [2, 'always', 'sentence-case'],
1211
'subject-empty': [2, 'never'],
1312
'subject-full-stop': [2, 'never', '.'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@g2crowd/commitlint-config-g2",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"description": "G2 commitlint configuration",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)