Skip to content

Commit

Permalink
feat(commitlint): loosen body-max-line-length from 100 to 300 (#1690)
Browse files Browse the repository at this point in the history
100 is sometimes too strict for auto-generated commits like Dependabot pull requests.
  • Loading branch information
ybiquitous committed Jan 30, 2024
1 parent 8266cba commit fdead22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const initCommand = (baseDir, logger) => {
packageInfo.commitlint = {
extends: ["@commitlint/config-conventional"],
rules: {
"body-max-line-length": [1, "always", 100],
"body-max-line-length": [1, "always", 300],
},
};

Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`update "package.json" 1`] = `
"body-max-line-length": [
1,
"always",
100,
300,
],
},
},
Expand Down Expand Up @@ -83,7 +83,7 @@ exports[`update "package.json" without fields 1`] = `
"body-max-line-length": [
1,
"always",
100,
300,
],
},
},
Expand Down

0 comments on commit fdead22

Please sign in to comment.