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>
18 lines
671 B
TypeScript
18 lines
671 B
TypeScript
import type { UserConfig } from "@commitlint/types";
|
|
|
|
const Configuration: UserConfig = {
|
|
extends: ["@commitlint/config-conventional"],
|
|
rules: {
|
|
// 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],
|
|
},
|
|
};
|
|
|
|
export default Configuration;
|