From 5d286d6f27fb848e1a916776d23c226e2dc15cf1 Mon Sep 17 00:00:00 2001 From: Latif Sulistyo Date: Thu, 5 Aug 2021 01:24:52 +0700 Subject: [PATCH] chore(commitlint): warning on body max length --- package.json | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1967d4f..d13125c 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,37 @@ "commitlint": { "extends": [ "@commitlint/config-conventional" - ] + ], + "rules": { + "body-max-line-length": [ + 1, + "always", + 100 + ], + "footer-max-line-length": [ + 1, + "always", + 100 + ], + "type-enum": [ + 2, + "always", + [ + "build", + "chore", + "ci", + "docs", + "feat", + "fix", + "perf", + "refactor", + "revert", + "style", + "test", + "security" + ] + ] + } }, "config": { "commitizen": {