chore: raise commitlint body limits — disable nonsensical 100-char total cap, allow 200-char lines
The default body-max-length=100 was firing a warning on every substantive commit because 100 chars total can't fit a real changelog message. Disabled (level 0). body-max-line-length bumped to 200 so long URLs / paths / pasted errors don't trip a warning that adds nothing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,8 +3,14 @@ import type { UserConfig } from "@commitlint/types";
|
||||
const Configuration: UserConfig = {
|
||||
extends: ["@commitlint/config-conventional"],
|
||||
rules: {
|
||||
"body-max-length": [1, "always", 100],
|
||||
"body-max-line-length": [1, "always", 100],
|
||||
// body-max-length capped TOTAL body length at 100 chars — meaningless
|
||||
// for technical commits, fired a warning on every substantive
|
||||
// changelog-style message. Disabled (level 0).
|
||||
"body-max-length": [0, "always", 0],
|
||||
// Per-line body cap. Bumped from 100 to 200 so long URLs, file
|
||||
// paths, and copy-pasted error lines don't trip a warning that
|
||||
// adds nothing — but still catches accidental no-wrap.
|
||||
"body-max-line-length": [1, "always", 200],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user